jsexauer / networkx_viewer

Interactive GUI for NetworkX graphs
GNU General Public License v3.0
137 stars 27 forks source link

[NSApplication _setup:]: unrecognized selector sent to instance on OS X #12

Open Axure opened 8 years ago

Axure commented 8 years ago

OS X 10.11, Python 3.4, networkx_viewer 0.2, networkx 1.10.

Simply create a graph and calling

app = Viewer(G)
app.mainloop()

would cause:

2016-01-01 04:07:33.560 Python[49670:487815] -[NSApplication _setup:]: unrecognized selector sent to instance 0x107096790 2016-01-01 04:07:33.562 Python[49670:487815] An uncaught exception was raised 2016-01-01 04:07:33.562 Python[49670:487815] -[NSApplication _setup:]: unrecognized selector sent to instance 0x107096790 2016-01-01 04:07:33.563 Python[49670:487815] ( 0 CoreFoundation 0x00007fff92290e32 exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff926064fa objc_exception_throw + 48 2 CoreFoundation 0x00007fff922fa34d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff92201661 __forwarding + 1009 4 CoreFoundation 0x00007fff922011e8 _CF_forwarding_prep_0 + 120 5 Tk 0x0000000104c52958 TkpInit + 476 6 Tk 0x0000000104bcda7e Tk_Init + 1799 7 _tkinter.so 0x0000000104aabf2d Tcl_AppInit + 77 8 _tkinter.so 0x0000000104aa9477 Tkinter_Create + 919 9 Python 0x00000001000e50eb PyEval_EvalFrameEx + 31291 10 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 11 Python 0x00000001000e4eb7 PyEval_EvalFrameEx + 30727 12 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 13 Python 0x000000010003f4ca function_call + 186 14 Python 0x000000010000d848 PyObject_Call + 104 15 Python 0x00000001000e0cc3 PyEval_EvalFrameEx + 13843 16 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 17 Python 0x000000010003f4ca function_call + 186 18 Python 0x000000010000d848 PyObject_Call + 104 19 Python 0x000000010002922c method_call + 140 20 Python 0x000000010000d848 PyObject_Call + 104 21 Python 0x00000001000782e1 slot_tp_init + 81 22 Python 0x0000000100073384 type_call + 212 23 Python 0x000000010000d848 PyObject_Call + 104 24 Python 0x00000001000e1904 PyEval_EvalFrameEx + 16980 25 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 26 Python 0x00000001000e63df PyEval_EvalCode + 63 27 Python 0x00000001001106be PyRun_FileExFlags + 206 28 Python 0x0000000100110a6d PyRun_SimpleFileExFlags + 717 29 Python 0x0000000100127f6e Py_Main + 3262 30 Python 0x0000000100000e32 Python + 3634 31 Python 0x0000000100000c84 Python + 3204 32 ??? 0x0000000000000002 0x0 + 2 ) 2016-01-01 04:07:33.563 Python[49670:487815] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x107096790' * First throw call stack: ( 0 CoreFoundation 0x00007fff92290e32 exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff926064fa objc_exception_throw + 48 2 CoreFoundation 0x00007fff922fa34d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff92201661 __forwarding + 1009 4 CoreFoundation 0x00007fff922011e8 _CF_forwarding_prep_0 + 120 5 Tk 0x0000000104c52958 TkpInit + 476 6 Tk 0x0000000104bcda7e Tk_Init + 1799 7 _tkinter.so 0x0000000104aabf2d Tcl_AppInit + 77 8 _tkinter.so 0x0000000104aa9477 Tkinter_Create + 919 9 Python 0x00000001000e50eb PyEval_EvalFrameEx + 31291 10 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 11 Python 0x00000001000e4eb7 PyEval_EvalFrameEx + 30727 12 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 13 Python 0x000000010003f4ca function_call + 186 14 Python 0x000000010000d848 PyObject_Call + 104 15 Python 0x00000001000e0cc3 PyEval_EvalFrameEx + 13843 16 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 17 Python 0x000000010003f4ca function_call + 186 18 Python 0x000000010000d848 PyObject_Call + 104 19 Python 0x000000010002922c method_call + 140 20 Python 0x000000010000d848 PyObject_Call + 104 21 Python 0x00000001000782e1 slot_tp_init + 81 22 Python 0x0000000100073384 type_call + 212 23 Python 0x000000010000d848 PyObject_Call + 104 24 Python 0x00000001000e1904 PyEval_EvalFrameEx + 16980 25 Python 0x00000001000e631d PyEval_EvalCodeEx + 2349 26 Python 0x00000001000e63df PyEval_EvalCode + 63 27 Python 0x00000001001106be PyRun_FileExFlags + 206 28 Python 0x0000000100110a6d PyRun_SimpleFileExFlags + 717 29 Python 0x0000000100127f6e Py_Main + 3262 30 Python 0x0000000100000e32 Python + 3634 31 Python 0x0000000100000c84 Python + 3204 32 ??? 0x0000000000000002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException

sdiemert commented 7 years ago

I have experienced a similar error - would be great if this were fixed.

TheRealAgentK commented 7 years ago

Same problem here.

Tsarpf commented 1 year ago

Heh, still same here.