Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-27-2024, 07:22 AM   #481
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by Siavahda View Post
Running Calibre 7.17 on Windows, version 0.0.16 of the ACSM input plugin, no idea what I'm doing wrong. (The ACSM files also won't open in Adobe - I keep getting either a E_ADEPT_DOCUMENT_TYPE_UNKNOWN error or E-STREAM_ERROR.)

I tried an ACSM file from another source - one which did open on Adobe - and that was fine.

If anyone has thoughts, please explain like I'm five, I'm NOT the tech-savviest...
If Adobe cannot open it, calibre/plugin are not going to be able to open it either. There is an issue with the acsm itself, not with the tools.
Terisa de morgan is offline   Reply With Quote
Old 08-27-2024, 10:18 AM   #482
Siavahda
Zealot
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 107
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
...probably should have been able to work that out for myself! Eep. Thank you!
Siavahda is offline   Reply With Quote
Old 09-06-2024, 10:54 PM   #483
datenolm
Junior Member
datenolm began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2024
Device: pocketbook verse
ACsm plugin stopped working.

My Acsm plugin worked well (thank you very much!) but stopped working today. (The last time I used it before was about 4 weeks ago.

I looked at the debug logs, and found problems with the new library.

Quote:
File "/home/oliver/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 304, in <module>
libcrypto.EVP_PKEY_size.argtypes = [
^^^^^^^^^^^^^^^^^^^^^^^
File "ctypes/__init__.py", line 389, in __getattr__
File "ctypes/__init__.py", line 394, in __getitem__
AttributeError: /opt/calibre/lib/libcrypto.so.3: undefined symbol: EVP_PKEY_size
I deleted the deacsm folder, loged again into adobe and installed the updated version from github. Again, no acsm conversion. I updated calibre and still doesn'T work. I reinstalled DeDRM.

Below is the log. There is 403, maybe that's the reason?

Any help is appreciated.

Datenolm.

Quote:
ApplicationPaletteChange event ignored
Using calibre Qt style: True
calibre Debug log
calibre 7.17 embedded-python: True
Linux-6.8.0-101041-tuxedo-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '6.8.0-101041-tuxedo', '#41~22.04.1tux1 SMP PREEMPT_DYNAMIC Wed Aug 21 22:16:53 UTC 2024')
Python 3.11.5
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && DeDRM (10, 0, 3) && ACSM Input Plugin GUI Extension (0, 1, 0)
calibre 7.17 embedded-python: True
Linux-6.8.0-101041-tuxedo-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '6.8.0-101041-tuxedo', '#41~22.04.1tux1 SMP PREEMPT_DYNAMIC Wed Aug 21 22:16:53 UTC 2024')
Python 3.11.5
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && DeDRM (10, 0, 3) && ACSM Input Plugin GUI Extension (0, 1, 0)
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 91.84180790960451 x 92.05369127516778
[0.00] Starting up...
[0.00] Showing splash screen...
[1.06] splash screen shown
[1.06] Initializing db...
[1.15] db initialized
[1.15] Constructing main UI...
ACSM Input: GUI Plugin Genesis!
[1.58] GUI main window shown
[1.63] main UI initialized...
[1.63] Hiding splash screen
[1.63] splash screen hidden
[1.64] Started up in 1.64 seconds with 1193 books
Traceback (most recent call last):
File "calibre_plugins.deacsm.__init__", line 547, in run_single
success, replyData = fulfill(path_to_ebook, deacsmprefs["notify_fulfillment"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^
File "/home/oliver/.config/calibre/plugins/ACSM Input.zip/libadobeFulfill.py", line 442, in fulfill
ret = operatorAuth(fulfillURL)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/oliver/.config/calibre/plugins/ACSM Input.zip/libadobeFulfill.py", line 286, in operatorAuth
ret = doOperatorAuth(operatorURL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/oliver/.config/calibre/plugins/ACSM Input.zip/libadobeFulfill.py", line 238, in doOperatorAuth
replyData = sendRequestDocu(auth_req, authURL + "/Auth").decode("utf-8")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
AttributeError: 'NoneType' object has no attribute 'decode'
ACSM Input v0.1.0: Trying to parse file Konnikova_The-Biggest-Bluff_9780008270841.acsm
ACSM Input v0.1.0: Try to fulfill ...
Fulfill request:
<?xml version="1.0"?><adept:fulfill xmlns:adept="http://ns.adobe.com/
[lots of personal data stuff deleted]

Post request caused HTTPError 403
['kdialog', '--title', 'Select books', '--desktopfile', 'calibre-gui', '--attach', '226492442', '--multiple', '--separate-output', '--getopenfilename', '/home/oliver/Downloads', 'Books (*.lrf *.rtf *.lit *.txt *.txtz *.text *.htm *.xhtm *.html *.htmlz *.xhtml *.pdf *.pdb *.updb *.pdr *.prc *.mobi *.azw *.doc *.epub *.fb2 *.fbz *.djv *.djvu *.lrx *.cbr *.cb7 *.cbz *.cbc *.oebzip *.rb *.imp *.odt *.chm *.tpz *.azw1 *.pml *.pmlz *.mbp *.tan *.snb *.xps *.oxps *.azw4 *.book *.zbf *.pobi *.docx *.docm *.md *.textile *.markdown *.ibook *.ibooks *.iba *.azw3 *.ps *.kepub *.kfx *.kpf *.acsm)\nEPUB books (*.epub *.kepub)\nKindle books (*.mobi *.prc *.azw *.azw3 *.kfx *.tpz *.azw1 *.azw4)\nPDF books (*.pdf *.azw4)\nHTML books (*.htm *.html *.xhtm *.xhtml)\nLIT books (*.lit)\nText books (*.txt *.text *.rtf *.md *.markdown *.textile *.txtz)\nComics (*.cbz *.cbr *.cbc *.cb7)\nArchives (*.zip *.rar *.7z)\nWordprocessor files (*.odt *.doc *.docx)\nAll files (*)']
Added Konnikova The-Biggest-Bluff 9780008270841 to db in: 0.1
Added 1 books in 1.0 seconds
datenolm is offline   Reply With Quote
Old 09-07-2024, 01:46 AM   #484
xircso
Junior Member
xircso began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2021
Device: kobo clara color
Quote:
Originally Posted by sgmoore View Post
It is possible the problem is related to one of your keys, presumably the ADE key.
If so, try the workaround mentioned here https://github.com/noDRM/DeDRM_tools...ent-1732593861
Thanks for the suggestion, I couldn't exactly follow all the steps, but as close as I could understand and I'm still seeing the same error.
xircso is offline   Reply With Quote
Old 09-07-2024, 07:24 AM   #485
sgmoore
Zealot
sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 642206
Join Date: Mar 2021
Device: Kindle Voyage
Quote:
Originally Posted by xircso View Post
Thanks for the suggestion, I couldn't exactly follow all the steps, but as close as I could understand and I'm still seeing the same error.
I assume you have tested that the file opens in ADE? If not, it could be a problem with your adobe account.

The first thing to do is to try to determine which key is being used and what is wrong with it.

Check your debug log and before your error message you should see a line starting

Quote:
DeDRM v10.0.9: Trying encryption key
followed by a name (which may be default_key)

Then open your drdrm.json file in notepad or some other text editor (To find out where this is, go to Preferences / Miscellaneous / Open Calibre Configuration folder and then switch into the plugins folder.)

Search for the name of the encryption key

If you have two entries with the same name, then judging by the previous error, it probably should be in the adeptkeys section.

When you have found the key name, look at the value beside it. This should be a very long quoted string of hex characters i.e. should only contain the characters 0123456789abcdef

Any other characters would cause the error you are getting.

If that does not help pinpoint the error, then post your updated log (which will have changed since your original when you updated to v10.0.9 of DeDrm).
sgmoore is offline   Reply With Quote
Old 09-09-2024, 06:44 AM   #486
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
I'm getting SSL certificate problems. All was working well until this morning. I can still check out books through my library, download the acsm file from libbyapp.com, import into ADE and import into Calibre.

The error is in the overdrive libby plugin, but the issue seems to be here.

I tried importing the certificate mentioned in #450 in this thread. However, https://acs.cdn.overdrive.com mentioned in #449 gets a 404 not found error.

The certs I imported were 1p5.crt and lets-encrypt-r3.der. Upgrading to Calibre 7.17 didn't help.

Spoiler:
calibre, version 7.15.0
ERROR: Unhandled exception: <b>ClientConnectionError</b>: Error synchronizing data<p>Check your connection or retry in a few minutes.</p>

calibre 7.15 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.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) && Action Chains (1, 20, 7) && EpubSplit (3, 6, 0) && Find Duplicates (1, 6, 3) && Goodreads (1, 8, 2) && KePub Output (3, 6, 6) && Kindle hi-res covers (0, 5, 1) && Kobo Utilities (2, 17, 1) && KoboTouchExtended (3, 6, 11) && OverDrive Libby (0, 1, 9) && Reading List (1, 15, 4) && SmartEject (2, 5, 1)
Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1286, in request
File "http\client.py", line 1332, in _send_request
File "http\client.py", line 1281, in endheaders
File "http\client.py", line 1041, in _send_output
File "http\client.py", line 979, in send
File "http\client.py", line 1458, in connect
File "ssl.py", line 517, in wrap_socket
File "ssl.py", line 1108, in _create
File "ssl.py", line 1379, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'sentry-read.svc.overdrive.com'. (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre_plugins.overdrive_libby.libby.client" , line 518, in send_request
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'sentry-read.svc.overdrive.com'. (_ssl.c:1006)>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "calibre_plugins.overdrive_libby.workers", line 351, in run
File "calibre_plugins.overdrive_libby.libby.client" , line 631, in sync
File "calibre_plugins.overdrive_libby.libby.client" , line 556, in send_request
calibre_plugins.overdrive_libby.libby.errors.Clien tConnectionError: <calibre_plugins.overdrive_libby.libby.errors.Clie ntConnectionError; http_status=0, msg='URLError <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'sentry-read.svc.overdrive.com'. (_ssl.c:1006)>', error_response='''>


EDIT: Solution at https://www.mobileread.com/forums/sh...&postcount=203 Also see post #204.

Last edited by foosion; 09-09-2024 at 11:25 AM.
foosion is offline   Reply With Quote
Old 09-11-2024, 08:57 PM   #487
xircso
Junior Member
xircso began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2021
Device: kobo clara color
Quote:
Originally Posted by sgmoore View Post
I assume you have tested that the file opens in ADE? If not, it could be a problem with your adobe account.

The first thing to do is to try to determine which key is being used and what is wrong with it.

Check your debug log and before your error message you should see a line starting


followed by a name (which may be default_key)

Then open your drdrm.json file in notepad or some other text editor (To find out where this is, go to Preferences / Miscellaneous / Open Calibre Configuration folder and then switch into the plugins folder.)

Search for the name of the encryption key

If you have two entries with the same name, then judging by the previous error, it probably should be in the adeptkeys section.

When you have found the key name, look at the value beside it. This should be a very long quoted string of hex characters i.e. should only contain the characters 0123456789abcdef

Any other characters would cause the error you are getting.

If that does not help pinpoint the error, then post your updated log (which will have changed since your original when you updated to v10.0.9 of DeDrm).
That was it! Thanks so much. My dedrm.json adeptkeys section was definitely not all ASCII characters, so I deleted all of my ADE keys and readded them and that fixed it. Not sure if the version of the DeDRM was related, I had removed the keys before without resolving the issue.
xircso is offline   Reply With Quote
Old Today, 01:57 PM   #488
Phoenix_v
Junior Member
Phoenix_v began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2024
Device: none
Hello, I while ago I downloaded calibre (V5.37) with DeDRM and DEACSM plug ins all worked fine (running Linux mint v21).
Today tried to do the same on another laptop loaded with the latest linux mint 22. Calibre loaded fine from their web store but was a newer version (7.6) as did DeDRM but DeACSM is refusing to load. I tried loading an older version of calibre but that proved beyond my technical abilities! Any help would be appreciated (but please keep it simple!) message below;
Spoiler:


calibre, version 7.6.0
ERROR: Unhandled exception: <b>InvalidPlugin</b>:Initialization of plugin 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/john/Downloads/DeACSM_0.0.16(2).zip/libadobe.py", line 59, in &lt;module&gt;
from oscrypto import keys
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in &lt;module&gt;
from ._asymmetric import parse_certificate, parse_private, parse_public
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in &lt;module&gt;
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in &lt;module&gt;
from .util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in &lt;module&gt;
from ._openssl.util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in &lt;module&gt;
from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in &lt;module&gt;
from ._libcrypto_ctypes import (
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in &lt;module&gt;
raise LibraryNotFoundError('Error detecting the version of libcrypto')
oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto
failed with traceback:
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/john/Downloads/DeACSM_0.0.16(2).zip/libadobe.py", line 59, in &lt;module&gt;
from oscrypto import keys
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in &lt;module&gt;
from ._asymmetric import parse_certificate, parse_private, parse_public
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in &lt;module&gt;
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in &lt;module&gt;
from .util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in &lt;module&gt;
from ._openssl.util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/util.py", line 6, in &lt;module&gt;
from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in &lt;module&gt;
from ._libcrypto_ctypes import (
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto_ctypes.py", line 47, in &lt;module&gt;
raise LibraryNotFoundError('Error detecting the version of libcrypto')
oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto


calibre 7.6 embedded-python: False
Linux-6.8.0-38-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-38-generic', '#38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024')
Python 3.12.3
Interface language: None
EXE path: /usr/bin/python3.12
Successfully initialized third party plugins: DeDRM (7, 2, 1)
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/john/Downloads/DeACSM_0.0.16(2).zip/libadobe.py", line 59, in <module>
from oscrypto import keys
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module>
from ._asymmetric import parse_certificate, parse_private, parse_public
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module>
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module>
from .util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module>
from ._openssl.util import rand_bytes
File "/home/john/.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/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module>
from ._libcrypto_ctypes import (
File "/home/john/.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: Initialization of plugin 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/john/Downloads/DeACSM_0.0.16(2).zip/libadobe.py", line 59, in <module>
from oscrypto import keys
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module>
from ._asymmetric import parse_certificate, parse_private, parse_public
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module>
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module>
from .util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module>
from ._openssl.util import rand_bytes
File "/home/john/.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/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module>
from ._libcrypto_ctypes import (
File "/home/john/.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
failed with traceback:
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/john/Downloads/DeACSM_0.0.16(2).zip/libadobe.py", line 59, in <module>
from oscrypto import keys
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/keys.py", line 5, in <module>
from ._asymmetric import parse_certificate, parse_private, parse_public
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_asymmetric.py", line 27, in <module>
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/kdf.py", line 9, in <module>
from .util import rand_bytes
File "/home/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/util.py", line 14, in <module>
from ._openssl.util import rand_bytes
File "/home/john/.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/john/.config/calibre/plugins/DeACSM/modules/oscrypto/oscrypto/_openssl/_libcrypto.py", line 24, in <module>
from ._libcrypto_ctypes import (
File "/home/john/.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

Last edited by theducks; Today at 02:40 PM. Reason: SPOILER LOG files
Phoenix_v is online now   Reply With Quote
Old Today, 02:09 PM   #489
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Phoenix_v View Post
calibre, version 7.6.0
You need to go to the calibre website and download the latest calibre and then try again. Also, NEVER download calibre from any repository as most of the time, it won't work properly.

If you still have a problem, come back and post. Nobody is going to help you with an old version of calibre from a repository.
JSWolf is offline   Reply With Quote
Old Today, 02:33 PM   #490
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,551
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Phoenix_v View Post
Today tried to do the same on another laptop loaded with the latest linux mint 22. Calibre loaded fine from their web store
Download from the official website. Repository versions are the cause of many many many issues.
ownedbycats is offline   Reply With Quote
Old Today, 02:33 PM   #491
Leseratte_10
Groupie
Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.
 
Posts: 183
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
While that's generally a good idea, it won't help with this particular issue. This issue is because the oscrypto bundled with 0.0.16 of the plugin is too old for newer Linux versions like Mint 22.

You'll need to download a newer beta version from Github like this one.
Leseratte_10 is offline   Reply With Quote
Old Today, 03:03 PM   #492
Phoenix_v
Junior Member
Phoenix_v began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2024
Device: none
Quote:
Originally Posted by Leseratte_10 View Post
While that's generally a good idea, it won't help with this particular issue. This issue is because the oscrypto bundled with 0.0.16 of the plugin is too old for newer Linux versions like Mint 22.

You'll need to download a newer beta version from Github like this one.
Thanks for looking at this, much shorter message this time but still not working?

"no top-level_init_py file"

calibre, version 7.6.0
ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in '/home/john/Downloads/calibre-plugins(1).zip' is invalid. It does not contain a top-level __init__.py file

calibre 7.6 embedded-python: False
Linux-6.8.0-38-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-38-generic', '#38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024')
Python 3.12.3
Interface language: None
EXE path: /usr/bin/python3.12
Successfully initialized third party plugins: DeDRM (7, 2, 1)
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 513, in add_plugin
plugin = load_plugin(path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/ui.py", line 64, in load_plugin
return loader.load(path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 299, in load
plugin_name = self._locate_code(zf, path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 394, in _locate_code
raise InvalidPlugin(('The plugin in %r is invalid. It does not '
calibre.customize.InvalidPlugin: The plugin in '/home/john/Downloads/calibre-plugins(1).zip' is invalid. It does not contain a top-level __init__.py file
Phoenix_v is online now   Reply With Quote
Old Today, 03:51 PM   #493
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,127
Karma: 8796706
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Go to the calibre download page and install calibre from there.
https://calibre-ebook.com/download_linux

Do this step!!!!!!!!!


Go to this page Click the green Code button, then click on download zip. Extract the zip file then click on bundle_calibre_plugin.sh, select "Run in Terminal" that will built the plugin for you. Now open calibre go to Perferences--Plugins--Load plugin from file, select "calibre-plugin.zip"


This is my debug on Mint 22 downloading a test epub for adobe.

Code:
xxxxxxx@xxxxxxx:~$ calibre-debug -g
calibre 7.21  embedded-python: True
Linux-6.8.0-48-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-48-generic', '#48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024')
Python 3.11.5
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && DeDRM (10, 0, 9) && ACSM Input Plugin GUI Extension (0, 1, 0) && Baen (1, 1, 0) && Barnes & Noble (1, 5, 6) && Diaps Editing Toolbag (0, 5, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 9, 0) && Goodreads (1, 8, 2) && Hyphenate This! (0, 1, 3) && Set KFX metadata (from KFX Output) (2, 12, 0) && KFX Output (2, 12, 0) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 7, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 10, 2) && Kobo Utilities (2, 17, 2) && Modify ePub (1, 8, 5) && Quality Check (1, 13, 15)
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 92.53889943074003 x 92.67567567567568
ApplicationPaletteChange event ignored
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[1.08] splash screen shown
[1.08] Initializing db...
[1.34] db initialized
[1.34] Constructing main UI...
DEBUG:    0.0 Kobo Utilities Configuration - CreateNewCustomColumn is supported
DEBUG:    0.0 KoboUtilites::action.py - loading translations
DEBUG:    0.0 KoboUtilites::dialogs.py - loading translations
DEBUG:    0.0 KoboUtilites::action.py - loading translations
ACSM Input: GUI Plugin Genesis!
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
[2.29] GUI main window shown
EpubMerge: DEBUG: 2024-11-10 13:55:34,864: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:/home/xxxxxxx/.config/calibre/plugins/fanficfare_macmenuhack.txt
DEBUG:    0.7 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    0.7 rebuild_menus - self.supports_ratings=None, self.supports_tiles=None
DEBUG:    0.7 KoboUtilities:set_toolbar_button_tooltip - start: text='None'
DEBUG:    0.7 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
DEBUG:    0.7 KoboUtilities:set_toolbar_button_tooltip - setting to text='Utilities to use with Kobo ereaders

Driver: KoboTouch'
DEBUG:    0.7 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
[2.37] main UI initialized...
[2.37] Hiding splash screen
[2.37] splash screen hidden
[2.37] Started up in 2.37 seconds with 3814 books
DEBUG:    4.2 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    4.2 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    4.2 rebuild_menus - self.supports_ratings=None, self.supports_tiles=None
DEBUG:    4.2 KoboUtilities:set_toolbar_button_tooltip - start: text='None'
DEBUG:    4.2 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
DEBUG:    4.2 KoboUtilities:set_toolbar_button_tooltip - setting to text='Utilities to use with Kobo ereaders

Driver: KoboTouch'
DEBUG:    4.2 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
['zenity', '--modal', '--file-selection', '--title=Select books', '--separator=\n', '--attach=67108889', '--filename=/home/xxxxxxx/Downloads/bookbale/.fgdfg.gdfhjdhf*&^839', '--file-filter=Books | *.lrf *.rtf *.lit *.txt *.txtz *.text *.htm *.xhtm *.html *.htmlz *.xhtml *.pdf *.pdb *.updb *.pdr *.prc *.mobi *.azw *.doc *.epub *.fb2 *.fbz *.djv *.djvu *.lrx *.cbr *.cb7 *.cbz *.cbc *.oebzip *.rb *.imp *.odt *.chm *.tpz *.azw1 *.pml *.pmlz *.mbp *.tan *.snb *.xps *.oxps *.azw4 *.book *.zbf *.pobi *.docx *.docm *.md *.textile *.markdown *.ibook *.ibooks *.iba *.azw3 *.ps *.kepub *.kfx *.kpf *.acsm', '--file-filter=EPUB books | *.epub *.kepub', '--file-filter=Kindle books | *.mobi *.prc *.azw *.azw3 *.kfx *.tpz *.azw1 *.azw4', '--file-filter=PDF books | *.pdf *.azw4', '--file-filter=HTML books | *.htm *.html *.xhtm *.xhtml', '--file-filter=LIT books | *.lit', '--file-filter=Text books | *.txt *.text *.rtf *.md *.markdown *.textile *.txtz', '--file-filter=Comics | *.cbz *.cbr *.cbc *.cb7', '--file-filter=Archives | *.zip *.rar *.7z', '--file-filter=Wordprocessor files | *.odt *.doc *.docx', '--file-filter=All files | *', '--multiple']
ACSM Input v0.1.0: Trying to parse file The Adventures of Sherlock Holmes.acsm
ACSM Input v0.1.0: Try to fulfill ...
Notifying server ...
Notifying server https://contentserver.adobe.com/fulfillment/FulfillmentNotification
Fulfillment notification successful.
ACSM Input v0.1.0: Downloading book ...
ACSM Input v0.1.0: Loading book from http://contentserver.adobe.com/media/723caf6a-0e27-44be-8733-904cede39cd2.epub
Download took 1338 ms (HTTP 200)
That's a ZIP file -> EPUB
ACSM Input v0.1.0: File successfully fulfilled ...
ACSM Input v0.1.0: Executing plugin DeDRM ...
DeDRM v10.0.9: Trying to decrypt 5htfks4d.epub
DeDRM v10.0.9: Verifying zip archive integrity
DeDRM v10.0.9: 5htfks4d.epub is a secure Adobe Adept ePub for UUID 9e387e4b-230e-4e68-ba40-2f6c33338da9
DeDRM v10.0.9: Trying Encryption key default_key
uin7gjxi.epub is a secure Adobe Adept ePub.
DeDRM v10.0.9: Decrypted with key default_key after 0.1 seconds
DeDRM v10.0.9: Post-processing took 0.1 seconds
DeDRM v10.0.9: Finished after 0.2 seconds
ACSM Input v0.1.0: Plugin returned path '/tmp/calibre_7.21.0_tmp_j6wdpfql/k4znstm1.epub', updating.
Added The Adventures of Sherlock Holmes to db in: 0.1
Added 1 books in 6.4 seconds
bernie
Quote:
Originally Posted by Phoenix_v View Post
Thanks for looking at this, much shorter message this time but still not working?

"no top-level_init_py file"

calibre, version 7.6.0
ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in '/home/john/Downloads/calibre-plugins(1).zip' is invalid. It does not contain a top-level __init__.py file

calibre 7.6 embedded-python: False
Linux-6.8.0-38-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-38-generic', '#38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024')
Python 3.12.3
Interface language: None
EXE path: /usr/bin/python3.12
Successfully initialized third party plugins: DeDRM (7, 2, 1)
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 513, in add_plugin
plugin = load_plugin(path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/ui.py", line 64, in load_plugin
return loader.load(path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 299, in load
plugin_name = self._locate_code(zf, path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 394, in _locate_code
raise InvalidPlugin(('The plugin in %r is invalid. It does not '
calibre.customize.InvalidPlugin: The plugin in '/home/john/Downloads/calibre-plugins(1).zip' is invalid. It does not contain a top-level __init__.py file

Last edited by gbm; Today at 03:56 PM.
gbm is offline   Reply With Quote
Old Today, 03:57 PM   #494
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,446
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The last line says the issue.
A Plugin for Calibre is a ZIP with A SPECIFIC SET OF CONTENTS
in this case, it is missing init.py

Also, the Zip folder name is a bit odd.
I assume you are trying to ADD a plugin.
Where did you download from?
Look inside that Zip. It may be a wrapper Zip (like the deDRM
tools), that contains the real Zip that you want to add.
theducks is offline   Reply With Quote
Old Today, 06:09 PM   #495
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,528
Karma: 100606001
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by theducks View Post
Also, the Zip folder name is a bit odd.
For at least 1 browser, when the file is being downloaded already exists, the newly downloaded file gets named with a number in parentheses just before the filename extension.
j.p.s is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] GetFileName Terisa de morgan Plugins 417 07-16-2024 04:37 AM
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 27 01-16-2023 02:25 AM
help with epub on_import filetype plugin digitalvideo Development 4 02-27-2020 06:13 AM
Question about file_types in FileType plugin Terisa de morgan Plugins 6 02-08-2017 06:53 AM
Zip Filetype Plugin? rsingley Plugins 7 02-11-2011 06:11 PM


All times are GMT -4. The time now is 06:56 PM.


MobileRead.com is a privately owned, operated and funded community.