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

Undefined symbol #76

Open
cgstathis opened this issue Aug 19, 2024 · 4 comments
Open

Undefined symbol #76

cgstathis opened this issue Aug 19, 2024 · 4 comments

Comments

@cgstathis
Copy link

I followed the instructions in the README to install and the import statement fails inside the conda env.

ImportError: /home/stathis/.local/lib/python3.10/site-packages/nksr/_C.so: undefined symbol: _ZN2at4_ops11linalg_norm4callERKNS_6TensorERKN3c108optionalINS5_6ScalarEEENS5_16OptionalArrayRefIlEEbNS6_INS5_10ScalarTypeEEE

@cedricpradalier
Copy link

Same problem here. Did you find a solution ? I could actually import just after install, and then I ran into this linking error. Seems like having two libraries in the system and linking against the wrong one.

@cgstathis
Copy link
Author

@cedricpradalier nope

@cedricpradalier
Copy link

I ended up restarting my venv with new conda environment solver (https://stackoverflow.com/a/77090765) and the error disappeared. I could test NKSR on my data and I haven't found any way to get a decent result so far, but at least it runs.

@pietro-sandrini
Copy link

I have the same problem, I tried to change the solver as suggested by @cedricpradalier but it didnt work for me. Are there any other suggestions?

Thank you very much.

Traceback (most recent call last):
File "/home/pietro/Documenti/nvidia_nksr/test_input_data/examples/recons_simple.py", line 11, in
import nksr
File "/home/pietro/anaconda3/envs/nksr/lib/python3.10/site-packages/nksr/init.py", line 18, in
from nksr.nn.unet import SparseStructureNet
File "/home/pietro/anaconda3/envs/nksr/lib/python3.10/site-packages/nksr/nn/init.py", line 10, in
from .modules import Conv3d, GroupNorm, Activation, GroupNorm, MaxPooling, Upsampling, SparseZeroPadding
File "/home/pietro/anaconda3/envs/nksr/lib/python3.10/site-packages/nksr/nn/modules.py", line 14, in
from nksr.svh import SparseFeatureHierarchy, KernelMap, VoxelStatus
File "/home/pietro/anaconda3/envs/nksr/lib/python3.10/site-packages/nksr/svh.py", line 12, in
import torch_scatter
File "/home/pietro/anaconda3/envs/nksr/lib/python3.10/site-packages/torch_scatter/init.py", line 16, in
torch.ops.load_library(spec.origin)
File "/home/pietro/.local/lib/python3.10/site-packages/torch/_ops.py", line 852, in load_library
ctypes.CDLL(path)
File "/home/pietro/anaconda3/envs/nksr/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/pietro/anaconda3/envs/nksr/lib/python3.10/site-packages/torch_scatter/_scatter_cuda.so: undefined symbol: _ZN5torch8autograd13_wrap_outputsERKSt6vectorIN2at6TensorESaIS3_EERKSt13unordered_setIPN3c1010TensorImplESt4hashISB_ESt8equal_toISB_ESaISB_EESJ_NS9_8ArrayRefINS9_8optionalIS3_EEEERKSt10shared_ptrINS0_4NodeEESt8functionIFS5_S5_S5_EE

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