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
Pyinstaller app doesn't launch, no error (worked previously) #4550
Comments
I'm also facing this problem on some Windows 7 and Windows 10 computers. |
I solved the problem in my case downgrading both Python to 3.6.8 and PyInstaller to 3.4. |
I have the same issue. For testing I used just simple script: # test.py file
if __name__ == '__main__':
print('__main__ - start') and call pyinstaller like that: In all of these configurations, the app just opens console windows and close. I also check the output with [28600] LOADER: Running test.py
[28600] LOADER: OK.
[28600] LOADER: Cleaning up Python interpreter. But when I move the [28600] LOADER: Running test.py
__main__ - start
[28600] LOADER: OK.
[28600] LOADER: Cleaning up Python interpreter. Then this could be a workaround. For testing purpose, I add my |
@JarekParal try opening a command prompt and running the exe from there - unless you were already doing that? And the subdir thing shouldn't change anything. |
@Legorooj I'm not sure if I tried to run the app from command prompt but that isn't a solution for me. I moved the file |
Hmm. Could you type out a file structure for us (For both the working and not working config)? Eg:
And tell us which pyinstaller command you used? |
I tried to create MCVE but I couldn't reproduce this issue on any simple MCVE, which mean that my previous comment about simple test file isn't correct:
But I can still reproduce the issue in my code. As it is an internal project, I couldn't share the code base, but I exported at least the build log files. I found one difference in the
But I don't understand what is the difference and if that could be an issue. My project structure is:
The app is base on |
Wait a sec. You're saying the following folder structure doesn't work:
Am I right? |
Actually it is more like that:
But yes, you are right. |
Try renaming |
Yes, this seems to fix this issue. Do you know why that happens? |
When you import |
@conlin-matt have you tried with the latest version of PyInstaller? |
I haven't tried since November. I ended up having so many issues with this that I switched gears to fbs, a great package that puts a nice wrapper on Pyinstaller. That being aid, I've had success building some (simpler) apps with Pyinstaller since then, so I don't think whatever was going on here serves as an Issue for Pyinstaller anymore. As far as I'm concerned this issue seems resolved. |
@conlin-matt I'll close then. In case you're interested, I've got a PyInstaller GUI I'm in late development stages with. It'll be released soon. |
Hello,
Thanks for developing and maintaining such a useful tool. I'm having what seems to be a strange issue and I'm hoping some expert advice could help me solve it. I have a PyQt app, e.g. this:
`
I can successfully freeze this using
pyi-makespec --debug all --onefile -n test --icon icon3.ico test.py
andpyinstaller test.py
. When I launch the program, however, whether it be through the command line or by running the app directly, the app fails to start. I don't get any error messages, the last 4 lines of the output are as follows:`
I'm on a Windows 10 machine, running Python 3.6 with Anaconda (64 bit). I've tried using the most recent development version of PyInstaller. I've tried creating a clean environment. I've tried invoking the app differently. I've tried using --onedir instead. All same result. The strangest part is that this worked just fine before my computer restarted. I'm at quite a loss here as to why the app refuses to launch- any ideas?
The text was updated successfully, but these errors were encountered: