Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-07-2021, 09:08 AM   #2626
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
Quote:
Originally Posted by davidfor View Post
@sheldon_es: I tried the book you sent me and had no errors with either a conversion or using the extended driver. It feels like something external interfering, but, I have no idea what. The obvious culprit would be anti-virus or anti-malware.
It could be an aggressive temp file cleaner. I think that some work by watching for changes then deleting things when they don't change, depending on locking to prevent breakage. Running calibre in safe mode could help find the culprit or at least verify the "something external" theory.
chaley is offline   Reply With Quote
Old 12-12-2021, 05:31 AM   #2627
sheldon_es
Junior Member
sheldon_es began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2021
Device: Kobo Clara HD
Thanks. I'll try to observe the tenmp directory to see what's happening to the files. It could be the antivirus, but I don't have a temp cleaner at a machine level, and I already tried to change the directory to a normal one and the error was still there.
sheldon_es is offline   Reply With Quote
Old 12-16-2021, 06:10 PM   #2628
Boilerplate4U
Enthusiast
Boilerplate4U began at the beginning.
 
Boilerplate4U's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Does anyone know what is causing the errors below? I get them every time I transfer books to my Kobo Clara HD. However, everything seems to work fine afterwards except that some metadata like the book series is not updated on the device.

Code:
caliber, version 5.33.2
ERROR: Error: Error communicating with device

CorruptError: database disk image is malformed

Traceback (most recent call last):
   File "caliber / gui2 / device.py", line 87, in run
   File "caliber / gui2 / device.py", line 543, in _sync_booklists
   File "calibre_plugins.kobotouch_extended.device.driver", line 459, in sync_booklists
     all_nulls = __rows_needing_imageid ()
   File "caliber_plugins.kobotouch_extended.device.driver", line 454, in __rows_needing_imageid
     c.execute (select_query, (self.content_types ["main"],))
apsw.CorruptError: CorruptError: database disk image is malformed
Boilerplate4U is offline   Reply With Quote
Old 12-16-2021, 06:23 PM   #2629
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: 16,943
Karma: 82522897
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
Quote:
Originally Posted by Boilerplate4U View Post
Does anyone know what is causing the errors below? I get them every time I transfer books to my Kobo Clara HD. However, everything seems to work fine afterwards except that some metadata like the book series is not updated on the device.


Spoiler:
Code:
caliber, version 5.33.2
ERROR: Error: Error communicating with device
CorruptError: database disk image is malformed

Traceback (most recent call last):
   File "caliber / gui2 / device.py", line 87, in run
   File "caliber / gui2 / device.py", line 543, in _sync_booklists
   File "calibre_plugins.kobotouch_extended.device.driver", line 459, in sync_booklists
     all_nulls = __rows_needing_imageid ()
   File "caliber_plugins.kobotouch_extended.device.driver", line 454, in __rows_needing_imageid
     c.execute (select_query, (self.content_types ["main"],))
apsw.CorruptError: CorruptError: database disk image is malformed
Basically, it's telling you that your database on the devices has errors. If you have @davidfor's Kobo Utilities plugin installed, the check database will likely tell you the same information that your database is corrupted. Sometime running the compress database item will correct some minor errors. A quick search on Mobileread ( I used Google with kobo database corrupt site:mobileread.com as the search string and limited to past year) will give you quite a few bits of advice.

Though generally, I find the signing out and signing back in as the easiest way to generate a new database. This does lose your annotations, statistics, etc.
DNSB is online now   Reply With Quote
Old 12-19-2021, 05:36 AM   #2630
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo Aura HD
I got my Kobo Libra H2O. The first few times connecting & sending books went fine. Then I plugged it in again and got this:

Code:
'utf-8' codec can't decode byte 0x83 in position 637: invalid start byte

Traceback (most recent call last):
  File "calibre\gui2\device.py", line 87, in run
  File "calibre\gui2\device.py", line 512, in _books
  File "calibre\devices\kobo\driver.py", line 1988, in books
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 637: invalid start byte
Switching to the regular driver works, but I prefer kepubs. I checked the database and it's good. Any idea what I'm doing wrong?

EDIT: Attached debug log.

ANOTHER EDIT: I noticed the KoboTouchExtended settings was a lot of null characters in the debug log. So just to see what happened i moved the device_drivers_KOBOTOUCHEXTENDED.py.json file out and re-created all the settings. Now it's working. I've attached the old json (renamed to txt because of file upload limitations) for investigation.
Attached Files
File Type: txt tmpqzdbwk01.txt (13.1 KB, 13 views)
File Type: txt device_drivers_KOBOTOUCHEXTENDED.py.json.txt (1.6 KB, 12 views)

