Full Problem Report:
Process Causing Error: Python3
MacOS Version: Ventura 13.3
Chip/Model: M1 2020 Macbook Air
Background and Context:
Working on a data science project in Python that depends on a Julia Package to run correctly. Specifically I need to work with the curricular analytics / curricular visualization packages found here. While working with Julia I found I needed to use Julia 1.6.7 to properly get both of these programs working. But to do more expansive data analysis I'm going to be using Python, and I'm trying to get Python and Julia to play nice using JuliaCall (https://cjdoris.github.io/PythonCall.jl/stable/). I've set up a python virtual environment with my nessicary dependancies for python and I used JuliaPkg to manage the version and julia packages used. Looking at JuliaPkg, I got juliapkg.resolve()
to successfully run in a virtual python3 environment, which created the julia environment (Just getting to this step involved a morning of troubleshooting as JuliaPkg seems to be inherently designed to download the newest version of Julia). Then, when finally trying to run import juliacall
python3 quits with the following error:
ERROR: zsh: segmentation fault python3
Below is a preview of the entire problem report linked to the top of this post.
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xfffffffffffffff8
Exception Codes: 0x0000000000000001, 0xfffffffffffffff8
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [75009]
VM Region Info: 0xfffffffffffffff8 is not in any region. Bytes after previous region: 18446603350599745529
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
mapped file 7ffc98ae0000-7ffca6f8c000 [228.7M] r-x/r-x SM=COW ...t_id=a8481703
--->
UNUSED SPACE AT END
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libjulia-internal.1.6.dylib 0x10ad58e2d jl_uv_puts + 749
1 libjulia-internal.1.6.dylib 0x10ad59050 jl_printf + 208
2 libjulia-internal.1.6.dylib 0x10aca6954 jl_vexceptionf + 244
3 libjulia-internal.1.6.dylib 0x10aca6a12 jl_errorf + 146
4 libjulia-internal.1.6.dylib 0x10ad3d95e jl_load_dynamic_library + 1262
5 libjulia-internal.1.6.dylib 0x10ad3eec5 _julia_init + 405
6 libjulia-internal.1.6.dylib 0x10ad74af8 jl_init_with_image__threading + 72
7 libffi.dylib 0x7ff81c8f28c2 ffi_call_unix64 + 82
8 ??? 0x302c861e0 ???
Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x7ff7fff88694 0x7ff7fff84000 + 18068
Thread 2:
0 ??? 0x7ff89b68a9a8 ???
1 libsystem_kernel.dylib 0x7ff80ba851ee kevent + 10
2 libjulia-internal.1.6.dylib 0x10ad77161 signal_listener + 577
3 libsystem_pthread.dylib 0x7ff80babf1d3 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff80bababd3 thread_start + 15
I would be posting about this in the JuliaCall Githhub forum but from trying to find similar threads this seems to be a uniquely apple issue... Any suggestions or additional info would be super helpful!