退出已编译的python代码时出现NSTouchbar异常

2024-09-30 16:37:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经使用wx.python用python编写了一个Gui,并使用Pyinstaller进行了编译。我的代码在Pycharm中运行良好,但当我从gui中单击时,编译版本会抛出下面的错误。我已经谷歌这一个没有运气,任何想法将不胜感激

例外情况:

2019-02-04 09:59:56.023 PCL601XCE_app[64617:9836366] *** Terminating app due to uncaught exception 'NSGenericException', reason: '[NSTouchBar(<NSTouchBar: 0x7fab42155940 configuration='<NSTouchBarCustomizableConfiguration: 0x7fab4213eb50 identifier='(null)'>' delegate='0x7fab406d80c0'>) itemIdentifiers] was mutated while items array was being built'

Tags: 代码版本app错误guipycharm例外情况wx