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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install with PyTorch Nightly #2146

Closed
3 of 4 tasks
sunshineatnoon opened this issue Feb 21, 2021 · 2 comments
Closed
3 of 4 tasks

Cannot install with PyTorch Nightly #2146

sunshineatnoon opened this issue Feb 21, 2021 · 2 comments

Comments

@sunshineatnoon
Copy link

sunshineatnoon commented Feb 21, 2021

馃摎 Installation

Environment

  • OS: Ubuntu 16.04
  • Python version: 3.7.9
  • PyTorch version: 1.9.0.dev20210220
  • CUDA/cuDNN version: 10.2.89
  • GCC version: 5.4.0
  • How did you try to install PyTorch Geometric and its extensions (wheel, source):
    conda install pytorch torchvision torchaudio -c pytorch-nightly
    pip install torch-scatter
    pip install torch-sparse
    pip install torch-cluster
    pip install torch-spline-conv
    pip install torch-geometric
    
  • Any other relevant information:
    The pip installation is successful, but when I try import torch_sparse, I got the following error:
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch_sparse/__init__.py", line 34, in <module>
      from .storage import SparseStorage  # noqa
    File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch_sparse/storage.py", line 21, in <module>
      class SparseStorage(object):
    File "/home/xtli/anaconda2/envs/svg/lib/python3.7/site-packages/torch/jit/_script.py", line 979, in script
      _compile_and_register_class(obj, _rcb, qualified_name)
    File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch/jit/_script.py", line 72, in _compile_and_register_class
      torch._C._jit_script_class_compile(qualified_name, ast, defaults, rcb)
    RuntimeError:
    attribute assignment is not defined on __torch__.torch_sparse.storage.SparseStorage:
      File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch_sparse/storage.py", line 145
      def empty(self):
          self = SparseStorage.__new__(SparseStorage)
          self._row = None
          ~~~~~~~~~~~~~~~~ <--- HERE
          self._rowptr = None
          self._value = None
    

Checklist

  • I followed the installation guide.
  • I cannot find my error message in the FAQ.
  • I set up CUDA correctly and can compile CUDA code via nvcc.
  • I do have multiple CUDA versions on my machine.
@rusty1s
Copy link
Member

rusty1s commented Feb 22, 2021

This looks like some TorchScript internals changed in PyTorch master. We will fix that once a new official PyTorch release lands. We cannot fix that for now to guarantee correct behavior with the current PyTorch release.

@sunshineatnoon
Copy link
Author

Got it. Thanks for the quick response and looking forward to the new release.

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

2 participants