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

mportError: /home/vladimir/anaconda3/lib/python3.7/site-packages/torchlars/_adaptive_lr.cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass #9

Open
ternaus opened this issue Aug 25, 2020 · 3 comments

Comments

@ternaus
Copy link

ternaus commented Aug 25, 2020

 from torchlars import LARS
  File "/home/vladimir/anaconda3/lib/python3.7/site-packages/torchlars/__init__.py", line 2, in <module>
    from torchlars.lars import LARS
  File "/home/vladimir/anaconda3/lib/python3.7/site-packages/torchlars/lars.py", line 6, in <module>
    from torchlars._adaptive_lr import compute_adaptive_lr
ImportError: /home/vladimir/anaconda3/lib/python3.7/site-packages/torchlars/_adaptive_lr.cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

@dreamflasher
Copy link

I have the same problem. Pytorch 1.6.
It may be related to: pytorch/pytorch#38122
Here they are suggesting a solution, but torch is already imported in torchlars before: pytorch/pytorch#6097

@verbose-void
Copy link

I am also having this problem. Have there been any advancements to address this? What are the environment specs for people who have it working?

I am getting this issue with python3.6 + PyTorch 1.4. Also testing with PyTorch 1.6 in hopes that solves it.

@verbose-void
Copy link

I figured out how to solve it. You want to use PyTorch 1.6.0+ (I also used python3.6)

Hope this helps!

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

3 participants