{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaPy/PyPlot.jl/issues/405","repository_url":"https://api.github.com/repos/JuliaPy/PyPlot.jl","labels_url":"https://api.github.com/repos/JuliaPy/PyPlot.jl/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/JuliaPy/PyPlot.jl/issues/405/comments","events_url":"https://api.github.com/repos/JuliaPy/PyPlot.jl/issues/405/events","html_url":"https://github.com/JuliaPy/PyPlot.jl/issues/405","id":377113478,"node_id":"MDU6SXNzdWUzNzcxMTM0Nzg=","number":405,"title":"PyPlot crashes Julia 1.0.1 on macOS Mojave","user":{"login":"portig","id":14970067,"node_id":"MDQ6VXNlcjE0OTcwMDY3","avatar_url":"https://avatars3.githubusercontent.com/u/14970067?v=4","gravatar_id":"","url":"https://api.github.com/users/portig","html_url":"https://github.com/portig","followers_url":"https://api.github.com/users/portig/followers","following_url":"https://api.github.com/users/portig/following{/other_user}","gists_url":"https://api.github.com/users/portig/gists{/gist_id}","starred_url":"https://api.github.com/users/portig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portig/subscriptions","organizations_url":"https://api.github.com/users/portig/orgs","repos_url":"https://api.github.com/users/portig/repos","events_url":"https://api.github.com/users/portig/events{/privacy}","received_events_url":"https://api.github.com/users/portig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-04T02:21:36Z","updated_at":"2018-11-04T17:15:39Z","closed_at":null,"author_association":"NONE","body":"Using a Python 3.7 installation with matplotlib via MacPorts. Below is the output demonstrating the crash. The same type of installation on a different mac running macOS High Sierra does not have this issue. When using a nightly build of Julia 1.1.0 the \"using PyPlot\" command finishes with the message \"Warning: No working GUI backend found for matplotlib\".\r\n\r\nI did try to use the Conda that is installed by Julia when setting ENV[\"PYTHON\"] = \"\", and it caused a similar crash to what's shown here.\r\n\r\nStarting Julia 1.0.1 . . .\r\njulia> using PyPlot\r\n\r\njulia> plot(rand(2,2))\r\n2018-11-03 22:04:13.610 julia[25104:1185443] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fea7671cce0\r\n2018-11-03 22:04:13.611 julia[25104:1185443] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7fea7671cce0'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x00007fff37eb2e65 __exceptionPreprocess + 256\r\n\t1   libobjc.A.dylib                     0x00007fff63f0d720 objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x00007fff37f3022d -[NSObject(NSObject) __retain_OA] + 0\r\n\t3   CoreFoundation                      0x00007fff37e54820 ___forwarding___ + 1486\r\n\t4   CoreFoundation                      0x00007fff37e541c8 _CF_forwarding_prep_0 + 120\r\n\t5   libtk8.6.dylib                      0x000000013452231d TkpInit + 413\r\n\t6   libtk8.6.dylib                      0x000000013447a17e Initialize + 2622\r\n\t7   _tkinter.cpython-37m-darwin.so      0x00000001342a2a0f _tkinter_create + 1183\r\n\t8   libpython3.7m.dylib                 0x00000001115922b9 _PyMethodDef_RawFastCallKeywords + 681\r\n\t9   libpython3.7m.dylib                 0x00000001115923bd _PyCFunction_FastCallKeywords + 45\r\n\t10  libpython3.7m.dylib                 0x000000011169bc4b call_function + 603\r\n\t11  libpython3.7m.dylib                 0x0000000111692e45 _PyEval_EvalFrameDefault + 7893\r\n\t12  libpython3.7m.dylib                 0x0000000111690ad9 _PyEval_EvalCodeWithName + 3305\r\n\t13  libpython3.7m.dylib                 0x00000001115911b1 _PyFunction_FastCallDict + 481\r\n\t14  libpython3.7m.dylib                 0x0000000111592ba4 _PyObject_Call_Prepend + 164\r\n\t15  libpython3.7m.dylib                 0x00000001115fa5aa slot_tp_init + 298\r\n\t16  libpython3.7m.dylib                 0x0000000111603ca7 type_call + 295\r\n\t17  libpython3.7m.dylib                 0x0000000111591e73 _PyObject_FastCallKeywords + 691\r\n\t18  libpython3.7m.dylib                 0x000000011169bcb4 call_function + 708\r\n\t19  libpython3.7m.dylib                 0x0000000111692f6c _PyEval_EvalFrameDefault + 8188\r\n\t20  libpython3.7m.dylib                 0x0000000111591a6e function_code_fastcall + 254\r\n\t21  libpython3.7m.dylib                 0x000000011169bcbe call_function + 718\r\n\t22  libpython3.7m.dylib                 0x0000000111692e45 _PyEval_EvalFrameDefault + 7893\r\n\t23  libpython3.7m.dylib                 0x0000000111690ad9 _PyEval_EvalCodeWithName + 3305\r\n\t24  libpython3.7m.dylib                 0x00000001115911b1 _PyFunction_FastCallDict + 481\r\n\t25  libpython3.7m.dylib                 0x0000000111592ba4 _PyObject_Call_Prepend + 164\r\n\t26  libpython3.7m.dylib                 0x00000001115945b4 method_call + 36\r\n\t27  libpython3.7m.dylib                 0x00000001115925b6 PyObject_Call + 246\r\n\t28  libpython3.7m.dylib                 0x00000001116931b5 _PyEval_EvalFrameDefault + 8773\r\n\t29  libpython3.7m.dylib                 0x0000000111690ad9 _PyEval_EvalCodeWithName + 3305\r\n\t30  libpython3.7m.dylib                 0x00000001115911b1 _PyFunction_FastCallDict + 481\r\n\t31  ???                                 0x000000011117a3da 0x0 + 4581729242\r\n\t32  ???                                 0x000000011117fb17 0x0 + 4581751575\r\n\t33  ???                                 0x000000011119fca8 0x0 + 4581883048\r\n\t34  libjulia.1.0.dylib                  0x0000000103981ac3 jl_fptr_trampoline + 51\r\n\t35  ???                                 0x000000011119fbb6 0x0 + 4581882806\r\n\t36  libjulia.1.0.dylib                  0x00000001039924b2 jl_f__apply + 1218\r\n\t37  libjulia.1.0.dylib                  0x000000010399294f jl_f__apply_latest + 63\r\n\t38  ???                                 0x000000011119f785 0x0 + 4581881733\r\n\t39  ???                                 0x000000011119d5fe 0x0 + 4581873150\r\n\t40  ???                                 0x000000011119d724 0x0 + 4581873444\r\n\t41  ???                                 0x0000000111150bbc 0x0 + 4581559228\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\nsignal (6): Abort trap: 6\r\nin expression starting at no file:0\r\n__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)\r\nAllocations: 24070144 (Pool: 24065397; Big: 4747); GC: 53\r\nAbort trap: 6\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaPy/PyPlot.jl/issues/comments/435687784","html_url":"https://github.com/JuliaPy/PyPlot.jl/issues/405#issuecomment-435687784","issue_url":"https://api.github.com/repos/JuliaPy/PyPlot.jl/issues/405","id":435687784,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTY4Nzc4NA==","user":{"login":"tkf","id":29282,"node_id":"MDQ6VXNlcjI5Mjgy","avatar_url":"https://avatars3.githubusercontent.com/u/29282?v=4","gravatar_id":"","url":"https://api.github.com/users/tkf","html_url":"https://github.com/tkf","followers_url":"https://api.github.com/users/tkf/followers","following_url":"https://api.github.com/users/tkf/following{/other_user}","gists_url":"https://api.github.com/users/tkf/gists{/gist_id}","starred_url":"https://api.github.com/users/tkf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkf/subscriptions","organizations_url":"https://api.github.com/users/tkf/orgs","repos_url":"https://api.github.com/users/tkf/repos","events_url":"https://api.github.com/users/tkf/events{/privacy}","received_events_url":"https://api.github.com/users/tkf/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T17:15:39Z","updated_at":"2018-11-04T17:15:39Z","author_association":"NONE","body":"Did you try activating Tk backend before importing PyPlot?\r\n\r\n```julia\r\njulia> using PyCall\r\n\r\njulia> pygui(:tk)\r\n:tk\r\n\r\njulia> using PyPlot\r\n```\r\n\r\nIf it does not work, you can try other backends https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend\r\n"}}
{"actor":{"display_login":"tkf"}}