torchKNN icon indicating copy to clipboard operation
torchKNN copied to clipboard

Import error

Open JeremyFisher opened this issue 6 years ago • 2 comments

Hey,

When I run python test.py I have the following import error:

Traceback (most recent call last): File "test.py", line 5, in from vision_sandbox import _C ImportError: (...)python3.6/site-packages/vision_sandbox-0.1-py3.6-linux-x86_64.egg/vision_sandbox/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs

Any ideas how to fix that?

JeremyFisher avatar May 21 '19 02:05 JeremyFisher

Hey,

When I run python test.py I have the following import error:

Traceback (most recent call last): File "test.py", line 5, in from vision_sandbox import _C ImportError: (...)python3.6/site-packages/vision_sandbox-0.1-py3.6-linux-x86_64.egg/vision_sandbox/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs

Any ideas how to fix that?

you have to import torch firstly

jonas710118 avatar Jul 27 '20 09:07 jonas710118