Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import larcv error in Python [Mac] #45

Open
minjielei opened this issue May 18, 2021 · 3 comments
Open

Import larcv error in Python [Mac] #45

minjielei opened this issue May 18, 2021 · 3 comments

Comments

@minjielei
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

FYI, this issue is now opened on pybind11 github: pybind/pybind11#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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants