Running any pySimpleGUI sample code after updating MacOSX to version 10.14.6 causes whole system crash/Log out behaviour
I don't know Macs, but on PCs, system restarts like that are generally a video driver problem. It's about the only thing that has enough security privileges from the underlying OS to cause that level of crash.
Try running a tkinter demo program. My guess is that will also crash your system. The only thing PySimpleGUI does is call tkinter calls for the most part.
Here are the other packages that are imported, but generally speaking not used when doing simple windows. For example, pickle is only used if you save the window to disk.
import datetime
import time
import pickle
import calendar
import textwrap
import inspect
from typing import List, Any, Union, Tuple, Dict # because this code has to run on 2.7 can't use real type hints. Must do typing only in comments
from random import randint
import warnings
I just tried running tktinker demo helloworld code separately which runs without issue. Don't know what is causing this issue, It got triggered after updating MacOSX from version 10.14.5 to 10.14.6.
FYI: Apple has released a supplemental update for 10.14.6 (18G84 -> 18G87).
does the patch help?
Just tested this after I applied this patch 10.14.6 (18G84 -> 18G87) , GUI still freezes and whole OS automatically does logout. PySimpleGUI with TkTinker still unstable.
Using PySimpleGUIQt with pyside2 for now as a workaround.
Yes it freezes.
Hey Mayank, As you said "Using PySimpleGUIQt with pyside2 for now as a workaround."
It didn鈥檛 work for me. My system is still crashing when i used PySimpleGUIQt instead of PySimpleGUI.
How you avoided that using PySimpleGUIQt?
@shwetasahni09
I first Installed new conda/virtualenv ( not reuse PySimpleGUI one) with Python 3.7.3 (in anaconda python)
Installation instructions
pip install PySide2
pip install PySimpleGUIQt
while import use
import PySimpleGUIQt as sg
I don't think this is a PySimpleGUI specific problem as people are reporting it while directly using tkinter.....
"script with tkinkter logs me out (Mac os 10.14.6)"
https://www.reddit.com/r/learnpython/comments/cqizzd/script_with_tkinkter_logs_me_out_mac_os_10146/
I have the me problem, using any tinter as well as pysimplegui, which I first reported a couple of weeks ago. I thought we would have seen a fix by now, but I will give the PySide2 workaround a try.
Are these Mac upgrades necessary for security reasons? If not, is it possible to back off a little and not grab the latest and greatest? Like Python 3.7.4 we know has tkinter bugs. It's the absolute latest. When people used it, they hit tkinter errors that were costly to several of us in trying to track it down.
Security updates are auto installed on my Mac, I could not find a trivial way to revert these updates once installed. After auto installation of update from 10.14.5 -> 10.14.6 , I started getting this error.
@shuntera who were you expecting a fix from? Apple, PySimpleGUI, tkinter developers?
My experience so far with Apple on this project is that the bugs found in the first week are still causing the same problems. Button colors are broken, right? How on earth can Apple let that sit? 1.5 years so far I think.
Speaking of Apple and these problems.... are any of you logging bugs with Apple? I think they likely know by now, but maybe not. It's unacceptable that Apple doesn't seem to care about Python. They were very slow to get to version 3.
Same issue with anaconda + python 3.7.3 + mojave 10.14.6.
very frustrating to go through this bug for newbie in python GUI...
update: addressed this problem the way as @mayank10j explained
Most helpful comment
@shwetasahni09
I first Installed new conda/virtualenv ( not reuse PySimpleGUI one) with Python 3.7.3 (in anaconda python)
Installation instructions
pip install PySide2
pip install PySimpleGUIQt
while import use
import PySimpleGUIQt as sg