Run your program from the terminal (using ./dist/test/test
) instead of double-clicking it. It’ll still crash but you’ll at least get an error message you can work with. (Also I’ve never yet solved an issue using the warnings file or for anything out of --log-level DEBUG
.)
Run your program from the terminal (using
./dist/test/test
) instead of double-clicking it. It’ll still crash but you’ll at least get an error message you can work with. (Also I’ve never yet solved an issue using the warnings file or for anything out of--log-level DEBUG
.)
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e85d5920-f703-488b-ad44-19e4df34fa89n%40googlegroups.com.
Thanks, bwoodsend! I just gave that a shot, and it returned the following.
Error loading Python DLL 'C:\Users\liam\AppData\Local\Programs\Python\Python37\build\test\python37.dll'.
LoadLibrary: The specified module could not be found.
Looks like it can’t find python37.dll. Right now, that file is in \Python37, but I guess it didn’t get copied to the daughter directory?
If I read this correctly, all I have to do is copy the correct files into the test\ directory? I feel like there is a more elegant solution, though. For larger scripts with more dependencies that would be difficult.
Liam
--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/pyinstaller/kzPCbz3douE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
pyinstaller...@googlegroups.com.
I gave that a shot, but no dice. Still does not work.
Liam
--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/pyinstaller/kzPCbz3douE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
pyinstaller...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/CAKa7spPxmJR-vehAp_Wxayza3BVuwoN4Hnt_T6zx2%3D0%2B3Tt0nA%40mail.gmail.com.
Update:
I tried it at home today on an older computer, to sanity check myself. I ended up getting the same error with python.dll. Then I realized it was a python 3.5 system, and that maybe that would have something to do with it. When I got back to work today, I installed python 3.9.0. Then, I used pip install pyinstaller in my windows\system32 directory rather than the python directory itself; not sure if that would make a difference. I made a test.py to print(‘hello world’) and ran pyinstaller. No errors this time, and when I went to \dist and ran the exe from command line, it printed hello world with no error! My guess is that either there is some incompatibility problem with old versions of python/windows10/updated pyinstaller, or making the installation in the different directory somehow did something. Ultimately I don’t understand the problem or solution.
I ended up running into a number of other issues, like matplotlib needing to be v3.2.2, having to delete the dist and build folders, needing to run cmd as administrator, matplotlib being unable to use .show() without a gui, numpy needing visual studio installed, and a bunch of other things. Thankfully I was able to figure them out!
Thanks for the help!
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/ac208af32a40417ab2e4fa9ade12e913%40astro-physics.com.