Giter VIP home page Giter VIP logo

Comments (13)

wss-xm avatar wss-xm commented on May 19, 2024 1

And,torch-scatter torch-cluster torch-spline-conv ,I can succee to import these.I don't know why not to import torch_sparse

from pytorch_sparse.

rluria14 avatar rluria14 commented on May 19, 2024 1

@rusty1s also getting this error on the import:

RuntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions. PyTorch has CUDA version 10.1 and torch_sparse has CUDA version 0.0. Please reinstall the torch_sparse that matches your PyTorch install.

scatter, cluster, and spline-conv seem to be importing fine. sparse is the only that is giving me an error.

any updates on how to fix this??

from pytorch_sparse.

lllloda avatar lllloda commented on May 19, 2024 1

hi guys, I'm having this weird issue
install torch-sparse is fine, but when it comes to import torch_sparse, it comes up with an issue like this:

RuntimeError:
attribute assignment is not defined on torch.torch_sparse.storage.SparseStorage:
File "XX/XX/anaconda3/envs/XX/lib/python3.6/site-packages/torch_sparse/storage.py",line145
def empty(self):
self = SparseStorage.new(SparseStorage)
self._row = None
~~~~~~~~~~~~~ < --- HERE
self._rowptr = None
self._value = None

so, i checked this storage.py file and everything seems fine, i have also uninstalled torch-sparse and re install it for many times.

emmmm, anyone know what is happening?

from pytorch_sparse.

rusty1s avatar rusty1s commented on May 19, 2024

If you want to compile with CUDA support although not having a GPU, you can use the FORCE_CUDA=1 environment variable. Alternatively, you can just use one of the provided Python wheels for your respective OS/CUDA version (see README).

from pytorch_sparse.

ccoulombe avatar ccoulombe commented on May 19, 2024

Yes ok thanks! In the previous version, I don't recall needing that env. variable.
But then, torch_sparse should work with torch cpu and do not check cuda version.

If not already done, it would be nice/wise to shield all cuda ops like torch does under .cuda..

from pytorch_sparse.

engrAsmasaattar avatar engrAsmasaattar commented on May 19, 2024

RuntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions. PyTorch has CUDA version 10.1 and torch_sparse has CUDA version 0.0. Please reinstall the torch_sparse that matches your PyTorch install.

from pytorch_sparse.

wss-xm avatar wss-xm commented on May 19, 2024

Pytorch version : 1.4.0+cuda92
Pytorch_sparse version: 0.5.1
Cuda version : 10.1
I can pip install torch_sparse,but When importing torch_sparse it fails to detect:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch_sparse/init.py", line 13, in
'_version', [osp.dirname(file)]).origin)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/_ops.py", line 106, in load_library
ctypes.CDLL(path)
File "/home/ubuntu/anaconda3/lib/python3.7/ctypes/init.py", line 356, in init
self._handle = _dlopen(self._name, mode)
OSError: libcusparse.so.9.2: 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 "", line 1, in
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch_sparse/init.py", line 22, in
raise OSError(e)
OSError: libcusparse.so.9.2: cannot open shared object file: No such file or directory

from pytorch_sparse.

wss-xm avatar wss-xm commented on May 19, 2024

Please help me ,thank you

from pytorch_sparse.

rusty1s avatar rusty1s commented on May 19, 2024

OSError: libcusparse.so.9.2: cannot open shared object file: No such file or directory

It looks like it is missing cusparse which is required for torch-sparse usage.

from pytorch_sparse.

rusty1s avatar rusty1s commented on May 19, 2024

Which PyTorch version are you using?

from pytorch_sparse.

lllloda avatar lllloda commented on May 19, 2024

Which PyTorch version are you using?

1.8.0a0,compiled from source

from pytorch_sparse.

rusty1s avatar rusty1s commented on May 19, 2024

Related to pyg-team/pytorch_geometric#2146.

from pytorch_sparse.

github-actions avatar github-actions commented on May 19, 2024

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

from pytorch_sparse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.