This error appears after compiling my Python 2.7 project with cx_freeze : https://i.stack.imgur.com/xJKuT.jpg
I have the impression that the error comes from the package pycryptodome / pycryptodomex which is well installed since everything works before compiling with cx_freeze.
I tried to modify the import with :
from Crypto.Cipher import AES
Instead of :
from Cryptodome.Cipher import AES
But there is always the same error..
Here are my build options on cx_freeze :
build_options = {
'packages': ['jinja2.ext'],
'namespace_packages':['zope'],
'includes': ['zope.interface', 'M2Crypto'],
'excludes': ['Tkinter']
}
I will be happy to try other solutions if you have ideas, thanks !