![]() |
#1 |
Member
![]() Posts: 18
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' |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
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
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |