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

Cannot use with pytorch due to libgomp issue #42

Open
fjsj opened this issue Feb 2, 2021 · 1 comment
Open

Cannot use with pytorch due to libgomp issue #42

fjsj opened this issue Feb 2, 2021 · 1 comment

Comments

@fjsj
Copy link

fjsj commented Feb 2, 2021

I've found the following issue when trying to use n2 with pytorch in the same project.
It only happens when pytorch is imported BEFORE n2. When n2 is imported, I get this:

>>> import n2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /home/user/workspace/n2/venv/lib/python3.8/site-packages/torch/lib/libgomp-7c85b1e2.so.1: version `GOMP_5.0' not found (required by /home/user/workspace/n2/venv/lib/python3.8/site-packages/n2.cpython-38-x86_64-linux-gnu.so)

Steps to reproduce are very simple.
Just run pip install torch n2 ,then run:

import torch
import n2

My machine is:

  • Python 3.8.6
  • Ubuntu 20.04.2 LTS

Any available workarounds other than forcing import order?

@sanmai-NL
Copy link

See pytorch/pytorch#98836 (comment) for a workaround that could perhaps be applied in this case too.

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