07-26-2019, 06:38 PM | #1891 |
Connoisseur
Posts: 74
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
|
I'm getting the following error when trying to transfer books to my Kobo:
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__' |
07-26-2019, 06:51 PM | #1892 |
Bibliophagist
Posts: 35,356
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
@snowstone:
Last edited by DNSB; 07-26-2019 at 06:57 PM. |
07-26-2019, 06:59 PM | #1893 | |
Connoisseur
Posts: 74
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
|
Quote:
|
|
07-26-2019, 09:03 PM | #1894 | |
Bibliophagist
Posts: 35,356
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If you are still seeing the issue with the latest update, I'd suggest uninstalling the driver, deleting the configuration files and then re-installing the driver. Easiest way to get to the configuration files is to open calibre's preferences, browse down to miscellaneous and then click on the Open calibre configuration directory button. Look for two files named device_drivers_KOBOTOUCHEXTENDED.py and device_drivers_KOBOTOUCHEXTENDED.py.json and delete them. If only the .py.json file is there, delete that one. You will need to re-configure any driver customization after the re-installation. Good luck! Last edited by DNSB; 07-26-2019 at 09:04 PM. Reason: Fat fingered typos... what else is old? |
|
07-26-2019, 09:08 PM | #1895 | |
Connoisseur
Posts: 74
Karma: 102
Join Date: Aug 2013
Device: Kobo Aura edition 2
|
Quote:
|
|
07-26-2019, 10:41 PM | #1896 | |
Bibliophagist
Posts: 35,356
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
An alternative might be to delete only the .py.json file and see if the customization from the .py file is propagated to the new .py.json file when you restart calibre after installing the updated driver. I haven't tested this procedure though it seems somewhat logical that it would work. Just tried this and the .py.json file was recreated when I opened the driver customization. As far as I could tell, the few customizations I use were copied over. Last edited by DNSB; 07-26-2019 at 10:45 PM. |
|
07-27-2019, 12:54 AM | #1897 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
But, the problem is a combination of calibre version, driver version and what is in the configuration file. Deleting the .py.json file and using the latest release of the plugin with any version of calibre other than 3.45, should solve the problem. Otherwise, the only choice is to delete both device_drivers_KOBOTOUCHEXTENDED.py and device_drivers_KOBOTOUCHEXTENDED.py.json files and start again. The device_drivers_KOBOTOUCHEXTENDED.py is reasonably readable, so you should be able to work out the configuration from that. |
|
07-28-2019, 01:50 PM | #1898 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
what do I lose by unchecking "Enable Extended Kobo Features"?
Question 1: What do I lose by unchecking "Enable Extended Kobo Features"?
All of the books on my Kobo are either from Amazon and converted in Calibre or are epubs downloaded from Project Gutenberg and its ilk. There is a problem that either davidfor or DNSB explained to me that I was experiencing where if a book doesn't have a cover then the margins are wacko, due to the spans added by the driver. So I reverted back to the vanilla Kobo driver. I decided to try re-enabling the extended driver and unticking the Enable Extended Kobo Features and that solves the problem. I was wondering if I lose any other features besides the spans, which I don't think I utilize in any event. Question 2: What's an easy way to delete the many books I'd previously uploaded with the extended driver that are in kepub format? I'm on Windows so I could do "dir *.kepub.epub /s/b" to generate a list and then edit it and add a del to the beginning of each line. Can I simply do that? And if so should I do anything after that to clean up or mend any metadata or whatnot on the device? And is that extension .kepub.epub correct? I was expecting them to have the extension .kepub. Last edited by lumpynose; 07-28-2019 at 01:52 PM. |
07-28-2019, 02:56 PM | #1899 | ||||
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
Quote:
Quote:
Quote:
Calibre stores the files internally as .kepub, but calibre only supports single extension files. The correct extension for a KePub file is indeed the double .kepub.epub extension. This allows seamless compatibility with any other ePub-capable reader (assuming you get a book without DRM of course). |
||||
07-28-2019, 08:54 PM | #1900 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
It would be good to reorder or group the options. That would show more clearly how they are related. |
|
07-28-2019, 09:02 PM | #1901 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
A simple solution to the cover problem is to do a Polish Books or use the Modify ePub plugin to add the cover. Or run a full conversion (which I don't think is that bad an idea for most PG sourced books). They can all add the cover you have downloaded to the book. Or any that calibre has generated. Quote:
But, the way I do this is from the library in calibre. I'm usually deleting a second copy on the device because I have ended up with both epub and kepub versions. What I do is select the books I want to remove and press the "Delete books" icon. If the device is connected, you get prompted with where to delete them from. Select device. Then I go through the list uncheck the versions I want to keep. It isn't very practical when doing a lot of books, but, I am usually only removing a few because I had the wrong driver active when sending some books. |
||
07-28-2019, 09:46 PM | #1902 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Ok, thanks guys. I'll look at the Generate Cover and Modify ePub plugins. I have the latter installed but overlooked/missed its generate cover capability.
|
07-29-2019, 02:46 AM | #1903 | |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
07-29-2019, 03:21 AM | #1904 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Thanks guys, now I'm more confused than I was previously.
I installed the Generate Cover plugin, which makes nice covers. But it only makes the jpg cover file and puts it in the folder that Calibre has the epub in. It doesn't modify the epub file and add the cover to it. But the Kobo extended driver has the option for uploading covers, which I turned on. After uploading the book the epub file size on the Kobo is larger, and opening the epub on the Kobo with Sigil shows the cover.jpg file in the Images directory and Sigil says it's a Cover Image. But when I unplug the Kobo and open the epub on the Kobo with its ereader the margins are still hosed. So then I tried using the Modify ePub plugin. It adds the image to the epub and also creates a titlepage.xhtml file and when that is sent to the Kobo everything is fine; no wacko margins. But there's an annoying waste of space with the Modify ePub plugin because it creates a copy of the cover.jpg named cover.jpeg, which is what it uses for the titlepage.xhtml file, and then it puts both cover.jpg and cover.jpeg in the Images folder in the epub. KoboUtilities has a thing to clean the images directory of extra images but it doesn't affect the epub file. The Quality Check plugin has things for checking for missing covers but that only looks for the cover.jpg files in the folder the epub is in within Calibre's library. So I'm somewhat mystified about the cover.jpg file in the Calibre folders. Apparently Calibre generates one when an epub is added (an epub that doesn't have a cover image) and uses the text from the first page or so. I'm also wondering if you guys realized that it would be a two step process to properly add a cover with the titlepage.xhtml file, which solves the margin problem. Having an image marked as a cover is insufficient; it needs the titlepage.xhtml as well. |
07-29-2019, 04:09 AM | #1905 |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@lumpynose - below you see a very basic Book. I created the cover with metadata edit Generate Cover. Update metadata in calibre does not touch the book files - this is a deliberate design decision. Hence the cover is not in the epub.
When I run Modify with Insert or replace cover checked I get a book with a cover page and ONE image file -- cover.jpeg. When calibre sends books to devices or saves them to disk it provides the option to send/save with the current metadata embedded in the format sent - including covers. Hence for many calibre users there is no need to update the library copy. I know less that nothing about Kobo; so, I'll let others address the issues related to that particular device BR |
Tags |
error, kobo aura one |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo Device Driver Update | davidfor | Devices | 284 | 05-24-2019 05:24 PM |
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod | cryzed | Plugins | 7 | 10-28-2012 04:58 PM |
[Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? | EverC | Kobo Reader | 11 | 08-31-2011 11:47 PM |
Touch Kobo Touch Extended Warranty Program | SensualPoet | Kobo Reader | 1 | 07-17-2011 04:08 AM |