Skip to content
Sign upLog in
← Back to Community

repl process died unexpectedly : exit status 2

Profile icon
LohBoon

I have upload a python file from VS core, it can be run in VS core. When I want run the same file in REPL, the above message box was appear in the console.

Why happen and how to run in REPL.

Thank you.

Answered by MrVoo [earned 5 cycles]
View Answer
Voters
Profile icon
ElisabelFerreir
Profile icon
LohBoon
Comments
hotnewtop
Profile icon
MrVoo

You need a main.py OUTSIDE a folder for it to run. Move everything out of the folder.

Profile icon
LohBoon

@MrVoo
Thank you, it work now.

Profile icon
lsikora

Hey! So on your left there should be a option to select different files. Here you can add a new file on the top left corner and you will have the option to name the file. Name the file .replit like shown. When you open the file, you will have the option to type in code and here you will type, run = "blah blah blah". Replace the blah blah blah with the code you want to run. So for example, run = "main.py". Hope this helps!

Profile icon
lsikora

Also, you mean VS Code? Not VS Core, right? Visual Studio Code... CodeMaster007