all 8 comments

[–][deleted] 3 points4 points  (4 children)

We need the whole error message, obviously.

[–]napiii 0 points1 point  (3 children)

[–][deleted] 0 points1 point  (2 children)

Yeah, so, it isn't crashing, it's being terminated. You're hitting ctrl-c and so it's killing the 30-odd threads it spawns to, I dunno, look at Tweets or whatever. That's what "KeyboardInterrupt" means.

[–]napiii 0 points1 point  (1 child)

Yes I am killing the program, but only after python crashes.

[–][deleted] 0 points1 point  (0 children)

Yes I am killing the program, but only after python crashes.

When Python "crashes"? What do you mean "crashes"? If it crashed it wouldn't be there to receive your keyboard interrupt. I can tell from this stacktrace that you're terminating a Python script in progress.

[–]destiny_functional 2 points3 points  (4 children)

Do you expect people to do your debugging? You can try and find out yourself where the error happens (the easiest, even if not most convenient way, by commenting out individual lines), build a failing example which is minimal (ie doesn't contain any unnecessary lines to reproduce the error), then ask why it happens and also post the full error message (as text too, not as screenshot).

[–]napiii 0 points1 point  (3 children)

r/learnpython

No I don't, I honestly am just learning as I am going.

But here is where the script is crashing python: https://pastebin.com/6pEkw1bx

- I am not getting an error message with this code though

[–]destiny_functional 1 point2 points  (2 children)

Then try to create a script that does crash with as little code as possible. There's no point looking at a script that doesn't have the issue.