MAC OSX抛出libc ++ abi.dylib:使用pygame时以NSException类型的未捕获异常终止

时间:2019-03-10 15:29:20

标签: python python-3.x macos pygame

我制作了一个A * Pathfinding程序,它在我的Windows PC上运行,但在我的mac osx上运行时却无法运行,它会抛出此错误

2019-03-10 16:19:10.777 Python[2139:45679] -[SDLApplication _setup:]: unrecognized selector sent to instance 0x7fcfa555c600
2019-03-10 16:19:10.779 Python[2139:45679] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SDLApplication _setup:]: unrecognized selector sent to instance 0x7fcfa555c600'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff44040ded __exceptionPreprocess + 256
    1   libobjc.A.dylib                     0x00007fff7010c720 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff440be195 -[NSObject(NSObject) __retain_OA] + 0
    3   CoreFoundation                      0x00007fff43fe2a60 ___forwarding___ + 1486
    4   CoreFoundation                      0x00007fff43fe2408 _CF_forwarding_prep_0 + 120
    5   libtk8.6.dylib                      0x000000010c8d61f2 TkpInit + 408
    6   libtk8.6.dylib                      0x000000010c845aac Initialize + 2454
    7   _tkinter.cpython-37m-darwin.so      0x000000010c6a7dc4 Tcl_AppInit + 84
    8   _tkinter.cpython-37m-darwin.so      0x000000010c6a7a98 _tkinter_create + 1144
    9   Python                              0x000000010b7ef75e _PyMethodDef_RawFastCallKeywords + 430
    10  Python                              0x000000010b7eecca _PyCFunction_FastCallKeywords + 42
    11  Python                              0x000000010b8ad804 call_function + 724
    12  Python                              0x000000010b8aa7d6 _PyEval_EvalFrameDefault + 25190
    13  Python                              0x000000010b8ae336 _PyEval_EvalCodeWithName + 2422
    14  Python                              0x000000010b7ee86b _PyFunction_FastCallDict + 523
    15  Python                              0x000000010b7efb3f _PyObject_Call_Prepend + 143
    16  Python                              0x000000010b83e001 slot_tp_init + 145
    17  Python                              0x000000010b839959 type_call + 297
    18  Python                              0x000000010b7eeae1 _PyObject_FastCallKeywords + 433
    19  Python                              0x000000010b8ad6d4 call_function + 420
    20  Python                              0x000000010b8aa877 _PyEval_EvalFrameDefault + 25351
    21  Python                              0x000000010b8ae336 _PyEval_EvalCodeWithName + 2422
    22  Python                              0x000000010b8a4494 PyEval_EvalCode + 100
    23  Python                              0x000000010b8e1b51 PyRun_FileExFlags + 209
    24  Python                              0x000000010b8e13ca PyRun_SimpleFileExFlags + 890
    25  Python                              0x000000010b900beb pymain_main + 6827
    26  Python                              0x000000010b90113a _Py_UnixMain + 58
    27  libdyld.dylib                       0x00007fff711daed9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]   Killed: 9               python3
[2]   Killed: 9               python3
[4]-  Killed: 9               python3
[5]+  Killed: 9               python3
Abort trap: 6

我到处都看过,但是找不到任何解决方法,我已经下载了Quartz并将其设置为我的SDL_VIDEODRIVER,但仍然无法正常工作 您可以使用here

查找代码im

0 个答案:

没有答案