Quote:
Originally Posted by Thgj
Hello,
I have got a problem with Calibre and my KOBO device. Calibre recognises my KOBO but when I want to writ a book from Calibre to my device, I get the following error:
bool' object has no attribute 'startswith'
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 88, in run
File "site-packages/calibre/gui2/device.py", line 592, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 335, in upload_books
File "site-packages/calibre/devices/kobo/driver.py", line 2014, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 259, in _modify_epub
File "lib/python2.7/posixpath.py", line 254, in expanduser
AttributeError: 'bool' object has no attribute 'startswith'
Is this message familiar to you and do know any solution?
|
That looks like a problem that has been happening and doesn't seem to have a good solution. It seems to happen when the path to the temporary directory used by calibre includes unicode characters. Under Windows, that usually means a character with an accent. There is discussion of this in the thread for the extended driver.
The workaround for this is to put the temporary directory somewhere else. This can be done at the OS or user level, or just for calibre by setting the environment variable "CALIBRE_TEMP_DIR".