Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2021, 09:22 PM   #1
bajillioneer
Member
bajillioneer began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2020
Device: Kobo Aura One
LF help in troubleshooting Calibre install

Calibre 4.23 on Fedora 34. Trying to connect a Huawei Mediapad T5 (Android 8).
I'm using simple-mtpfs package for mtp connectivity.

Code:
'str' object has no attribute 'decode'

Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/gui2/device.py", line 90, in run
    self.result = self.func(*self.args, **self.kwargs)
  File "/usr/lib64/calibre/calibre/gui2/device.py", line 513, in _books
    mainlist = self.device.books(oncard=None, end_session=False)
  File "/usr/lib64/calibre/calibre/devices/mtp/driver.py", line 216, in books
    self.get_driveinfo()  # Ensure driveinfo is loaded
  File "/usr/lib64/calibre/calibre/devices/mtp/driver.py", line 188, in get_driveinfo
    self._update_drive_info(self.filesystem_cache.storage(sid), location_code)
  File "/usr/lib64/calibre/calibre/devices/mtp/driver.py", line 178, in _update_drive_info
    self.put_calibre_file(storage, 'driveinfo', BytesIO(raw), len(raw))
  File "/usr/lib64/calibre/calibre/devices/mtp/driver.py", line 149, in put_calibre_file
    self.put_file(parent, path[-1], stream, size)
  File "/usr/lib64/calibre/calibre/devices/mtp/base.py", line 24, in synchronizer
    return func(self, *args, **kwargs)
  File "/usr/lib64/calibre/calibre/devices/mtp/unix/driver.py", line 406, in put_file
    %(name, parent.full_path, self.format_errorstack(errs)))
  File "/usr/lib64/calibre/calibre/devices/mtp/unix/driver.py", line 211, in format_errorstack
    return '\n'.join(['%d:%s'%(code, msg.decode('utf-8', 'replace')) for
  File "/usr/lib64/calibre/calibre/devices/mtp/unix/driver.py", line 211, in <listcomp>
    return '\n'.join(['%d:%s'%(code, msg.decode('utf-8', 'replace')) for
AttributeError: 'str' object has no attribute 'decode'
bajillioneer is offline   Reply With Quote
Old 05-03-2021, 10:40 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,082
Karma: 17012286
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Uninstall your distro provided calibre and install the official binaries from https://calibre-ebook.com/download_linux
kovidgoyal is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Calibre 0.9.12 and Ubuntu 12.04.1 LTS dsana123 Calibre 3 01-01-2013 05:32 PM
Troubleshooting Calibre jrkotrla Calibre 1 11-27-2011 08:56 PM
How to install Calibre? cindiaugustine Kobo Tablets 27 11-17-2011 09:33 AM
How install Calibre & Calibre Library where I choose? akmatov Calibre 3 01-17-2011 08:36 PM
CALIBRE cn't install thanos1thanos Calibre 1 01-11-2011 10:53 AM


All times are GMT -4. The time now is 04:35 PM.


MobileRead.com is a privately owned, operated and funded community.