Closed clach04 closed 10 months ago
Dirty experiment:
pip uninstall pycryptodome :: no compiler. so prebuilts from https://web.archive.org/web/20200427093214/http://www.voidspace.org.uk/python/modules.shtml#pycrypto echo install old pycrypto bins 🤮
Works
TODO check into py2exe hooks added for pycryptodome.
PyCrypto (todo Cryptodome again):
testimport_cli
from Crypto.Cipher import AES
build then run:
> dist\prog\testimport_cli.exe
Traceback (most recent call last):
File "testimport_cli.py", line 1, in <module>
File "Crypto\Cipher\__init__.pyo", line 27, in <module>
ImportError: No module named _mode_ecb
no files with mode_ecb in dist (or PyCrypto site packages).
__init__.py
only contains __all__
list of strings (and __revision__
).
Setting "optimize": 0 to appears to fix this. To be continued....
At runtime see:
py2exe Version 0.10.2.0:
Do not have issues with older Python 2.7.x, unknown (probably newer) version of py2exe and PyCrypto (no longer supported/maintained).
Ideas