Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
491 views
in Technique[技术] by (71.8m points)

python - tkinter.Tk() error that kills and logoff my MacBook Pro

When I run root=tkinter.Tk() or just Tkinter.Tk() on my Mac it just kills everything and logs me off.

I have tried reinstalling the whole OS and then installed python threw brew but the problem still remains.

I'm using python3 but the same problem is there in python2

I'm currently running MacOS: 10.14.6

The error:

 >>> import tkinter
 >>> tkinter.Tk()
 <tkinter.Tk object .>

>>> 2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.989 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.989 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This is a bug in MacOS 10.14.6.

See https://bugs.python.org/issue37833


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...