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-2019, 06:18 AM   #1
snowstone
Connoisseur
snowstone doesn't littersnowstone doesn't litter
 
snowstone's Avatar
 
Posts: 75
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
Getting error when trying to transfer books to Kobo

I get the following error:

calibre, version 3.44.0
ERROR: Error: Error communicating with device

'bool' object has no attribute '__getitem__'

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 "ntpath.py", line 289, in expanduser
TypeError: 'bool' object has no attribute '__getitem__'

Can someone help?

I have windows 8.1
Kobo Aura
Latest version of Calibre and the plugins
snowstone is offline   Reply With Quote
Old 07-08-2019, 06:45 AM   #2
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
That us a problem with your configuration for the KoboTouchExtended driver. There are instructions for working around this near the end of the thread for the driver.
davidfor is offline   Reply With Quote
Advert
Old 07-08-2019, 07:21 AM   #3
snowstone
Connoisseur
snowstone doesn't littersnowstone doesn't litter
 
snowstone's Avatar
 
Posts: 75
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
Quote:
Originally Posted by davidfor View Post
That us a problem with your configuration for the KoboTouchExtended driver. There are instructions for working around this near the end of the thread for the driver.
You mean this fix:

Quote:
Originally Posted by davidfor View Post
The problem is in the configuration for the driver. You can try editing the file "device_drivers_KOBOTOUCHEXTENDED.py.json" which is in the the calibre configuration directory. Find the line with "file_copy_dir". I'm expecting that on that line after the colon will be either "true" or "false" (without quotes). Change that to just two double quotes and save the file. That should fix it.
It already has the "" after that line. I don't understand, was it an update from calibre that broke the plugin?
snowstone is offline   Reply With Quote
Old 07-08-2019, 08:23 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 snowstone View Post
You mean this fix:



It already has the "" after that line. I don't understand, was it an update from calibre that broke the plugin?
Yes, that is what I was referring to. It was some changes in the driver options that broke this. There was also a change in how calibre saves preferences that might have made it more noticeable. As far as I can tell, it only happens for people who hadn't changed the driver preferences for a long time.

If it just has the pair of double quotes, I'm not sure what is happening. Can you post the file so I can look at it? Or, you can just delete it and do the driver setup again.
davidfor is offline   Reply With Quote
Old 07-12-2019, 08:47 PM   #5
snowstone
Connoisseur
snowstone doesn't littersnowstone doesn't litter
 
snowstone's Avatar
 
Posts: 75
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
Quote:
Originally Posted by davidfor View Post
Yes, that is what I was referring to. It was some changes in the driver options that broke this. There was also a change in how calibre saves preferences that might have made it more noticeable. As far as I can tell, it only happens for people who hadn't changed the driver preferences for a long time.

If it just has the pair of double quotes, I'm not sure what is happening. Can you post the file so I can look at it? Or, you can just delete it and do the driver setup again.
I uploaded the file as a zip, it wouldn't let me upload it any other way.

I really don't want to have to set everything up again. I've set it up so long ago, that I don't remember all the steps I took, so I just hope it's an easy fix.

Thanks again for the help.
Attached Files
File Type: zip device_drivers_KOBOTOUCHEXTENDED.py.zip (674 Bytes, 141 views)
snowstone is offline   Reply With Quote
Advert
Old 07-12-2019, 11:22 PM   #6
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 snowstone View Post
I uploaded the file as a zip, it wouldn't let me upload it any other way.

I really don't want to have to set everything up again. I've set it up so long ago, that I don't remember all the steps I took, so I just hope it's an easy fix.
That broke for me and just looking at it told me what the problem probably was. I have posted a beta with a fix at the end of the driver's thread.

Also, I would be interested in seeing the contents of your "device_drivers_KOBOTOUCHBETA.py" file and when it was last changed. I'd like to test the migration from this to make sure I haven't broken anything.
davidfor is offline   Reply With Quote
Old 07-13-2019, 06:12 AM   #7
snowstone
Connoisseur
snowstone doesn't littersnowstone doesn't litter
 
snowstone's Avatar
 
Posts: 75
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
Quote:
Originally Posted by davidfor View Post
That broke for me and just looking at it told me what the problem probably was. I have posted a beta with a fix at the end of the driver's thread.

