Ask coding questions

← Back to all posts
"repl proccess died unexpectedly" problem
hychan09 (0)

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

Answered by InvisibleOne (3206) [earned 5 cycles]
View Answer
Comments
hotnewtop
InvisibleOne (3206)

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.

hychan09 (0)

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

InvisibleOne (3206)

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.

hychan09 (0)

@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

InvisibleOne (3206)

Just invite me to the repl

hychan09 (0)

@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?

hychan09 (0)

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

hychan09 (0)

@InvisibleOne found your discord check dms

hychan09 (0)

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?

InvisibleOne (3206)

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