Last edited by ownedbycats; 12-19-2021 at 07:25 AM.
ownedbycats is online now   Reply With Quote
Old 12-21-2021, 01:49 PM   #2631
dhampny
Enthusiast
dhampny began at the beginning.
 
dhampny's Avatar
 
Posts: 25
Karma: 10
Join Date: Feb 2009
Location: Rochester, NY
Device: Kindle Oasis 2 & Voyage, Kobo Forma & Libra 2
kobo touch extended driver creates kepub in calibre library

I had posted this in the Kobo forum but was advised it might be more appropriately posted here.

Please excuse me if this has been asked and answered already. I've searched but haven't been able to find an answer to what I see happening when I use the kobo touch extended driver.

My understanding is that the driver should create a kepub file only on my Libra 2 or Forma when I send an epub to it. However, in my case, the driver also creates a kepub format file in my Calibre library. So I end up with both epub and kepub format files of the book. It does correctly convert the epub format of my ebook and send it to the Kobo as a kepub (kobo epub) ebook.

What am I doing wrong?

Thanks.
dhampny is offline   Reply With Quote
Old 12-21-2021, 02:22 PM   #2632
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: 26,905
Karma: 41870062
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
I suspect you set Preference:Behavior: Preferred output to KEPUB (and the normal device driver converts the file FIRST, since that does not exist)
Set it to EPUB and let the Utilities do the on the fly work
theducks is offline   Reply With Quote
Old 12-21-2021, 02:33 PM   #2633
dhampny
Enthusiast
dhampny began at the beginning.
 
dhampny's Avatar
 
Posts: 25
Karma: 10
Join Date: Feb 2009
Location: Rochester, NY
Device: Kindle Oasis 2 & Voyage, Kobo Forma & Libra 2
Quote:
Originally Posted by theducks View Post
I suspect you set Preference:Behavior: Preferred output to KEPUB (and the normal device driver converts the file FIRST, since that does not exist)
Set it to EPUB and let the Utilities do the on the fly work
Thanks. I already have that set to EPUB. Also, I do have the Kobo Touch plugin disabled and I have Enable Extended Kobo Features selected in the KoboTouchExtended driver plugin.
dhampny is offline   Reply With Quote
Old 12-21-2021, 02:41 PM   #2634
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: 26,905
Karma: 41870062
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dhampny View Post
Thanks. I already have that set to EPUB. Also, I do have the Kobo Touch plugin disabled and I have Enable Extended Kobo Features selected in the KoboTouchExtended driver plugin.
I use the Extended driver all the time and it has never put a KEPUB file into the Library, that is why I thought the Preference was the cause
theducks is offline   Reply With Quote
Old 12-21-2021, 03:01 PM   #2635
dhampny
Enthusiast
dhampny began at the beginning.
 
dhampny's Avatar
 
Posts: 25
Karma: 10
Join Date: Feb 2009
Location: Rochester, NY
Device: Kindle Oasis 2 & Voyage, Kobo Forma & Libra 2
I'll explain what is happening when I send a kepub to my Kobo to make sure my expectations of what should be happening is correct.

With my Kobo connected to Calibre I choose an epub to 'Send to device'. In a popup window Calibre asks me to choose the format to send and shows I have '0 of 1 kepub'. I choose that format, Calibre does the conversion and sends to my Kobo. The kepub format then appears under Formats in the Book Details and it also appears as a file when I look under the Author folder/Book subfolder in my Calibre Library.

My expectation from everything I've read about the kobo touch extended driver is that I would not see the kepub format appear in Book Details nor within the Author/Book subfolder. Am I correct in this regard?
dhampny is offline   Reply With Quote
Old 12-21-2021, 04:29 PM   #2636
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 5,795
Karma: 14403489
Join Date: Sep 2009
Location: UK
Device: Kobo: H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by dhampny View Post
With my Kobo connected to Calibre I choose an epub to 'Send to device'. In a popup window Calibre asks me to choose the format to send and shows I have '0 of 1 kepub'. I choose that format...
I think this is your problem. Because you're choosing KEPUB (which doesn't currently exist) the calibre driver decides it had better create a KEPUB, in your library, so that it can be sent. Pick the EPUB format (which does currently exist) instead. The KoboTouchExtended driver will handle the on-the-fly creation of the kepub, without storing it in the library.