Also, I would be interested in seeing the contents of your "device_drivers_KOBOTOUCHBETA.py" file and when it was last changed. I'd like to test the migration from this to make sure I haven't broken anything.
Where is that file located? In the settings folder I have the following:
  • device_drivers_KOBOTOUCH.py
  • device_drivers_KOBOTOUCHEXTENDED.py
  • device_drivers_KOBOTOUCHEXTENDED.py.json

The file fix you posted, do I just copy the file to settings? Or do I update the plugin from inside calibre as usual?

Thanks again for your help and for keeping the plugin working for us kobo users
snowstone is offline   Reply With Quote
Old 07-13-2019, 09:18 AM   #8
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 snowstone View Post
Where is that file located? In the settings folder I have the following:
  • device_drivers_KOBOTOUCH.py
  • device_drivers_KOBOTOUCHEXTENDED.py
  • device_drivers_KOBOTOUCHEXTENDED.py.json
Yes, it is in the setting folder. The one in red is the one I want.
Quote:
The file fix you posted, do I just copy the file to settings? Or do I update the plugin from inside calibre as usual?
You should install from the Plugin page of the preferences. Use the "Load plugin from file" button and locate where you downloaded the file. But, copying it into the plugins folder of the preferences when calibre isn't running will probably work.
davidfor is offline   Reply With Quote
Old 07-13-2019, 02:59 PM   #9
snowstone
Connoisseur
snowstone doesn't littersnowstone doesn't litter
 
snowstone's Avatar
 
Posts: 75
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
Quote:
Originally Posted by davidfor View Post
Yes, it is in the setting folder. The one in red is the one I want.


You should install from the Plugin page of the preferences. Use the "Load plugin from file" button and locate where you downloaded the file. But, copying it into the plugins folder of the preferences when calibre isn't running will probably work.
As before, the file is inside the zip. Let me know if I did anything wrong with calibre.

Thanks again.
Attached Files
File Type: zip device_drivers_KOBOTOUCHEXTENDED.zip (606 Bytes, 152 views)
snowstone is offline   Reply With Quote
Old 07-14-2019, 12:44 AM   #10
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
Thanks. Using that I was able to prove my theory and prove the change worked.
davidfor is offline   Reply With Quote
Old 07-15-2019, 03:55 PM   #11
DUVET
Junior Member
DUVET began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2019
Device: KOBO GLO
Got an error message too

'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'

What can I do about it ?

Already happened to me a few times in the past and each time there was a a new plugin to download to fix the problem.

I have a Mac High Sierra


-Kobo Glo and latest version of Calibre and plugins.

Last edited by DUVET; 07-15-2019 at 03:57 PM.
DUVET is offline   Reply With Quote
Old 07-15-2019, 10:31 PM   #12
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
@DUVET: Read the rest of the thread. What to do has already been covered.
davidfor is offline   Reply With Quote
Old 07-26-2019, 06:33 PM   #13
snowstone
Connoisseur
snowstone doesn't littersnowstone doesn't litter
 
snowstone's Avatar
 
Posts: 75
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
I'm getting the following error:

calibre, version 3.46.0
ERROR: Error: Error communicating with device

'NoneType' object has no attribute '__getitem__'

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 "site-packages\calibre\startup.py", line 89, in expanduser
TypeError: 'NoneType' object has no attribute '__getitem__'
snowstone is offline   Reply With Quote
Old 07-26-2019, 06:46 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,882
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Did you install the beta of the KoboTouchExtended driver that davidfor mentioned earlier in this thread? If not, check https://www.mobileread.com/forums/sh...postcount=1885 for the download.

And for the love of whatever gods you believe or don't believe in, don't post the same message in multiple threads.
DNSB is offline   Reply With Quote
Old 07-26-2019, 07:06 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,700
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DNSB View Post
And for the love of whatever gods you believe or don't believe in, don't post the same message in multiple threads.


Moderator Notice


@snowstone - please read the MR Guidelines - in this instance #3

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot transfer books to Kobo N647 puravidaphotogra Kobo Reader 6 03-15-2022 11:26 PM
Transfer books to updated KOBO?? Ms M Kobo Reader 5 10-29-2012 12:05 AM
Transfer books to new Kobo Katel Kobo Reader 6 10-26-2012 02:37 AM
books no longer transfer to kobo gw23 Kobo Reader 6 06-02-2012 07:22 PM


All times are GMT -4. The time now is 06:36 AM.


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