View Single Post
Old 05-06-2021, 11:40 PM   #3
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 ownedbycats View Post
Several times, after copying a book to my Kobo with ADE and allowing the book to import to the device, Calibre gives me this error on the next plugin:

Code:
IOError: disk I/O error

Traceback (most recent call last):
  File "calibre\gui2\device.py", line 89, in run
  File "calibre\gui2\device.py", line 515, in _books
  File "calibre\devices\kobo\driver.py", line 1869, in books
  File "calibre\devices\kobo\driver.py", line 180, in device_database_connection
apsw.IOError: IOError: disk I/O error
Here's steps to how I do it:

1. Close Calibre. Open Adobe Digital Editions.
2. Connect device. Copy book to it.
3. Disconnect device. Wait for book to import.
4. Close Adobe Digital Editions. Open Calibre.
5. Connect device. Get error.
6. Disconnect device. Connect again. It'll work fine this time.

Any idea what is going on? It only happens after copying a book with ADE, and always connects the second time.
ADE doesn't touch the database on the device which is where this the driver is failing. It looks like ADE is leaving the USB connection in a bad state and causing the next access to fail. You could try to manually copy a file to or from the device to see if there is a problem doing that.

How soon after using ADE to send the book do you open calibre? It shouldn't matter but I suppose there could be a cache somewhere that hasn't been flushed.
davidfor is offline   Reply With Quote