python - 退出编译的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'
解决方案
推荐阅读
- c++ - ROS 标头的 Visual Studio Code IncludePath 问题
- macos - 哪些用户输入会导致 kCGEventTapDisabledByUserInput
- html - 列表中的按钮作为链接
- reactjs - 继续在 POST 请求中获得 400(错误请求)
- python - 如何使用 matplotlib 和 python 制作带有五边形网格的雷达蜘蛛图?
- javascript - API Access Token 过期时间很短
- javascript - 确定选择框是否位于旋转矩形上方
- visual-studio-code - 通过 Visual Studio Code 的 Hyperledger FabCar 网络问题
- mysql - MYSQL 查询使用时间戳调用最近的值
- spring - 多对多关系的 JPA 存储库 findBy 外键