AttributeError: 'NoneType' object has no attribute 'origin'
See original GitHub issueI 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
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:21 (6 by maintainers)
Top Results From Across the Web
Why do I get AttributeError: 'NoneType' object has no attribute ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None .
Read more >artifact: AttributeError: 'NoneType' object has no attribute 'origin'
+++ This bug was initially created as a clone of Bug #1311431 +++ I believe Bug 1296530 is causing bustage with artifact builds...
Read more >'NoneType' object has no attribute 'origin' - Kaggle
'NoneType' object has no attribute 'origin' ... hello, I'm trying to run this short program but an error showes up. this is the...
Read more >AttributeError: 'NoneType' object has no attribute 'X' | bobbyhadz
The Python "AttributeError: 'NoneType' object has no attribute" occurs when we try to access an attribute on a None value, e.g. assignment from...
Read more >'NoneType' object has no attribute 'values' (Odoo 13)
AttributeError means that there was an Error that had to do with an Attribute request. In general, when you write x.y, y is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Did you install the CUDA package, e.g. via
https://pytorch-geometric.com/whl/torch-1.8.0+cu111.html
? Otherwise, you may try to install with the--no-index
option, i.e.I will leave my 50 cents here, I tried other methods to solve this problem but then but just got other issues 😅 I solved them by updating to PyTorch 1.8.1 and CUDA to 11.1 (using Ubuntu 20.04). Here are the steps:
torch
withcuda
by running this (from PyTorch webpage)torch-geometric
and its dependencies this in your terminal (from the PyTorch Geometric installation guide):