noDRM / DeDRM_tools

DeDRM tools for ebooks
7.04k stars 314 forks source link

Obok plugin in Calibre can't find Kobo library #524

Open GoblinGuide opened 6 months ago

GoblinGuide commented 6 months ago

Question / bug report

I think the title's pretty self-explanatory, really. Added the plugin to Calibre v7.7, have books downloaded locally in Kobo Desktop Edition 4.37.19051: image

but when I click the "Obok DeDRM" button I get this error box with text "Could not find Kobo Library": image

There does not seem to be any way to "point it" to the library, not that I'd assume I'd need to since I assume this is a configuration error on my end - any help would be appreciated! Useless log attached, for what it's worth.

Which version of Calibre are you running?

7.7

Which version of the DeDRM plugin are you running?

10.0.3

If applicable, which version of the Kindle software are you running?

No response

Log output

ApplicationPaletteChange event ignored
Using calibre Qt style: True
calibre Debug log
calibre 7.7  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: Obok DeDRM (10, 0, 3)
calibre 7.7  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: Obok DeDRM (10, 0, 3)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
[0.00] Starting up...
[0.02] Showing splash screen...
[0.20] splash screen shown
[0.20] Initializing db...
[0.22] db initialized
[0.22] Constructing main UI...
DEBUG:    0.0 obok::utilities.py - loading translations
DEBUG:    0.0 obok::dialogs.py - loading translations
DEBUG:    0.0 obok::config.py - loading translations
DEBUG:    0.0 obok::action_err.py - loading translations
Loaded cached store plugin for: Kobo at version: 12
[0.66] GUI main window shown
[0.75] main UI initialized...
[0.75] Hiding splash screen
ElleKayEm commented 6 months ago

I haven't had this happen. But when I've had other issues, I've found closing Kobo Desktop before using Obok helped.

GoblinGuide commented 6 months ago

I didn't have it open at the time. I could try opening it and then trying Obok...

Trip report: that produced no change. Same error whether I have both Caliber and Kobo open or just Caliber.

ElleKayEm commented 6 months ago

Try updating to Obok 10.0.9: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9

GoblinGuide commented 5 months ago

image

Same error.

Same log, ish, too:


Using calibre Qt style: True
calibre Debug log
calibre 7.7  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: Obok DeDRM (10, 0, 9)
calibre 7.7  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: Obok DeDRM (10, 0, 9)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
[0.00] Starting up...
[0.00] Showing splash screen...
[0.17] splash screen shown
[0.17] Initializing db...
[0.19] db initialized
[0.19] Constructing main UI...
DEBUG:    0.0 obok::utilities.py - loading translations
DEBUG:    0.0 obok::dialogs.py - loading translations
DEBUG:    0.0 obok::config.py - loading translations
DEBUG:    0.0 obok::action_err.py - loading translations
Loaded cached store plugin for: Kobo at version: 12
[0.61] GUI main window shown
[0.70] main UI initialized...
[0.70] Hiding splash screen```
ElleKayEm commented 5 months ago

I really have no idea. Assume Kobo Desktop and calibre are installed under the same Windows user, yes? I can see from your earlier screen shot that your Kobo library is located in the same default location where mine is. I don't know what could be preventing Obok from finding it.

A couple workarounds: If you have a Kobo reader, maybe Obok would see that. Or you could download the Adobe DRM versions via Adobe Digital Editions and use regular DeDRM.