Ask coding questions

← Back to all posts
how to exit a status 2 error
TinaAmandaSpie (0)

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 (114) [earned 5 cycles]
View Answer
Comments
hotnewtop
LukeWright (114)

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.

2plus2is4hoi (94)

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 :/

TinaAmandaSpie (0)

@2plus2is4hoi , this didnt work but thank you.