mcdallas / cryptotools

MIT License
205 stars 80 forks source link

Not working with pyinstaller #34

Open dzhizhkin opened 2 years ago

dzhizhkin commented 2 years ago

I am building an application using pyinstaller. And I get an error: File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module File "cryptotools/__init__.py", line 16, in <module> AttributeError: 'NoneType' object has no attribute 'load_module' [8311] Failed to execute script 'CryptoWallet' due to unhandled exception! I'm use command: pyinstaller --onefile --windowed --collect-all cryptotools myscript.py

mcdallas commented 2 years ago

Hmm I guess you could try removing the for loop in cryptotools/__init__.py and manually populating __all__ from all the submodules

dzhizhkin commented 2 years ago

I'm not testing this) Just, i'm check modules with other tools, and this not working