New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loader FrozenImporter cannot handle module os #4170
Comments
This comment has been minimized.
This comment has been minimized.
PyInstaller: 3.4
|
This comment has been minimized.
This comment has been minimized.
I can't call it a solution but I got past the error using command line to add all the data instead of using the spec file. P.S. By command line I mean that I used "--add-data" |
What data did you add to make this error go away? |
I was using PyInstaller to first generate a spec, modify it to add some files that my code needed, and then ran PyInstaller on the spec file to bundle the code. This wasn't working and causing the error. I tried using the command line notation for adding the files (pyinstaler code.py --add-data path/to/data ...) and that worked. |
I’m familiar with the errror - I was just wondering what paths to data you used to fix the OS error? |
with: I was getting the same error. But I solved it. Can you please post also the .spec file so I can help you. Please also mention which module have you installed along with it. |
I got the same error. Got it when I tried to use --key to encrypt the exe. Did't use any files or datas:
|
I think you are using pycryptodome. Use pycrypto module to avoid Loader FrozenImporter cannot handle module os error. Installing on Windows
This will work and able to encrypt the executable file using the .spec file or direct. :) |
Otherwise please provide more details, see How to report Bugs. Esp. please provide a minimal example to reproduce the error. |
No response for 4 month. closing. |
If this issue happened in linux, just replace pycryptodome with pycrypto. |
My case is Windows Defender automatically delete my exe file caused this error. If disable Windows Defender, everything works fine. |
env:
python : 3.7
pyinstaller :3.4
pyinstaller -F python.py
get this error:
The text was updated successfully, but these errors were encountered: