Description
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".
I 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.
Starting Julia 1.0.1 . . .
julia> using PyPlot
julia> plot(rand(2,2))
2018-11-03 22:04:13.610 julia[25104:1185443] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fea7671cce0
2018-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'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff37eb2e65 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff63f0d720 objc_exception_throw + 48
2 CoreFoundation 0x00007fff37f3022d -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff37e54820 forwarding + 1486
4 CoreFoundation 0x00007fff37e541c8 _CF_forwarding_prep_0 + 120
5 libtk8.6.dylib 0x000000013452231d TkpInit + 413
6 libtk8.6.dylib 0x000000013447a17e Initialize + 2622
7 _tkinter.cpython-37m-darwin.so 0x00000001342a2a0f _tkinter_create + 1183
8 libpython3.7m.dylib 0x00000001115922b9 _PyMethodDef_RawFastCallKeywords + 681
9 libpython3.7m.dylib 0x00000001115923bd _PyCFunction_FastCallKeywords + 45
10 libpython3.7m.dylib 0x000000011169bc4b call_function + 603
11 libpython3.7m.dylib 0x0000000111692e45 _PyEval_EvalFrameDefault + 7893
12 libpython3.7m.dylib 0x0000000111690ad9 _PyEval_EvalCodeWithName + 3305
13 libpython3.7m.dylib 0x00000001115911b1 _PyFunction_FastCallDict + 481
14 libpython3.7m.dylib 0x0000000111592ba4 _PyObject_Call_Prepend + 164
15 libpython3.7m.dylib 0x00000001115fa5aa slot_tp_init + 298
16 libpython3.7m.dylib 0x0000000111603ca7 type_call + 295
17 libpython3.7m.dylib 0x0000000111591e73 _PyObject_FastCallKeywords + 691
18 libpython3.7m.dylib 0x000000011169bcb4 call_function + 708
19 libpython3.7m.dylib 0x0000000111692f6c _PyEval_EvalFrameDefault + 8188
20 libpython3.7m.dylib 0x0000000111591a6e function_code_fastcall + 254
21 libpython3.7m.dylib 0x000000011169bcbe call_function + 718
22 libpython3.7m.dylib 0x0000000111692e45 _PyEval_EvalFrameDefault + 7893
23 libpython3.7m.dylib 0x0000000111690ad9 _PyEval_EvalCodeWithName + 3305
24 libpython3.7m.dylib 0x00000001115911b1 _PyFunction_FastCallDict + 481
25 libpython3.7m.dylib 0x0000000111592ba4 _PyObject_Call_Prepend + 164
26 libpython3.7m.dylib 0x00000001115945b4 method_call + 36
27 libpython3.7m.dylib 0x00000001115925b6 PyObject_Call + 246
28 libpython3.7m.dylib 0x00000001116931b5 _PyEval_EvalFrameDefault + 8773
29 libpython3.7m.dylib 0x0000000111690ad9 _PyEval_EvalCodeWithName + 3305
30 libpython3.7m.dylib 0x00000001115911b1 _PyFunction_FastCallDict + 481
31 ??? 0x000000011117a3da 0x0 + 4581729242
32 ??? 0x000000011117fb17 0x0 + 4581751575
33 ??? 0x000000011119fca8 0x0 + 4581883048
34 libjulia.1.0.dylib 0x0000000103981ac3 jl_fptr_trampoline + 51
35 ??? 0x000000011119fbb6 0x0 + 4581882806
36 libjulia.1.0.dylib 0x00000001039924b2 jl_f__apply + 1218
37 libjulia.1.0.dylib 0x000000010399294f jl_f__apply_latest + 63
38 ??? 0x000000011119f785 0x0 + 4581881733
39 ??? 0x000000011119d5fe 0x0 + 4581873150
40 ??? 0x000000011119d724 0x0 + 4581873444
41 ??? 0x0000000111150bbc 0x0 + 4581559228
)
libc++abi.dylib: terminating with uncaught exception of type NSException
signal (6): Abort trap: 6
in expression starting at no file:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 24070144 (Pool: 24065397; Big: 4747); GC: 53
Abort trap: 6