View Single Post
Old 07-08-2017, 10:36 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Thgj View Post
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".
davidfor is offline   Reply With Quote