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
upx causes --onefile exe to unpack too long #1184
Comments
Could you try running |
Here is the output of
Then, when I run
And then it hangs for several minutes. Then it continues.
So I realize that the program does indeed run, but it hangs for several minutes before starting. |
Please try with option --noupx |
The Why does |
upx might add some other overhad. Not sure how exactly. @Zenadix Do you think the fix could be to not use upx compression for the exe created by pyinstaller but use upx only for dlls? |
@matysek I really couldn't tell. I think the only way to know is to try it. For now, disabling upx completely does the trick for me. |
does anyone with this problem tried without antivirus software enable? |
maybe using 7-zip or IExpress can help with extraction & running time: https://en.wikipedia.org/wiki/IExpress |
If somebody wants to implement support for a different packer, please step forward and provide a pull-request. |
Closing this. UPX compresses exe's; therefore it has to uncompress them before runtime. |
I originally posted this on Stack Overflow.
I'm trying to create a single-file executable for Windows from a Python application, using
pyinstaller
.I downloaded the experimental Python 3 branch of
pyinstaller
from here (scroll down and you'll find the download link, the file ispy3.zip
). And I installed it usingpython setup.py install
. UPDATE: I tried it with the Python 2 version too, and ran into the same problem.Then I created a test python script called
test.py
, with the following content:Afterwards, I ran the following command to create a single-file executable:
The command succeeded, and I verified that the file
dist/test.exe
had been generated. However, when I try to run it, all I get is an emptycmd
window. Nothing ever appears, and the program never terminates. It just hangs there forever, until I force close it.Calling
pyinstaller test.py
(without the--onefile
option) works fine.UPDATE: I just tested it under Python 2 (using the normal PyInstaller version), and I ran into the same problem. So, this is not just a Python 3 problem.
The text was updated successfully, but these errors were encountered: