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
653 stars 23 forks source link

"OverflowError: int too big to convert" when linking ADE account #5

Closed mrl586 closed 2 years ago

mrl586 commented 2 years ago

I have DeACMS 0.0.9 installed in Calibre 5.30, but when I try link my ADE account, I got the following error.

calibre, version 5.30.0
VIRHE Unhandled exception: <b>OverflowError</b>:int too big to convert

calibre 5.30  embedded-python: False is64bit: True
Linux-5.15.0-1-cachyos-rc-x86_64-with-glibc2.33 Linux ('64bit', 'ELF')
('Linux', '5.15.0-1-cachyos-rc', '#1 SMP PREEMPT Thu, 21 Oct 2021 00:52:38 +0000')
Python 3.9.7
Interface language: fi
Successfully initialized third party plugins: DeACSM (0, 0, 9) && DeDRM (7, 2, 1)
Traceback (most recent call last):
  File "calibre_plugins.deacsm.config", line 257, in link_account
    success, resp = activateDevice()
  File "calibre_plugins.deacsm.libadobeAccount", line 316, in activateDevice
    result, activate_req = buildActivateReq()
  File "calibre_plugins.deacsm.libadobeAccount", line 305, in buildActivateReq
    ret += addNonce()
  File "calibre_plugins.deacsm.libadobe", line 284, in addNonce
    final = bytearray(nonce320.to_bytes(4, 'little'))
OverflowError: int too big to convert
Leseratte10 commented 2 years ago

Interesting ... Is the system time set correctly on your machine?

mrl586 commented 2 years ago

Yes, Local time: la 2021-10-23 18:50:10 EEST Universal time: la 2021-10-23 15:50:10 UTC RTC time: la 2021-10-23 15:50:09 Time zone: Europe/Helsinki (EEST, +0300) System clock synchronized: no NTP service: inactive RTC in local TZ: no

Leseratte10 commented 2 years ago

Okay, thanks a lot for that bug report. I believe I now see what the error is with the plugin. I'll try to fix that in the next couple days and let you know when you can test again.