DeepLearnPhysics / larcv3

Third version of larcv. This is a complete replacement for larcv2.
MIT License
11 stars 6 forks source link

Import larcv error in Python [Mac] #45

Open minjielei opened 3 years ago

minjielei commented 3 years ago

I installed larcv on a clean conda virtual environment using pip install larcv and encountered no issues. However, when I try to import larcv I run into the following errorFatal Python error: PyMUTEX_LOCK(_PyRuntime.ceval.gil.mutex) failed. I am using python 3.7.10 on MacOS11.

coreyjadams commented 3 years ago

Hi @minjielei - could you try installing larcv3 from source? I think the pypi source files are slightly out of date.

Also - could you tell me which way you installed python? brew/port/conda? Port and Conda are known to work, haven't tried brew myself.

This mutex lock issue is not one I've seen before. It makes me think it's connected to the GIL, which is why I'm asking about the python install.

minjielei commented 3 years ago

I installed python via conda. Building from source results in the same mutex lock error, but I am able to install and use larcv on a docker container for now.

coreyjadams commented 3 years ago

FYI, this issue is now opened on pybind11 github: https://github.com/pybind/pybind11/issues/3081

Hopefully we get some advice there. Meanwhile, I'm glad you have it in a docker container and it's working. I'll leave this issue open until we resolve it.

ps. sorry for being slow, I had a baby in May and was out for awhile!