2019-04-23 遇到的一点小问题
今天同事要在他的mac电脑上使用我之前做的分析工具,程序一打开就遇到了问题:
Python[43485:1086008] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fbd78d33b50
Python[43485:1086008] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7fbd78d33b50'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff42e0923b __exceptionPreprocess + 171
~
~
~
38 libdyld.dylib 0x00007fff6acb5015 start + 1
39 ??? 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
试了下我的Windows没问题;平时使用的Archlinux没有安装GUI支持,又没法测试。只能等下班后回家后用自己的mac试一下,没想到还是一样的问题。可能是搜索的姿势不对,一直没找到相关文章,只好放弃了。
还好第二天同事给了个链接,mac python3 conda pytorch出错:libc++abi.dylib: terminating with uncaught exception of type NSException,试了一下,可以了。记录一下。
mkdir -p ~/.matplotlib
$ echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc
网友评论