I have installed all PyG dependencies , but import error!
See original GitHub issue📚 Installation
Environment
- OS: ubuntu 16.04
- Python version: 3.7.3
- PyTorch version: 1.4.0
- CUDA/cuDNN version: cuda 9.2, cudnn 7.6.4
- GCC version: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
- How did you try to install PyTorch Geometric and its extensions (pip, source): conda
- Any other relevant information: I have installed torch-scarrter, torch-sparse, torch-cluster, torch-spline-conv and torch-geometric.
Additional context
pyg dependencies:(conda install torch-cluster…) torch-cluster 1.4.5 py37hf484d3e_0 ostrokach-forge torch-geometric 1.3.2 py37_0 ostrokach-forge torch-scatter 1.4.0 py37hf484d3e_0 ostrokach-forge torch-sparse 0.4.3 py37hf484d3e_0 ostrokach-forge torch-spline-conv 1.1.1 py37hf484d3e_0 ostrokach-forge
from torch_geometric.data import Data
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_geometric/__init__.py", line 2, in <module>
import torch_geometric.nn
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_geometric/nn/__init__.py", line 2, in <module>
from .data_parallel import DataParallel
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_geometric/nn/data_parallel.py", line 5, in <module>
from torch_geometric.data import Batch
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
from .data import Data
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_geometric/data/data.py", line 7, in <module>
from torch_sparse import coalesce
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_sparse/__init__.py", line 2, in <module>
from .coalesce import coalesce
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_sparse/coalesce.py", line 2, in <module>
import torch_scatter
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_scatter/__init__.py", line 3, in <module>
from .mul import scatter_mul
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_scatter/mul.py", line 3, in <module>
from torch_scatter.utils.ext import get_func
File "/home/lzn/anaconda3/lib/python3.7/site-packages/torch_scatter/utils/ext.py", line 2, in <module>
import torch_scatter.scatter_cpu
ImportError: /home/lzn/anaconda3/lib/python3.7/site-packages/torch_scatter/scatter_cpu.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
I have installed all PyG dependencies , but import error! #935
Hi, It turns out the cause of that error is the python version. I'm using python 3.5.5 but the f string which is...
Read more >python import error from setup.py if dependencies are not ...
In one my python package in setup.py is imported module __about__.py located inside package (where are stored all metadata and want to share...
Read more >PyGPlates Installation error on Ubuntu 20.04 - Bug Reports
I have checked and all dependencies are installed and I am able to build the pygplates.so image. However, when I try and import...
Read more >Installation — pytorch_geometric documentation
Ensure that at least PyTorch 1.12.0 is installed: · Find the CUDA version PyTorch was installed with: python -c "import torch; print(torch. ·...
Read more >torch-geometric - PyPI
PyG (PyTorch Geometric) is a library built upon PyTorch to easily write and train Graph Neural Networks (GNNs) for a wide range of...
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 FreeTop 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
Top GitHub Comments
Hi, It turns out the cause of that error is the python version. I’m using python 3.5.5 but the f string which is giving syntax error is recently added in python 3.6. If it’s really due to the version, I think it should be edited because this error occurs at
import torch_geometric.nn
from message_passing.py as well.Welcome! Hope to solve this error soon and always appreciate your great work!