Mac OS 10.14.6更新后Tkinter使计算机崩溃 [英] Tkinter crashes computer after MacOS 10.14.6 update

查看:337
本文介绍了Mac OS 10.14.6更新后Tkinter使计算机崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天将我的2019 Macbook Pro更新为MacOS Mojave 10.14.6之后,我与pyinstaller打包在一起的tkinter应用程序现在使我的计算机崩溃.屏幕变黑一秒钟,然后重新启动到登录屏幕.当我通过命令行(未包装)运行程序时,它运行得很好.

After updating my 2019 Macbook Pro yesterday to MacOS Mojave 10.14.6, a tkinter application that I have packaged with pyinstaller now crashes my computer. The screen turns black for a second, and then restarts to the login screen. When I run the program through the command line (unpackaged), it runs just fine.

在终端中多次出现的错误代码是:CGSTrackingRegionSetIsEnabled returned CG error 268435459.

The error code that appears several times in terminal is: CGSTrackingRegionSetIsEnabled returned CG error 268435459.

我所做的研究使我进入了以下链接:

The research I've done has led me to these links:

  1. 这个未解决的StackOverflow问题
  2. 此半相关的SuperUser问题
  3. 有关日语问答网站"teratail"的问题
  1. This unanswered StackOverflow question
  2. This semi-related SuperUser question
  3. This question on the Japanese Q&A site teratail

未解决的StackOverflow问题与我自己的问题略有不同,因为似乎用户根本无法创建Tk()窗口,而我可以创建Tk()窗口(包括Python IDLE),但是它中断了当我用pyinstaller打包时.

The unanswered StackOverflow question is slightly different than my own problem, as it seems that that user cannot create a Tk() window at all, whereas I can create a Tk() window (including the Python IDLE), but it breaks when I package it with pyinstaller.

超级用户"问题尚未得到解答,但作为回答之一,我已卸载并重新安装pyinstaller无济于事.

The SuperUser question is unanswered, but as one of the answers suggest I have uninstalled and reinstalled pyinstaller to no avail.

有关teratail的问题得到了回答,并说该问题已通过卸载"Anaconda"得以解决,但我不知道Anaconda是什么或如何卸载它.

The question on teratail was answered, and says that the problem was fixed by uninstalling "Anaconda", but I don't know what Anaconda is or how to uninstall it.

我怀疑这是MacOS更新的问题,我无能为力对其进行修复,所以我不得不等待补丁.

I suspect that this is a problem with the MacOS update, and that there is nothing I can do to fix it and I'll have to wait for a patch.

为什么会这样?我该如何解决?

Why is this happening? How can I fix it?

推荐答案

新的MacOS Catalina(版本10.15)似乎为我解决了该问题.通过指定 tcl版本

The new MacOS Catalina (Version 10.15) update seems to fix the problem for me. By specifying the tcl version and making sure the right tcl is used, I was able to successfully bundle and run my python script with tkinter. Yay!

这篇关于Mac OS 10.14.6更新后Tkinter使计算机崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