View Single Post
Old 05-12-2019, 06:36 AM   #1854
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 983
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
OK, I removed the uses of 'typing' from that debug version as per this commit to the plugin on Github, and it now installs.

Yay!

But it doesn't work. Choosing Customise fails with:

Code:
calibre, version 3.42.0
ERROR: Unhandled exception: <b>TypeError</b>:QLineEdit.setText(): argument 1 has unexpected type 'bool'

calibre 3.42  embedded-python: True is64bit: True
Darwin-15.6.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '15.6.0', 'Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64')
Python 2.7.15
OSX: ('10.11.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 0) && Modify ePub (1, 3, 14) && Kobo Utilities (2, 8, 0) && KoboTouchExtended (3, 1, 3) && Quality Check (1, 9, 11) && Obok DeDRM (6, 5, 4) && KePub Metadata Writer (3, 0, 3) && KePub Metadata Reader (3, 0, 2)
Traceback (most recent call last):
  File "site-packages/calibre/gui2/preferences/plugins.py", line 294, in customize_plugin
  File "site-packages/calibre/gui2/preferences/plugins.py", line 372, in modify_plugin
  File "site-packages/calibre/customize/__init__.py", line 157, in do_user_config
  File "calibre_plugins.kobotouch_extended.device.driver", line 157, in config_widget
  File "calibre_plugins.kobotouch_extended.device.koboextended_config", line 61, in __init__
  File "calibre_plugins.kobotouch_extended.device.koboextended_config", line 92, in __init__
  File "calibre_plugins.kobotouch_extended.device.koboextended_config", line 178, in __init__
TypeError: QLineEdit.setText(): argument 1 has unexpected type 'bool'
Trying to send a book to the device fails with the original error, viz

Code:
calibre, version 3.42.0
ERROR: Error: Error communicating with device

'bool' object has no attribute 'startswith'

Traceback (most recent call last):
  File "site-packages/calibre/gui2/device.py", line 89, in run
  File "site-packages/calibre/gui2/device.py", line 593, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 399, in upload_books
  File "site-packages/calibre/devices/kobo/driver.py", line 2087, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 313, in _modify_epub
  File "lib/python2.7/posixpath.py", line 254, in expanduser
AttributeError: 'bool' object has no attribute 'startswith'
Calibre's debug log is attached, showing the failure to Send to Device.

If my plugin preferences are somehow screwed up, where do they live on disk so that I can try and clean them up?
Attached Files
File Type: txt tmpR9mexW.txt (53.1 KB, 202 views)

Last edited by chrisridd; 05-12-2019 at 06:53 AM.
chrisridd is offline   Reply With Quote