Leseratte10 / acsm-calibre-plugin

Calibre plugin for ACSM->EPUB and ACSM->PDF conversion.
https://www.mobileread.com/forums/showthread.php?t=341975
GNU General Public License v3.0
591 stars 23 forks source link

SSL: CERTIFICATE_VERIFY_FAILED #97

Open bspacausa opened 1 week ago

bspacausa commented 1 week ago

Bug description

I have been successfully using DeACSM on my Windows machine for a few years(thank you!!) but today it stopped converting to epub. I have tried to uninstall and re-install (including deleting C:\Users\Admin\AppData\Roaming\calibre) with the same error. Please see below. Any suggestions on how to fix?

Looking at a similar past issue #6, I did try to visit https://ofs.contentreserve.com/ACSNotificationService.svc/Notify and did see the "Method not allowed" error. Side note, I started a fresh install of calibre/deacsm/dedrm on my Mac and have no issues using the same AdobeID, therefore likely it is not an account or network issue.

ApplicationPaletteChange event ignored Using calibre Qt style: True calibre Debug log calibre 7.12 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: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) calibre 7.12 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: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) QPA platform: windows devicePixelRatio: 1.25 logicalDpi: 96.0 x 96.0 physicalDpi: 113.41395348837209 x 113.12164948453608 [0.00] Starting up... [0.02] Showing splash screen... [0.17] splash screen shown [0.17] Initializing db... [0.19] db initialized [0.19] Constructing main UI... [0.73] GUI main window shown [0.81] main UI initialized... [0.81] Hiding splash screen [26.58] splash screen hidden [26.58] Started up in 26.58 seconds with 127 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'\x99g\x85B\`\t\xb894\x8cW\xd5\xdf\xef|6z\xc5\x9f\xff\xe0\x82\x9fk\xa7l%\xf68?\xe0', b'C:\Users\Admin\Downloads\BookName_9780307907035_601668.acsm'] Running file type plugin DeACSM failed with traceback: 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: unable to get local issuer certificate (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre\customize\ui.py", line 199, in _run_filetype_plugins File "calibre_plugins.deacsm.init", line 422, in run File "calibre_plugins.deacsm.init", line 324, in download File "C:\Users\Admin\AppData\Roaming\calibre\plugins\DeACSM.zip\libadobe.py", line 267, in sendHTTPRequest_DL2FILE File "urllib\request.py", line 216, in urlopen 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: unable to get local issuer certificate (_ssl.c:1006)> DeACSM v0.0.16: Trying to parse file BookName_9780307907035_601668.acsm DeACSM v0.0.16: Try to fulfill ... Notifying server ... Notifying server https://acsepub.contentreserve.com/fulfillment/FulfillmentNotification Fulfillment notification successful. Notifying optional server https://ofs.contentreserve.com/ACSNotificationService.svc/Notify Weird Fulfillment Notification response: DeACSM v0.0.16: Downloading book ... DeACSM v0.0.16: Loading book from https://acs.cdn.overdrive.com/ACSStore1/0111-1/93A/5D3/EB/{93A5D3EB-2DF4-4F12-BB68-5BD7983B898A}Fmt410.epub

Operating system

Windows

Which version of Calibre are you running?

7.12

Which version of the ACSM Input plugin are you running?

v0.0.16

Import type

Clicking the 'Add books' button in the menu bar

Further information

No response

hot-soup commented 1 week ago

I'm experiencing the same issue as well. Tried importing a book today and Calibre does not download the epub version of the book and just imports the .ascm file.

ApplicationPaletteChange event ignored Using calibre Qt style: True calibre Debug log calibre 6.27 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) calibre 6.27 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 95.97550058892816 x 96.07176470588234 [0.00] Starting up... [0.00] Showing splash screen... [0.19] splash screen shown [0.19] Initializing db... [0.22] db initialized [0.22] Constructing main UI... [0.91] main UI initialized... [0.91] Hiding splash screen Starting QuickView [12.94] splash screen hidden [12.94] Started up in 12.94 seconds with 775 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'-\xb3_\x9b\n$2H\xc4\t\xc6h\xf7\x96\xbb\x8c\xff\xdf\x84M\xe0\x0e\xf2\x85\x9f\xc3\x8d\x0fa\\xd9\xcd', b'E:\dl\LegendsLattes_9781250886095_9041166.acsm'] Running file type plugin DeACSM failed with traceback: Traceback (most recent call last): File "urllib\request.py", line 1348, in do_open File "http\client.py", line 1282, in request File "http\client.py", line 1328, in _send_request File "http\client.py", line 1277, in endheaders File "http\client.py", line 1037, in _send_output File "http\client.py", line 975, in send File "http\client.py", line 1454, in connect File "ssl.py", line 512, in wrap_socket File "ssl.py", line 1070, in _create File "ssl.py", line 1341, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre\customize\ui.py", line 187, in _run_filetype_plugins File "calibre_plugins.deacsm.init", line 422, in run File "calibre_plugins.deacsm.init", line 324, in download File "C:\Users\hotsoup\AppData\Roaming\calibre\plugins\DeACSM.zip\libadobe.py", line 267, in sendHTTPRequest_DL2FILE File "urllib\request.py", line 216, in urlopen 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: unable to get local issuer certificate (_ssl.c:997)> DeACSM v0.0.16: Trying to parse file LegendsLattes_9781250886095_9041166.acsm DeACSM v0.0.16: Try to fulfill ... Notifying server ... Notifying server https://acsepub.contentreserve.com/fulfillment/FulfillmentNotification Fulfillment notification successful. Notifying optional server https://ofs.contentreserve.com/ACSNotificationService.svc/Notify Weird Fulfillment Notification response: DeACSM v0.0.16: Downloading book ... DeACSM v0.0.16: Loading book from https://acs.cdn.overdrive.com/ACSStore1/2390-1/85D/EE2/63/{85DEE263-7972-4B3F-834B-C255D17EAB6D}Fmt410.epub

Operating system Windows 11

Which version of Calibre are you running? 6.27

Which version of the ACSM Input plugin are you running? v0.0.16

Import type Clicking the 'Add books' button in the menu bar

Further information No response