I am new in PyInstaller. I have got a program on Python and would like to convert it into stand-alone executable under Ubuntu. I try:
pyinstaller -y --clean --hidden-import=Crypto.Util._counter pycrypter.py
But when I execute the result file:
cd dist/pycrypter
./pycrypter
I have a following error:
Traceback (most recent call last): File "", line 3, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/models", line 1, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/models.PyCrypter", line 3, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/Crypto.PublicKey.RSA", line 78, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/Crypto.Random", line 29, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/Crypto.Random._UserFriendlyRNG", line 38, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/Crypto.Random.Fortuna.FortunaAccumulator", line 39, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/Crypto.Random.Fortuna.FortunaGenerator", line 35, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "/home/fomalhaut/Development/python/pycrypter/build/pycrypter/out00-PYZ.pyz/Crypto.Util.Counter", line 59, in ImportError: cannot import name _counter
How to convert my program correctly via PyInstaller?