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

OSError: undefined symbol: _ZSt28__throw_bad_array_new_lengthv #275

Closed
shivance opened this issue Mar 6, 2022 · 3 comments
Closed

OSError: undefined symbol: _ZSt28__throw_bad_array_new_lengthv #275

shivance opened this issue Mar 6, 2022 · 3 comments

Comments

@shivance
Copy link

shivance commented Mar 6, 2022

I am trying to install torch_scatter but it is gives this error

Python 3.8.12 (default, Oct 12 2021, 13:49:34) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch_scatter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/anshuman/anaconda3/envs/Py38/lib/python3.8/site-packages/torch_scatter/__init__.py", line 16, in <module>
    torch.ops.load_library(spec.origin)
  File "/home/anshuman/anaconda3/envs/Py38/lib/python3.8/site-packages/torch/_ops.py", line 110, in load_library
    ctypes.CDLL(path)
  File "/home/anshuman/anaconda3/envs/Py38/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/anshuman/anaconda3/envs/Py38/lib/python3.8/site-packages/torch_scatter/_scatter_cpu.so: undefined symbol: _ZSt28__throw_bad_array_new_lengthv

My guess is it has something to do with cudatoolkit. But I have it installed

@rusty1s
Copy link
Owner

rusty1s commented Mar 7, 2022

Please share more information about how you installed PyTorch (torch.__version__ and torch.cuda.version) and torch-scatter. Please share any information logs of running pip install --verbose torch-scatter -f ... as well.

@shivance
Copy link
Author

shivance commented Mar 7, 2022

Hey @rusty1s , turns out that this issue solved my problem.
It occurred because of missmatch in c-compiler and cxx-compiler version of anaconda and system.

Thanks for reply though.

@shivance shivance closed this as completed Mar 7, 2022
@lonngxiang
Copy link

lonngxiang commented Nov 17, 2022

@rusty1s same error ; torch__version__ is 1.12.1, torch-scatter is 2.0.9

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