We've recently added pycrypto to a project we've been working on and now I am unable to run the software after it is built with pyinstaller.
I have had issues with new packages in pyinstaller, but I am unable to fix this one in particular.
The errors I've gotten when trying to run the built software are as follows (sorry for the paraphrasing, it takes quite a while to build)
At first it was something like:
No package Crypto.Cipher
So I added 'Crypto'
to the hiddenimports
in my .spec file. Then I got,
No module named Cipher
So I changed 'Crypto'
to 'Crypto.Cipher'
and then I got,
Crypto.Cipher has no attribute AES
So I changed 'Crypto.Cipher'
to 'Crypto.Cipher.AES'
then I got
File "C:\Folder\made\by\pyinstaller\Crypto.Cipher.AES", line 49 in <module>
ImportError: cannot import name blockalgo
So I changed 'Crypto.Cipher.AES'
to 'Crypto.Cipher.AES.blockalgo'
and the error didn't change.
I've tried a few different configurations, but the output of the build script always says something along the lines of
ERROR: Hidden import 'blockalgo' not found.
Does anybody know how to get this to import correctly, or know a trick to get pycrypto to play nice with pyinstaller?