Last edited by jackie_w; 12-21-2021 at 04:32 PM.
jackie_w is offline   Reply With Quote
Old 12-21-2021, 06:09 PM   #2637
dhampny
Enthusiast
dhampny began at the beginning.
 
dhampny's Avatar
 
Posts: 25
Karma: 10
Join Date: Feb 2009
Location: Rochester, NY
Device: Kindle Oasis 2 & Voyage, Kobo Forma & Libra 2
Quote:
Originally Posted by jackie_w View Post
I think this is your problem. Because you're choosing KEPUB (which doesn't currently exist) the calibre driver decides it had better create a KEPUB, in your library, so that it can be sent. Pick the EPUB format (which does currently exist) instead. The KoboTouchExtended driver will handle the on-the-fly creation of the kepub, without storing it in the library.
That was it! Thank you. And thank you again to theducks. Karma to you both. (I've already added some to theducks.)
dhampny is offline   Reply With Quote
Old 12-21-2021, 10:23 PM   #2638
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: 23,225
Karma: 41975128
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by dhampny View Post
That was it! Thank you. And thank you again to theducks. Karma to you both. (I've already added some to theducks.)
There is still something wrong with what you have said you are doing and how it is configured.

Firstly, if you click the "Send to device" button, or use the menu and choose "Send to main memory" from the menu, it doesn't prompt for the format. When doing this, the calibre finds the format to send based on the order of the formats in the driver configuration. The format for the book that is the first in the enabled formats will be sent. If you do not have a suitable format, it will do a conversion. And it will convert to the top format in that list. That means, that if you have the default option, which is "kepup, epub, PDF, txt, cbz, cbr", and you have an epub, it will be sent. But, if your only format is a MOBI, it will be converted to kepub, if you have the Kepub Output plugin installed. Otherwise it will be converted to epub. After the conversion, the book will be sent.

The dialog you describe sounds like what you get if you choose the "Send specific format to" option. In this case, the dialog shows all formats that are configured for the device (the list above). And it shows which formats actually exist in the books you have selected. For kepubs, you were seeing "0 of 1 kepub" which means that you had selected 1 book and it didn't have a kepub format. When you selected this and pressed OK, you were telling calibre to convert the book to kepub and then send that to the device. Calibre will prompt to tell you it is doing this, but, that can be turned off.

If you are using the KoboTouchExtended driver, my recommendation is to use the simple "Send to device" and leave the driver configuration for formats to the default. This will mean the driver will transform epubs to kepubs when sending them to the device. But, if you do have a kepub in the library, it will be sent. There is generally no reason to have kepubs in the library, but, if you are resending books frequently, or to multiple devices, is faster to convert once and then send the kepub.
davidfor is offline   Reply With Quote
Old 12-21-2021, 10:29 PM   #2639
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: 23,225
Karma: 41975128
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
I got my Kobo Libra H2O. The first few times connecting & sending books went fine. Then I plugged it in again and got this:

Code:
'utf-8' codec can't decode byte 0x83 in position 637: invalid start byte

Traceback (most recent call last):
  File "calibre\gui2\device.py", line 87, in run
  File "calibre\gui2\device.py", line 512, in _books
  File "calibre\devices\kobo\driver.py", line 1988, in books
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 637: invalid start byte
Switching to the regular driver works, but I prefer kepubs. I checked the database and it's good. Any idea what I'm doing wrong?

EDIT: Attached debug log.

ANOTHER EDIT: I noticed the KoboTouchExtended settings was a lot of null characters in the debug log. So just to see what happened i moved the device_drivers_KOBOTOUCHEXTENDED.py.json file out and re-created all the settings. Now it's working. I've attached the old json (renamed to txt because of file upload limitations) for investigation.
All I can say to that is that it is weird. I can see the strangeness in the logs, but, I can't see anything in configuration file that would be causing this. The other times I have seen this problem, it seemed to be an unusual character in one of the fields pulled from the database. But, I've never worked out how it got there or exactly what it was.
davidfor is offline   Reply With Quote
Old 12-22-2021, 12:30 AM   #2640
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo Aura HD
Maybe the encoding of the json went weird? I did some searching and found this:

Quote:
The character frequently appears in Japanese mojibake. The lead byte 0x83 appears before a Katakana character in Shift JIS, but if interpreted as Windows-1252 encoding, it becomes the ƒ character.

Last edited by ownedbycats; 12-22-2021 at 12:36 AM.
ownedbycats is online now   Reply With Quote
Reply

Tags
error, kobo aura one

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 06:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 05:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 11:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 09-01-2011 12:47 AM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 05:08 AM


All times are GMT -4. The time now is 04:14 PM.


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