IvanYashchuk / PyFenicsAD.jl

Automatic differentiation of FEniCS and Firedrake models in Julia
MIT License
12 stars 0 forks source link

Firedrake import fails with PyCall #3

Open IvanYashchuk opened 3 years ago

IvanYashchuk commented 3 years ago
julia> using PyCall
[ Info: Precompiling PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0]

julia> pyimport("numpy")
PyObject <module 'numpy' from '/home/firedrake/firedrake/lib/python3.6/site-packages/numpy/__init__.py'>

julia> pyimport("firedrake")
: CommandLine Error: Option 'debug-pass' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
IvanYashchuk commented 3 years ago

This failure happens only in firedrakeproject/firedrake-vanilla docker with prebuilt Julia binaries. Everything works fine with locally built Firedrake and Julia from homebrew (MacOS).

wence- commented 3 years ago

Probably related: https://github.com/JuliaPy/PyCall.jl/issues/810 ?

IvanYashchuk commented 3 years ago

Looks like it.