Skip to content
← Back to Community
how to exit a status 2 error
Profile icon
TinaAmandaSpie

Hello everyone one, i was programming and wanted to run my program, then i got an error message saying:
'No such File: Main.py
repl process died unexpectedly exit status 2'

and now i have NO idea what to do.

please please please help me anyone, cause i really dont wanna redo this whole program, when i was just about to finish.

  • thank you
Answered by LukeWright [earned 5 cycles]
View Answer
Voters
Profile icon
033SintaDwi
Profile icon
TinaAmandaSpie
Comments
hotnewtop
Profile icon
LukeWright

simply click on the file "assignment 10 TAS" and it should highlight. then click the 3 dots icon next to the file name and rename it "main.py". Then your code should work properly. If this helped, click the checkmark next to my comment! Also, you can rename the name of the project "assignment 10 TAS" without changing the name of the file itself.

Profile icon
LukeWright
Profile icon
TinaAmandaSpie

@LukeWright thank you, this helped and its working now.

Profile icon
btfuss

Make a file named: main.py
In the file insert the following code:
import os
os.system('python assignment 10 TAS')
if that doesnt work, rename the file; 'assignment 10 TAS' to 'assignment_10_TAS' and then
os.system('python assignment_10_TAS')

the only issue is that repl.it is looking for a main.py file which isnt there :/

Profile icon
TinaAmandaSpie

@2plus2is4hoi , this didnt work but thank you.