{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/1559","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1559/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1559/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1559/events","html_url":"https://github.com/spyder-ide/spyder/issues/1559","id":57974595,"number":1559,"title":"Spyder crashes on startup (Mac OSX)","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/2%E2%80%935%20stars","name":"2–5 stars","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/MacOS","name":"MacOS","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Miscelleneous","name":"Miscelleneous","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T20:06:56Z","updated_at":"2015-02-17T20:06:57Z","closed_at":null,"body":"_From [andrew.g...@gmail.com](https://code.google.com/u/116778059638709375266/) on 2013-09-12T11:08:38Z_\n\nSpyder startup proceeds normally up to the the point where the splash screen says \"Loading Editor...\" Then there's a short pause followed by a long error report. I imagine this is a problem in one of the dependencies, but I can't interpret the error report to figure out where to start looking. \n\nWhat steps will reproduce the problem?\n\n 1. Run spyder. e.g. with \"/opt/local/bin/spyder\" from the command line What is the expected output? What do you see instead? This is the error message:\r\n2013-09-12 17:15:59.485 Python[40759:7f07] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x7fe332b43fa0\r\n2013-09-12 17:15:59.486 Python[40759:7f07] An uncaught exception was raised\r\n2013-09-12 17:15:59.486 Python[40759:7f07] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x7fe332b43fa0\r\n2013-09-12 17:15:59.488 Python[40759:7f07] (\r\n\t0   CoreFoundation                      0x00007fff94358b06 __exceptionPreprocess + 198\r\n\t1   libobjc.A.dylib                     0x00007fff8d0463f0 objc_exception_throw + 43\r\n\t2   CoreFoundation                      0x00007fff943ef40a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186\r\n\t3   CoreFoundation                      0x00007fff9434702e ___forwarding___ + 414\r\n\t4   CoreFoundation                      0x00007fff94346e18 _CF_forwarding_prep_0 + 232\r\n\t5   libtk8.6.dylib                      0x0000000114d7a5b8 TkpInit + 408\r\n\t6   libtk8.6.dylib                      0x0000000114ce3cd8 Initialize + 1928\r\n\t7   _tkinter.so                         0x0000000114b3a122 Tcl_AppInit + 82\r\n\t8   _tkinter.so                         0x0000000114b35b87 Tkinter_Create + 967\r\n\t9   Python                              0x00000001024c2c97 PyEval_EvalFrameEx + 9911\r\n\t10  Python                              0x00000001024c0596 PyEval_EvalCodeEx + 1990\r\n\t11  Python                              0x000000010245540b function_call + 347\r\n\t12  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t13  Python                              0x000000010243d526 instancemethod_call + 502\r\n\t14  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t15  Python                              0x00000001024c7338 PyEval_CallObjectWithKeywords + 168\r\n\t16  Python                              0x000000010243b57b PyInstance_New + 267\r\n\t17  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t18  Python                              0x00000001024c2f5a PyEval_EvalFrameEx + 10618\r\n\t19  Python                              0x00000001024c0596 PyEval_EvalCodeEx + 1990\r\n\t20  Python                              0x00000001024bfdc6 PyEval_EvalCode + 54\r\n\t21  Python                              0x00000001024d9d81 PyImport_ExecCodeModuleEx + 241\r\n\t22  Python                              0x00000001024dcdf3 load_source_module + 1235\r\n\t23  Python                              0x00000001024dd029 load_package + 345\r\n\t24  Python                              0x00000001024dd854 import_submodule + 340\r\n\t25  Python                              0x00000001024dd3dc load_next + 268\r\n\t26  Python                              0x00000001024db32f PyImport_ImportModuleLevel + 1199\r\n\t27  Python                              0x00000001024bb758 builtin___import__ + 136\r\n\t28  Python                              0x00000001024c2c97 PyEval_EvalFrameEx + 9911\r\n\t29  Python                              0x000000010244a800 gen_send_ex + 240\r\n\t30  Python                              0x00000001024c0df5 PyEval_EvalFrameEx + 2069\r\n\t31  Python                              0x00000001024c7b22 fast_function + 178\r\n\t32  Python                              0x00000001024c2d38 PyEval_EvalFrameEx + 10072\r\n\t33  Python                              0x00000001024c7b22 fast_function + 178\r\n\t34  Python                              0x00000001024c2d38 PyEval_EvalFrameEx + 10072\r\n\t35  Python                              0x00000001024c0596 PyEval_EvalCodeEx + 1990\r\n\t36  Python                              0x000000010245540b function_call + 347\r\n\t37  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t38  Python                              0x000000010243d526 instancemethod_call + 502\r\n\t39  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t40  Python                              0x00000001024c7338 PyEval_CallObjectWithKeywords + 168\r\n\t41  sip.so                              0x0000000103e54f9a sip_api_call_method + 200\r\n\t42  QtCore.so                           0x000000010574c53f _Z15sipVH_QtCore_1116PyGILState_STATEPFvP17_sipSimpleWrapperS_ES1_P7_object + 47\r\n\t43  QtCore.so                           0x0000000105780a24 _ZN10sipQThread3runEv + 84\r\n\t44  QtCore                              0x000000010534e238 _ZN14QThreadPrivate5startEPv + 504\r\n\t45  libsystem_c.dylib                   0x00007fff87e667a2 _pthread_start + 327\r\n\t46  libsystem_c.dylib                   0x00007fff87e531e1 thread_start + 13\r\n)\r\n2013-09-12 17:15:59.489 Python[40759:7f07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSApplication _setup:]: unrecognized selector sent to instance 0x7fe332b43fa0'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x00007fff94358b06 __exceptionPreprocess + 198\r\n\t1   libobjc.A.dylib                     0x00007fff8d0463f0 objc_exception_throw + 43\r\n\t2   CoreFoundation                      0x00007fff943ef40a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186\r\n\t3   CoreFoundation                      0x00007fff9434702e ___forwarding___ + 414\r\n\t4   CoreFoundation                      0x00007fff94346e18 _CF_forwarding_prep_0 + 232\r\n\t5   libtk8.6.dylib                      0x0000000114d7a5b8 TkpInit + 408\r\n\t6   libtk8.6.dylib                      0x0000000114ce3cd8 Initialize + 1928\r\n\t7   _tkinter.so                         0x0000000114b3a122 Tcl_AppInit + 82\r\n\t8   _tkinter.so                         0x0000000114b35b87 Tkinter_Create + 967\r\n\t9   Python                              0x00000001024c2c97 PyEval_EvalFrameEx + 9911\r\n\t10  Python                              0x00000001024c0596 PyEval_EvalCodeEx + 1990\r\n\t11  Python                              0x000000010245540b function_call + 347\r\n\t12  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t13  Python                              0x000000010243d526 instancemethod_call + 502\r\n\t14  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t15  Python                              0x00000001024c7338 PyEval_CallObjectWithKeywords + 168\r\n\t16  Python                              0x000000010243b57b PyInstance_New + 267\r\n\t17  Python                              0x00000001024318b1 PyObject_Call + 97\r\n\t18  Python                              0x00000001024c2f5a PyEval_EvalFrameEx + 10618\r\n\t19  Python                              0x00000001024c0596 PyEval_EvalCodeEx + 1990\r\n\t20  Python                              0x00000001024bfdc6 PyEval_EvalCode + 54\r\n\t21  Python                 ...\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1559_"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/74742114","html_url":"https://github.com/spyder-ide/spyder/issues/1559#issuecomment-74742114","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1559","id":74742114,"user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T20:06:57Z","updated_at":"2015-02-17T20:06:57Z","body":"_From [andrew.g...@gmail.com](https://code.google.com/u/116778059638709375266/) on 2013-09-16T05:47:16Z_\n\nHi,\n\nI have been able to get Spyder working by reinstalling the necessary\ndependencies from MacPorts, and then installing Spyder itself from source.\nThe macports version doesn't work for me.\n\nI tried your suggestions regarding the ~/.spyder preference folder (which I\nhadn't previously investigated) and running the prepackaged Spyder.app from\nthe command line. Here are the results:\n\nWhen I run Spyder.app from the command line without making any changes to\n.spyder, it fails silently. No splash screen, no error messages.\n\nIf I remove ~/.spyder then Spyder.app runs, and creates a new preferences\nfolder.\n\nIf I try to run the version of Spyder that I installed myself from sources,\nand there is no .spyder folder then it fails with the same error I reported\npreviously.\n\nSo both problems seem to be related to the preferences file. I'm happy to\ntry some more debugging if there's anything else you'd like me to test.\n\n-AM"}}