Ask coding questions

← Back to all posts
repl process died unexpectedly : exit status 2
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
LohBoon
Comments
hotnewtop
MrVoo

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

LohBoon

@MrVoo Thank you, it work now.

CodeMaster007

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!

CodeMaster007

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