Skip to content
← Back to Community
repl process died unexpectedly: exit status 2?
Profile icon
FabricioLucas13

Good afternoon,

I am new in replit. I just try to do a little code that I have done in my PC, but that error pops up. I have been searching around and I think what is missing is the an exit. I am quite new and still learning, sorry it might be a very obvious thing to do but i just not sure how to carry on.

maybe put break but its seems like that won't work.

thank you very much.

Voters
Profile icon
jessejanus
Profile icon
LeonSosic
Profile icon
LALITKUMAR38
Profile icon
alejandromora43
Profile icon
bhajicomp
Profile icon
mad303735
Profile icon
MinHsiChen
Profile icon
fjsdbnjkwbi
Profile icon
BernardoOsorio9
Profile icon
Runa-w
Comments
hotnewtop
Profile icon
ch1ck3n

You can also make a main.py file and do import Pong

Profile icon
Coder100

That's because there is no such file called main.py.

Solution

Rename Pong.py to main.py

Profile icon
RohitGopu

you can only run an main.py file

Profile icon
CatastrophicPug

I have a main.py file, still won't work. Any thing that will fix it? Same exit status, and everything.

Profile icon
rubycodes14

I'm having same challenge here
@CatastrophicPug

Profile icon
MUMCODE

intro = She is pretty. she knows to play with codes as well.she is beautiful.
print(intro.upper())

i run this code and this is the error i am getting

No such file: main.py
repl process died unexpectedly: exit status 2

Profile icon
HallelujhaTefer

i have the same problem even tho its still main.py

Profile icon
FYaren

@HallelujhaTefer If you put your main.py page to a file, take it out

Profile icon
tarekq

@FYaren I tried this and it still says the same thing

Profile icon
YoonsiangWee

@HallelujhaTefer try name your file as other name, create a new file as "main.py", then paste your code inside the new file.

Profile icon
OfficialSpring

I get that too

Profile icon
OfficialSpring

No such file: main.py
repl process died unexpectedly: exit status 2

Profile icon
AhasWeerapura

Try running it on Shell instead of the Console, it worked for me.

Profile icon
MeghanaEemani

Hey try forking the original file again and retry

Profile icon
tvidl99

I'm newbie here. Thanks for advance mapquest driving directions