Skip to content
← Back to Community
"repl proccess died unexpectedly" problem
Profile icon
ItsStitchy

I ran into the "repl proccess died unexpectedly" problem do you guys knowhow i can solve it?

Answered by InvisibleOne [earned 5 cycles]
View Answer
Voters
Profile icon
ItsStitchy
Comments
hotnewtop
Profile icon
InvisibleOne

That's not a problem, you used exit() which is how to exit a program from python, that's just the message replit gives when you use exit() there's nothing wrong with that message. It's basically just saying that you stopped the program and the program didn't finish naturally.

Profile icon
ItsStitchy

@InvisibleOne how can I change it so that the bot runs because it stops the bot from running so should I remove the exit()?

Profile icon
InvisibleOne

Well, what the function is doing is trying to find a token, in a file called token.json but since you don't have that file it is returning a FileNotFoundError and then exiting the program.
You can fix this by just not running the load_token on line 69, so just delete that line and everything "should" run.

Profile icon
ItsStitchy

@InvisibleOne um I removed the line tok = load_token on line 69 but it still isn’t working umm could u copy and paste my repl and make the fixes? I can copy it over I’m new to python so sorry for the inconvenience

Profile icon
InvisibleOne

Just invite me to the repl

Profile icon
ItsStitchy

@InvisibleOne okay do u have discord btw it’s like 3 am for me so uh yeah i won’t be able to inv u today cuz I’m not on my pc rn but do u have discord? If u do add me my user is ItsStitchy#0001 if not uh do u have a dm where I can send u the invite?

Profile icon
ItsStitchy

I can inv u rn where can I dm u the link? @InvisibleOne

Profile icon
ItsStitchy

@InvisibleOne found your discord check dms

Profile icon
ItsStitchy

uh i have a problem can u run the repl and help fix it? @InvisibleOne cause like its about defining smth and once i define it there's an error i don't recognise. Sorry to bother you but is that okay?

Profile icon
InvisibleOne

you need to re-open the file again like you did in the function above it, like this:

with open('users.json', 'r') as file: users = json.load(file.read())

@hychan09