Working code crashing after made into an EXE by pyinstaller

mouse123

I have minimal knowledge on this subject, which is why I'm seeking help. I tried pyinstaller, CX freeze, and py2exe. None of them were able to convert my game into an exe. Pyinstaller came the closest. It was able to create a file, but it gave a fatal error as soon as it was opened.

Apparently opening it from the cmd would display error messages, if that was the cause. I did this but nothing showed up. I opened the unchanged code in Pycharm and it worked like a charm. No errors. Maybe it could be something wrong with the media directories, but I made sure the exe file was right next to the code that I tested.

This is the second time using pyinstaller, because it worked perfectly the first time. Pyinstaller can sometimes fail when others will work, but CX freeze and py2exe are pretty intimidating, because they kept giving cryptic errors. Please, I'm striking out here, if someone could find out what the problem is that would be fantastic.

Project available for download here: https://gofile.io/d/awjV5x

Thank you for your time.

Vignesh

I have created exe and it's working fine.

Create executable using the following command

pyinstaller --onefile code.py

Exe will be created in the dist folder and copy that back to the Last Stand Zombies Folder and double click the exe and the game will run straight away

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

PyInstaller .exe file not working

[Pyinstaller]: Working code produces ModuleNotFoundError when turned to exe

I get error "No module named 'pyproj._datadir'" after I made .py to .exe with pyinstaller

exe made by pyinstaller crashes at calling matplotlib

exe file made with pyinstaller being reported as a virus threat by windows defender

exe file made by pyinstaller has delay on other computer

PyQt5 GUI - exe made with PyInstaller doesn't open

subprocess seems not working in pyinstaller exe file

Why is the .exe file created by pyinstaller not working?

Pygame not loading png after making .exe with Pyinstaller

Cannot open .exe after pyinstaller convert

How to fix error with pyinstaller after compilation in exe

App with Swift code crashing on launch after deployment

C++ Code keeps crashing after a validation

explorer.exe crashing after upgrading to Windows 10

How to get a working EXE file using pyinstaller with the sounddevice module in Python

Why does .exe built using pyinstaller isn't working?

All of the sudden getting Excel VBA error code 91: "Object variable or With block variable not set" after code had been working and no edits made

Runtime error when calling a .exe made with PyInstaller including PyQt4

Code doesn't run after packaging with Pyinstaller

After pyinstaller code does not work as expected?

is there a way to record video after creating exe using pyinstaller

SkyDrive silently crashing after "SkyDrive sync engine stopped working"

Android app keeps crashing after adding a specific line of code

Why does my code stop crashing after adding aSan library?

Android app is crashing after adding admod java code

VS Code crashing on restart after opening large file

segmentation fault, Crashing the program after executing all lines of code

os.isdir not working on Mac after create executeable with pyinstaller?