question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

torch sparse version bug

See original GitHub issue
! pip install torch-scatter==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
! pip install torch-sparse==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
! pip install torch-cluster==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
! pip install torch-spline-conv==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
! pip install torch-geometric

normally, it works. I can not import any from torch_geometric. Error

OSError: /usr/local/lib/python3.6/dist-packages/torch_sparse/_version.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Aug 3, 2020

Your installation of torch==1.5.0 is fine, the problem is within torchvision. You either need the correct torchvision version for PyTorch 1.5.0, or uninstall it completely for PyG (it‘s not really needed).

0reactions
shangguan9191commented, Aug 3, 2020

Your installation of torch==1.5.0 is fine, the problem is within torchvision. You either need the correct torchvision version for PyTorch 1.5.0, or uninstall it completely for PyG (it‘s not really needed). @asalimih Fixed by following pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory bug for backward on torch.sparse.mm? · Issue #41128
Bug To Reproduce Steps to reproduce the behavior: import torch import numpy ... PyTorch Version (e.g., 1.0): 1.4.0; OS (e.g., Linux): Ubuntu ...
Read more >
Error building wheel for torch-sparse (error installing pytorch ...
This error pops out from time to time and it has to do with the torch and cuda versions. So far, the solutions...
Read more >
torch-sparse - PyPI
PyTorch Sparse. PyPI Version Testing Status Linting Status Code Coverage. This package consists of a small extension library of optimized sparse matrix ...
Read more >
torch.sparse — PyTorch 1.13 documentation
The PyTorch API of sparse tensors is in beta and may change in the near future. We highly welcome feature requests, bug reports...
Read more >
Installation — pytorch_geometric documentation
python -c "import torch; print(torch.version.cuda)" >>> 11.6. Install the relevant packages: pip install pyg-lib torch-scatter torch-sparse -f ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found