-
Notifications
You must be signed in to change notification settings - Fork 144
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
AttributeError: 'NoneType' object has no attribute 'origin' #127
Comments
Have you seen pyg-team/pytorch_geometric#2304? Can you check if the You also may have multiple |
Thanks for your reply. |
@devskroy1 I am getting the same error. Which version of |
I will leave my 50 cents here, I tried other methods to solve this problem but then but just got other issues 😅
|
actually i met with the same issue with you. In my case, *cpu.so file were getting created but no cuda .so files found. How did you. resolve. this problem? |
Did you install the CUDA package, e.g. via
|
I am also facing the same issue. My environment is
I installed the packages from pypi and I checked that I was installing using the pytorch 1.8.0 and CUDA 111 link. I tried to do
I checked that During the compilation process of |
@rusty1s I think there is some inconsistency for wheels of pytorch=1.8.0 and cuda=11.1. Note: python = 3.9.4 did not work. So I am using python = 3.8.8 I installed pytorch=1.8.1 and torch-sparse using below commands
But the
the |
Yes, we currently do not provide Python 3.9 binaries. I will work on that. I'm not sure if there is a difference between packages with different CUDA versions. You can check by downloading https://pytorch-geometric.com/whl/torch-1.8.0+cu111/torch_sparse-0.6.9-cp38-cp38-linux_x86_64.whl that it also contains the required I installed PyTorch from conda and
|
This is interesting. I checked with a clean miniconda installation also that But I got the |
I met the same problem and fixed it by installing cuda package. My solution is:
|
I installed pytorch with conda: These are the pytorch packages that got installed: pytorch=1.9.0=cuda112py38h3d13190_1 When importing: |
Note sure why you have a PyTorch version installed with CUDA support although you have specified the |
As a side note:
this led to the inconsistent packages. I fixed it by explicitly stating packages e.g:
|
There is also a PyTorch conda package in |
this is work for me. thanks :) |
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? |
This issue has not been solved. |
Hi all, currently experiencing this issue only when I run torch on GPU, but everything works fine. I usually use torch==1.12.1+cu116, but had to downgrade to torch==1.8.1+cu111 to be able to import torch_geometric on just CPU. This is the error I get when I try and import torch_geometric on GPU: Python 3.8.2 (default, Jun 2 2020, 16:34:16)
I installed all packages as per PyTorch guidelines: pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html In regard to the .so files, I am having the issue of only having *_cpu.so files and no *_cuda.so files in my torch_sparse, torch_scatter etc. directories in the site-packages/ directory of my venv. Any help on this would be greatly appreciated as I am currently trying to train a transformer+GCNN on just cpu...... which will be done when I'm 90 years old. |
Please install via
|
I had the same issue, after spending day and days, finally the above solution works so far for me! |
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? |
I am using torch-sparse version 0.6.8 as a dependency for a project I am working on.
However, I get the following error inside the
torch_sparse/__init__.py
file:torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
AttributeError: 'NoneType' object has no attribute 'origin'
It seems that the
find_spec()
call returns None.I am running on CUDA on Ubuntu and using torch version 1.7.1 and torch-scatter version 2.0.5
Do you know how I can resolve this error?
Thanks
The text was updated successfully, but these errors were encountered: