Tkinter module crashing computer

1

I have a python program which has been running well for the past several weeks with spyder, but today after making no changes to the code, running the program immediately causes the computer to restart. I think this is an issue with the tkinter module because I'm able to run 'import tkinter' in the terminal with no issues, but running 'python -m tkinter' also causes my computer to restart. Any suggestions for what could be causing this problem? Python version: 3.7.3 macOS Mojave 10.14.6

Jamie

Posted 2019-08-01T15:58:56.150

Reputation: 11

Answers

0

The restart is very worrisome, this should not happen in any hypothesis, other than a command to restart. Why don't you reinstall python and tkinter?

aod

Posted 2019-08-01T15:58:56.150

Reputation: 26

0

Mixing Spyder and tkinter is not a good thing as they both run on tkinter.

This restart has happened to a number of people.

Generally speaking, I find the way out of these kinds of situations is to NOT run the latest and greatest code. If you're running Python 3.7, try 3.6 or not the latest 3.7.

MikeyB

Posted 2019-08-01T15:58:56.150

Reputation: 101