Error 500 bug with exe file

Bug description:
When I try to run my program, I get an error 500.

Expected vs Current Behavior:
It is a Python program that I am trying to compile to a .exe file. When I try to execute the Python program (not the executable application), it throws an error 500.

What I did:

  • Create a python program.
  • Write some code.
  • Transfer it to .exe using pyinstaller library.
  • Deleted exe file
  • Recreated exe file with no content.
  • Error 500.

Bug appears at this link: https://replit.com/@EVANMANN5/Battle-Simulator-a-work-in-progress?c=0

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@element1010

EXE will not work on replit, as replit runs on linux and exe’s are for windows. Please compile your python library to a linux binary if you want it to work.

1 Like

That is true, but I wasn’t trying to run it. I simply created the file and it crashed.

1 Like

Can you provide the whole error? And are you trying to compile for windows? What command are you using?

1 Like

The command is:

$ pip install pyinstaller
(It installed successfully)
$ pyinstaller --onefile -w 'main.py'
(It created two folders, 'build' and 'dist', and a file, 'main.spec'. The 'dist' folder is where my .exe file is located)

Then, I downloaded the EXE file.
I deleted the EXE file.
I restored the EXE file with no content in it.
There was an error 500.
---
Oh, and by the way, you can’t go to the program anymore as I already solved the error (copy and paste; fork to a new Repl). It’s been closed for a while now. I just don’t know how to officially close it.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.