Closed junefish closed 2 years ago
Searching that error code it seem to be related to OpenSSL. I don’t think it’s related to #19, as that was about requests to the server. I see a mention of RC2 in the logs, and searching the error comes up with things about OpenSSL legacy provider, so it’s probably related to https://github.com/Leseratte10/acsm-calibre-plugin/issues/20
@junefish did you try the latest build from actions? Looking through #20, it looks like there is a known issue with Ubuntu and PopOS 22. Here’s a direct link: https://github.com/Leseratte10/acsm-calibre-plugin/suites/6507668348/artifacts/241937660
@JJTech0130 thanks, issue #20 didn't come up in my search. I deleted the existing plugin, restarted calibre, downloaded the zip you linked, unzipped + installed into calibre, and then quit calibre and ran with calibre-debug
. It's still showing up as 0.0.15 so I'm assuming it's a new version without a new version number?
Anyway, that worked!! Thanks a lot. Here's the output in case this helps anyone else:
DeACSM v0.0.15: Trying to parse file TheModernWitchcraftG_9781507211496_4630375.acsm
DeACSM v0.0.15: Try to fulfill ...
Not notifying any server since that was disabled.
DeACSM v0.0.15: Downloading book ...
DeACSM v0.0.15: Loading book from https://acs.cdn.overdrive.com/ACSStore1/0439-1/F38/8DD/38/{F388DD38-4AEF-4920-98D9-1AAAB681966A}Fmt410.epub
Download took 5196 ms (HTTP 200)
That's a ZIP file -> EPUB
DeACSM v0.0.15: File successfully fulfilled ...
DeACSM v0.0.15: Executing plugin DeDRM ...
DeDRM v10.0.2: Trying to decrypt izj2tr4f.epub
DeDRM v10.0.2: Verifying zip archive integrity
DeDRM v10.0.2: izj2tr4f.epub is a secure Adobe Adept ePub for UUID 6be4f782-62e2-403f-bec3-259c336e4cb3
DeDRM v10.0.2: Trying UUID-matched encryption key adobe_uuid_6be4f782-62e2-403f-bec3-259c336e4cb3
DeDRM v10.0.2: Decrypted with key adobe_uuid_6be4f782-62e2-403f-bec3-259c336e4cb3 after 1.2 seconds
DeDRM v10.0.2: Finished after 1.2 seconds
DeACSM v0.0.15: Plugin returned path '/tmp/calibre_5.37.0_tmp_9l0j6978/4vu9vzct.epub', updating.
Added The Modern Witchcraft Guide to Magickal Herbs: Your Complete Guide to the Hidden Powers of Herbs to db in: 0.1
Added 1 books in 7.5 seconds
Yeah it’s just the latest beta build from the master branch. I’m assuming @Leseratte10 will release it and give it a version soon.
I'm surprised that the OpenSSL issue can lead to different error messages. Great that the existing beta worked in this case, too. Looks like the oscrypto module was unable to figure out the OpenSSL version for some reason and then just attempted to use RC2 encryption despite that not being available.
The current method of getting OpenSSL to work is a terrible hack which I'd rather not have in an actual release that will be used by lots of people, so that will probably have to wait until my bugfix in the oscrypto library is merged so I no longer need to patch the existing library code from within my plugin.
Bug description
The plugin works great on my Windows 10 desktop computer, and I authorised it with ADE there. I exported all calibre data and imported it into calibre on my Linux laptop (running Pop! OS 22.04 LTS). Here is the output of running
calibre-debug --gui
and then adding an .acsm file:Operating system
Linux
Which version of Calibre are you running?
5.37
Which version of the DeACSM plugin are you running?
0.0.15
Further information
This seems similar to issue #19 but I'm not sure so am filing a new issue rather than reopening that one.