apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.54k stars 1.52k forks source link

Obok Calibre Plugin not working with Kobo device connected in Linux #447

Open festivefirstname opened 6 years ago

festivefirstname commented 6 years ago

I’m getting the following error when I try to run obok dedrm. I’m running linux (galliumOS) and have purchased kobo ebooks and downloaded them to my kobo glo hd. When I connect the device to the linux laptop and run the plugin, I get errors. Any chance I can get some help troubleshooting? The error inside calibre when I try to run obok while viewing my kobo’s library within calibre is:

calibre, version 3.17.0 ERROR: Unhandled exception: DatabaseError:database disk image is malformed

calibre 3.17 embedded-python: True is64bit: True Linux-4.8.17-galliumos-x86_64-with-debian-stretch-sid Linux (’64bit’, ‘ELF’) (‘Linux’, ‘4.8.17-galliumos’, ‘#1 SMP PREEMPT galliumos4 Thu Feb 23 02:27:28 UTC 2017’) Python 2.7.12 Linux: (‘debian’, ‘stretch/sid’, ”) Interface language: None Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4) && KoboTouchExtended (3, 0, 2) && Kobo Books (1, 3, 0) && KePub Output (3, 0, 0) && KePub Metadata Writer (3, 0, 3) && Kobo Utilities (2, 6, 0) && KePub Input (3, 0, 0) && KePub Metadata Reader (3, 0, 2) Traceback (most recent call last): File “calibre_plugins.obok_dedrm.action”, line 107, in launchObok File “calibre_plugins.obok_dedrm.action”, line 210, in build_book_list File “calibre_plugins.obok_dedrm.obok.obok”, line 416, in books DatabaseError: database disk image is malformed

Here’s debug information: calibre, version 3.17.0 ERROR: Unhandled exception: DatabaseError:database disk image is malformed

calibre 3.17 embedded-python: True is64bit: True Linux-4.8.17-galliumos-x86_64-with-debian-stretch-sid Linux (’64bit’, ‘ELF’) (‘Linux’, ‘4.8.17-galliumos’, ‘#1 SMP PREEMPT galliumos4 Thu Feb 23 02:27:28 UTC 2017’) Python 2.7.12 Linux: (‘debian’, ‘stretch/sid’, ”) Interface language: None Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4) && KoboTouchExtended (3, 0, 2) && Kobo Books (1, 3, 0) && KePub Output (3, 0, 0) && KePub Metadata Writer (3, 0, 3) && Kobo Utilities (2, 6, 0) && KePub Input (3, 0, 0) && KePub Metadata Reader (3, 0, 2) Traceback (most recent call last): File “calibre_plugins.obok_dedrm.action”, line 107, in launchObok File “calibre_plugins.obok_dedrm.action”, line 210, in build_book_list File “calibre_plugins.obok_dedrm.obok.obok”, line 416, in books DatabaseError: database disk image is malformed

apprenticeharper commented 6 years ago

I can only guess that the database format on physical Kobo devices has changed. Perhaps the people who first came up with the Kobo decryption will be able to fix it.