noDRM / DeDRM_tools

DeDRM tools for ebooks
7.25k stars 323 forks source link

FileNotFoundError when there's books on external sdcard #284

Open X-static opened 1 year ago

X-static commented 1 year ago
calibre, version 6.12.0
ERROR: Unhandled exception: <b>FileNotFoundError</b>:[Errno 2] No such file or directory: 'F:\\.kobo\\kepub\\856ca411-ad8a-4ff4-82ce-db9b8c979980'

calibre 6.12  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) && Count Pages (1, 12, 1) && Extract ISBN (1, 6, 0) && Goodreads (1, 7, 3) && Goodreads Sync (1, 16, 2) && Job Spy (1, 0, 204) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 3) && Kobo Books (1, 9, 2) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Obok DeDRM (10, 0, 3)
Traceback (most recent call last):
  File "calibre_plugins.obok_dedrm.dialogs", line 272, in do_book_action
  File "calibre_plugins.obok_dedrm.action", line 220, in get_decrypted_kobo_books
  File "calibre_plugins.obok_dedrm.action", line 374, in decryptBook
  File "zipfile.py", line 1240, in __init__
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\.kobo\\kepub\\856ca411-ad8a-4ff4-82ce-db9b8c979980'
ElleKayEm commented 1 year ago

Importing from a Kobo ereader or Kobo Desktop?

X-static commented 1 year ago

Kobo ereader

ElleKayEm commented 1 year ago

I don't know. I'd try installing Kobo Desktop.

ElleKayEm commented 1 year ago

Further thoughts: is that the normal location the books download to?

Did you have the ereader attached before or after you opened calibre? I'd try the opposite of whatever you did before.

I've never had an issue myself with Obok not finding books, but I've seen it come up here occassionally. I usually download the Adobe DRM epubs and use DeDRM.

X-static commented 1 year ago

Yes, it's the normal location. The thing is that, when there's an SD card connected, a new drive opens when the ereader is plugged in. With a different path. Obok probably is trying to find all books on the original path. Even if I remove the SD card, obok tries to find them.

I'm using it without the SD card to copy the books to calibre. Even had to factory reset the ereader because the ones on the card so being listed.

I tried with Kobo desktop but okob detected the books I downloaded as DRM free. But after being copied they are unreadable.

ElleKayEm commented 1 year ago

I've seen people say that if they close the Kobo app, then Obok will see that the books have DRM.

@noDRM might want to take a look at what is going on with the SD card. Since a lot of the models don't have SD cards, I don't know if the problem has been reported before.