I have a plugin that uses the following import:
Code:
from Crypto.Cipher import AES
This loads fine under calibre 4.6.0 portable, but under 4.99.0 portable it produces this error:
Spoiler:
Code:
Traceback (most recent call last):
File "ui.py", line 157, in __init__
File "ui.py", line 171, in init_iaction
File "__init__.py", line 612, in load_actual_plugin
File "__init__.py", line 127, in import_module
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "zipplugin.py", line 184, in load_module
File "calibre_plugins.overdrive_link.action", line 7, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "__init__.py", line 27, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "_mode_ecb.py", line 35, in <module>
File "_raw_api.py", line 299, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cp38-win32.pyd': Could not find module 'C:\calibre-beta\Calibre Portable\Calibre\app\pylib.zip\Crypto\Cipher\_raw_ecb.cp38-win32.pyd'. Try using the full path with constructor syntax., Trying '_raw_ecb.pyd': Could not find module 'C:\calibre-beta\Calibre Portable\Calibre\app\pylib.zip\Crypto\Cipher\_raw_ecb.pyd'. Try using the full path with constructor syntax.