Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 07-08-2017, 02:45 PM   #1
Thgj
Junior Member
Thgj began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura HD
Unhappy error writing from Calibre tot KOBO

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?

Kind regards,

Theo Jansen
Thgj is offline   Reply With Quote
Old 07-08-2017, 02:49 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Are you using the Kobo Extended driver to send kepub to the Kobo? if so, validate the ePub with epubcheck 4.0.2 and see if there are any errors. Plugins like that don't usually work with errors.
JSWolf is offline   Reply With Quote
Advert
Old 07-08-2017, 03:56 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
What Version Calibre?
What OS?
theducks is offline   Reply With Quote
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
Old 07-08-2017, 11:25 PM   #5
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: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@davidfor: Use from calibre.utils.filenames import expanduser

which fixes the bug in python's expanduser.
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
attribute error, bool object


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Hudl 2: calibre, version 3.2.1 ERROR: Error: Error communicating with device elfed Devices 4 07-21-2017 05:33 AM
Kobo H2O getting error in calibre Rika24 Kobo Reader 11 07-31-2015 02:37 PM
Kobo Glo / Calibre Comm Error (FW 3.11) & Book Issue. Chris_Snow Kobo Reader 7 12-01-2014 12:26 AM
Calibre + Kobo Error Msg jewell Devices 1 04-19-2012 10:41 PM
Calibre/Kobo communication error carolehughes Calibre 4 10-21-2010 06:08 AM


All times are GMT -4. The time now is 05:22 PM.


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