首页 > 解决方案 > 退出编译的python代码时出现NSTouchbar异常

问题描述

我使用 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'

标签: pythonwxpythonpyinstaller

解决方案


推荐阅读