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

There is a OSError after install the torch_scatter #186

Closed
shxzhao opened this issue Jan 6, 2021 · 10 comments
Closed

There is a OSError after install the torch_scatter #186

shxzhao opened this issue Jan 6, 2021 · 10 comments

Comments

@shxzhao
Copy link

shxzhao commented Jan 6, 2021

After install torch_scatter, there is a problem:
OSError: /home/zhao/anaconda3/envs/pytorch2/lib/python3.6/site-packages/torch_scatter/_version.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs

How to solve it

@rusty1s
Copy link
Owner

rusty1s commented Jan 6, 2021

This usually indicates a version mismatch between PyTorch and CUDA and torch-scatter. Can you give more information to resolve this?

@shxzhao
Copy link
Author

shxzhao commented Jan 6, 2021

Thanks for you reply! My PyTorch is 1.4.0, CudaToolKit is 10.1, torch_scatter is torch_scatter-2.0.3-cp36-cp36m-linux_x86_64.whl. The torch_scatter is download in https://pytorch-geometric.com/whl/torch-1.4.0+cu101.html.

@rusty1s
Copy link
Owner

rusty1s commented Jan 7, 2021

Mh, that's weird. Can you uninstall all torch-scatter versions (repeatedly call pip uninstall torch-scatter) and run pip install --no-index torch-scatter -f ...?

@janosh
Copy link

janosh commented Jan 7, 2021

Had the same problem as @shxzhao. This fixed it for me:

pip uninstall torch-scatter && pip install --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-1.7.0+cpu.html

Thanks @rusty1s.

@shxzhao
Copy link
Author

shxzhao commented Jan 7, 2021

Thanks! @rusty1s @janosh But it does not work. I'll try something else.

@shxzhao
Copy link
Author

shxzhao commented Mar 2, 2021

Thanks! @rusty1s @janosh When I change the pytorch to 1.7, I succeed!

@ninjakx
Copy link

ninjakx commented Mar 15, 2021

@shxzhao can you list all your dependency with version? Because I am getting the same error. Downgrading the torch from 1.8 to 1.7 and 1.6 didn't help me

@shxzhao
Copy link
Author

shxzhao commented Mar 16, 2021

@ninjakx My cuda is 10.2, pytorch is 1.7.2, torch_scatter is 2.0.5. I hope it's helpful to you.

@zhouyupeng973
Copy link

my torch is 2.1.0 and my cuda is 12.0,which torch_scatter edition should I downlload?

@rusty1s
Copy link
Owner

rusty1s commented Dec 4, 2023

You can install from https://data.pyg.org/whl/torch-2.1.0+cu121.html

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

5 participants