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.

Original have torch 1.5.0 and when install PyTorch Geometric, it automatically downgraded to torch 1.4.0

See original GitHub issue

Original have torch 1.5.0 and when install PyTorch Geometric, it automatically downgraded to torch 1.4.0, and also I installed it successfully, but cannot import.

Original package version:

torch-1.5.0+cu102
torchvision-0.6.0+cu102

After installing PyTorch Geometric (pip install torch-geometric):

torch 1.4.0
torch-cluster 1.5.4
torch-scatter 2.0.4
torch-sparse 0.6.1
torch-spline-conv 1.2.0
torchvision-0.5.0

After installing PyTorch Geometric, the torch version automatically downgraded to torch 1.4.0

The import error message is as follow:

Traceback (most recent call last):
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_sparse/__init__.py", line 15, in <module>
    library, [osp.dirname(__file__)]).origin)
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch/_ops.py", line 106, in load_library
    ctypes.CDLL(path)
  File "/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/python/3.7.4/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcusparse.so.10.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_geometric/__init__.py", line 2, in <module>
    import torch_geometric.nn
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_geometric/nn/__init__.py", line 2, in <module>
    from .data_parallel import DataParallel
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_geometric/nn/data_parallel.py", line 5, in <module>
    from torch_geometric.data import Batch
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
    from .data import Data
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_geometric/data/data.py", line 7, in <module>
    from torch_sparse import coalesce
  File "/home/xdwang/pytorch/lib/python3.7/site-packages/torch_sparse/__init__.py", line 23, in <module>
    raise OSError(e)
OSError: libcusparse.so.10.0: cannot open shared object file: No such file or directory

Environment

  • linux
  • Python version: 3.7
  • PyTorch version: 1.5.0
  • CUDA/cuDNN version: 10.2
  • How did you try to install PyTorch Geometric and its extensions (pip, source): pip

Checklist

  • [YES ] I followed the installation guide.
  • [YES ] I cannot find my error message in the FAQ.
  • I set up CUDA correctly and can compile CUDA code via nvcc. I am using a computing cluster (Compute Canada) and CUDA should be set up properly
  • [NO ] I have cloned the repository and tried a manual installation from source.
  • I do have multiple CUDA versions on my machine. Not sure, as I cannot access to the CUDA PATH.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
CharlesGaydoncommented, Nov 5, 2021

Adding my two cents: I had pytorch==1.8.0 installed, and running conda install pyg -c pyg -c conda-forge would downgrade it to pytorch=1.10.0. My solution was to choose a specific build from the conda list of files for pyg package, and to run something like: mamba install pyg=2.0.2=py39_torch_1.9.0_cu111 -c pyg -c conda-forge resulting in

The following packages will be UPDATED:
pytorch            pytorch::pytorch-1.8.0-py3.9_cuda11.1~ --> conda-forge::pytorch-1.9.1-cuda111py39hb4a4491_3
0reactions
yulonglincommented, Dec 18, 2020

Ok sure, yes I parsed the incompatibility error message from installing PyG and deleted the corresponding packages and it works fine now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Original have torch 1.5.0 and when install PyTorch Geometric ...
Original have torch 1.5.0 and when install PyTorch Geometric, it automatically downgraded to torch 1.4.0 #1327.
Read more >
Installation — pytorch_geometric documentation
Installation via Pip Wheels · Ensure that at least PyTorch 1.12.0 is installed: · Find the CUDA version PyTorch was installed...
Read more >
Previous PyTorch Versions
Installing previous versions of PyTorch. We'd prefer you install the latest version, but old binaries and installation instructions are provided below for your ......
Read more >
pytorch geometric "Detected that PyTorch and torch_sparse ...
I get: RuntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions. PyTorch has CUDA version 10.1 and ...
Read more >
EasyBuild v4.6.2 documentation (release 20221021.0)
The latest version of EasyBuild provides support for building and installing 2,798 different software packages, including 37 different (compiler) toolchains ...
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