09-01-2023, 11:23 AM | #331 |
The Grand Mouse 高貴的老鼠
Posts: 71,628
Karma: 306652114
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Have you updated to the latest version of the plugin? (0.0.16)
|
09-02-2023, 03:12 AM | #332 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2023
Device: Kobo Aura
|
The OS would be linux (Debian Sid, kernel 6.4.0-3-amd64) and I was using the latest version 0.0.16 (when the plugin failed, I tried installing it again, both from calibre directly and downloading the plugin and adding it from the file). But in both cases I get the error that seems to be related to finding libcrypto. But libcrypto seems to be there ( libcrypto++8 ). So I wonder why it is not finding it...
|
Advert | |
|
09-02-2023, 05:18 AM | #333 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2023
Device: Kobo Aura
|
Sorry I think I should have said libssl1.1 instead. But it is there too:
Code:
dpkg -L libssl1.1 /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/engines-1.1 /usr/lib/x86_64-linux-gnu/engines-1.1/afalg.so /usr/lib/x86_64-linux-gnu/engines-1.1/padlock.so /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 |
09-02-2023, 01:52 PM | #334 |
Groupie
Posts: 182
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
|
This looks like it's a bug in oscrypto, the library my plugin uses for cryptography stuff.
https://github.com/wbond/oscrypto/issues/78 I can take a look in a couple days and see if I can find a workaround. Can you post the output of "openssl version" on the command line? EDIT: Confirmed, bug in oscrypto. As soon as the system is updated to openssl 3.0.10 or higher the python module fails because they have a buggy regex that only accepts single-digit version numbers. There's not much you can do in the meantime, sadly, other than maybe trying to downgrade openssl again, but that may break your system or other applications. So this is the same situation as back then when openssl 3 came out, sooner or later everyone will run into this bug. I'll try to find a workaround asap; and I'll try to find some time soon-ish to finally finish and release 0.1.0 with all the fixes since then. Last edited by Leseratte_10; 09-02-2023 at 03:10 PM. |
09-02-2023, 02:09 PM | #335 |
Groupie
Posts: 182
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
|
Here's a quick untested update, can you give that a try?
Choose the first file if you're on 0.0.16, or choose the second one if you're already on the 0.1.0 beta version from Github. Let me know if that fixes it. EDIT: Bugfix moved to 2nd post. Last edited by Leseratte_10; 09-03-2023 at 11:45 AM. |
Advert | |
|
09-03-2023, 04:42 AM | #336 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2023
Device: Kobo Aura
|
Thank you so much for the very quick update. On the first question, I am running:
Code:
openssl version OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0.10 1 Aug 2023) Code:
calibre, version 6.25.0 ERROR: Excepción no considerada: <b>InvalidPlugin</b>:La inicialización del complemento Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 710, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.__init__", line 226, in initialize from libadobe import createDeviceKeyFile, update_account_path, sendHTTPRequest File "/home/rowan/Descargas/ACSMInput_0.0.16-bugfix.zip/libadobe.py", line 59, in <module> from oscrypto import keys File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module> from ._asymmetric import parse_certificate, parse_private, parse_public File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module> from .kdf import pbkdf1, pbkdf2, pkcs12_kdf File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module> from .util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module> from ._openssl.util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in <module> from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module> from ._libcrypto_ctypes import ( File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in <module> raise LibraryNotFoundError('Error detecting the version of libcrypto') oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto falló y generó la siguiente traza: Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 710, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.__init__", line 226, in initialize from libadobe import createDeviceKeyFile, update_account_path, sendHTTPRequest File "/home/rowan/Descargas/ACSMInput_0.0.16-bugfix.zip/libadobe.py", line 59, in <module> from oscrypto import keys File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module> from ._asymmetric import parse_certificate, parse_private, parse_public File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module> from .kdf import pbkdf1, pbkdf2, pkcs12_kdf File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module> from .util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module> from ._openssl.util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in <module> from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module> from ._libcrypto_ctypes import ( File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in <module> raise LibraryNotFoundError('Error detecting the version of libcrypto') oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto calibre 6.25 embedded-python: False Linux-6.4.0-3-amd64-x86_64-with-glibc2.37 Linux ('64bit', 'ELF') ('Linux', '6.4.0-3-amd64', '#1 SMP PREEMPT_DYNAMIC Debian 6.4.11-1 (2023-08-17)') Python 3.11.5 Interface language: es Successfully initialized third party plugins: DeDRM (10, 0, 3) Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 710, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.__init__", line 226, in initialize from libadobe import createDeviceKeyFile, update_account_path, sendHTTPRequest File "/home/rowan/Descargas/ACSMInput_0.0.16-bugfix.zip/libadobe.py", line 59, in <module> from oscrypto import keys File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module> from ._asymmetric import parse_certificate, parse_private, parse_public File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module> from .kdf import pbkdf1, pbkdf2, pkcs12_kdf File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module> from .util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module> from ._openssl.util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in <module> from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module> from ._libcrypto_ctypes import ( File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in <module> raise LibraryNotFoundError('Error detecting the version of libcrypto') oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 325, in add_plugin plugin = add_plugin(path) ^^^^^^^^^^^^^^^^ File "/usr/lib/calibre/calibre/customize/ui.py", line 520, in add_plugin plugin = initialize_plugin(plugin, path_to_zip_file, PluginInstallationType.EXTERNAL) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/calibre/calibre/customize/ui.py", line 715, in initialize_plugin raise InvalidPlugin((_('Initialization of plugin %s failed with traceback:') calibre.customize.InvalidPlugin: La inicialización del complemento Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 710, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.__init__", line 226, in initialize from libadobe import createDeviceKeyFile, update_account_path, sendHTTPRequest File "/home/rowan/Descargas/ACSMInput_0.0.16-bugfix.zip/libadobe.py", line 59, in <module> from oscrypto import keys File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module> from ._asymmetric import parse_certificate, parse_private, parse_public File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module> from .kdf import pbkdf1, pbkdf2, pkcs12_kdf File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module> from .util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module> from ._openssl.util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in <module> from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module> from ._libcrypto_ctypes import ( File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in <module> raise LibraryNotFoundError('Error detecting the version of libcrypto') oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto falló y generó la siguiente traza: Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 710, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.__init__", line 226, in initialize from libadobe import createDeviceKeyFile, update_account_path, sendHTTPRequest File "/home/rowan/Descargas/ACSMInput_0.0.16-bugfix.zip/libadobe.py", line 59, in <module> from oscrypto import keys File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module> from ._asymmetric import parse_certificate, parse_private, parse_public File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module> from .kdf import pbkdf1, pbkdf2, pkcs12_kdf File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module> from .util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module> from ._openssl.util import rand_bytes File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in <module> from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module> from ._libcrypto_ctypes import ( File "/home/rowan/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in <module> raise LibraryNotFoundError('Error detecting the version of libcrypto') oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto |
09-03-2023, 04:49 AM | #337 |
Groupie
Posts: 182
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
|
Can you try first uninstalling the existing plugin then try to install the bugfix one and see if that helps?
If it doesn't then I'll try to set up a VM with Debian Sid and try to confirm it myself. |
09-03-2023, 05:26 AM | #338 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2023
Device: Kobo Aura
|
You are utterly right! I removed the configuration folder to ensure I started with a clean Calibre (as the plugin was not being listed as installed, but there was clearly something lying there somewhere) and then I could use ACSMInput_0.0.16-bugfix.zip to install the plugin with no issues. I configured it again, tested it and it seems to work like a charm now! Thank you very much for fixing it!!!
|
09-03-2023, 05:42 AM | #339 |
Groupie
Posts: 182
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
|
Thanks for confirming, I added that fix version to the 2nd post in this thread for others to see.
|
09-19-2023, 07:16 AM | #340 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Device: iBooks (iOS, Mac)
|
Fix does not seem to work on Calibre 6.26.0. Python error. Always the possibility of user error
|
09-19-2023, 09:57 AM | #341 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Device: iBooks (iOS, Mac)
|
Here is what I see as an error (all gibberish to me):
Spoiler:
Last edited by theducks; 09-19-2023 at 11:20 AM. Reason: Please Spoiler Log files |
09-19-2023, 10:09 AM | #342 | ||
Wizard
Posts: 2,091
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Your libcrypto.3.dylib seems to unsigned. My recommendation is to go back one version or reload it.
Please post which OS you are using. edit: I see you are using Mac-OS. The apple. My Linux Mint system is using openssl3.0.2 with no problems. bernie Quote:
Quote:
Last edited by gbm; 09-19-2023 at 10:32 AM. |
||
09-19-2023, 05:55 PM | #343 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Device: iBooks (iOS, Mac)
|
Yes, my bad
Running macOS 14.0 (23A339) Calibre 6.26.0 ACSMInput_0.0.16-bugfix.zip |
09-20-2023, 02:14 AM | #344 |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2023
Device: none
|
Thanks for this excellent plugin. Have you heard any reports of issues with certain .acsm files from Harmathèque?
|
09-22-2023, 01:36 AM | #345 |
Groupie
Posts: 182
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
|
@clayesq, if this issue is still present, try running "brew unlink openssl@3" and see if that fixes it.
@vpatriot Nope, not heard of any particular issues with that store. Does the issue happen with all of their books or just some? Books from other stores or Adobe's sample page work? Try running Calibre in debug mode (right-click "Preferences" then "Restart in debug mode"), then import the ACSM, then close calibre. Then a window with a log file should open which you can post here. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[FileType Plugin] GetFileName | Terisa de morgan | Plugins | 412 | 03-15-2024 01:56 AM |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 AM |
help with epub on_import filetype plugin | digitalvideo | Development | 4 | 02-27-2020 05:13 AM |
Question about file_types in FileType plugin | Terisa de morgan | Plugins | 6 | 02-08-2017 05:53 AM |
Zip Filetype Plugin? | rsingley | Plugins | 7 | 02-11-2011 05:11 PM |