JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.46k stars 187 forks source link

Abort trap: 6 when trying to import pymc3 #861

Closed aditya-sengupta closed 6 months ago

aditya-sengupta commented 3 years ago

In trying to use some Python modules, pyimport will fail and crash the REPL. This happens with pymc3 (and with some other modules, but it's fixable by rolling back to old versions of other modules.)

To reproduce: pip install pymc3==3.9.3 in the environment that PyCall uses, then run

julia> using PyCall
julia> pyimport("pymc3")
Assertion failed: (findOption(Name) == Values.size() && "Option already exists!"), function addLiteralOption, file /Users/ci/miniconda3/conda-bld/llvmdev_1601977477900/work/include/llvm/Support/CommandLine.h, line 853.

signal (6): Abort trap: 6
in expression starting at REPL[14]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 38845460 (Pool: 38829395; Big: 16065); GC: 29
[1]    48491 abort      /Applications/Julia-1.5.app/Contents/Resources/julia/bin/julia
aditya-sengupta commented 6 months ago

This seems to not crash Julia any more, likely due to some update since this issue.