Pytorch Geometric CPU only version ImportError:

username: Beherit666
cooked: <p>Hi experts,<br>
I got an import error while importing pytorch_geometric.</p>
<p>My environment:<br>
//======================================<br>
CentOS Linux release 7.6.1810 (Core)<br>
Python 3.6.8 :: Anaconda custom (64-bit)<br>
torch==1.2.0+cpu<br>
torch-cluster==1.4.4<br>
torch-geometric==1.3.1<br>
torch-scatter==1.3.1<br>
torch-sparse==0.4.0<br>
torch-spline-conv==1.1.0<br>
torchvision==0.4.0+cpu<br>
//======================================</p>
<p>Error messages:<br>
//======================================</p>
<blockquote>
<blockquote>
<blockquote>
<p>import torch<br>
import torch_geometric<br>
Traceback (most recent call last):<br>
File “”, line 1, in <br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_geometric/<strong>init</strong>.py”, line 2, in <br>
import torch_geometric.nn<br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_geometric/nn/<strong>init</strong>.py”, line 2, in <br>
from .data_parallel import DataParallel<br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_geometric/nn/data_parallel.py”, line 5, in <br>
from torch_geometric.data import Batch<br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_geometric/data/<strong>init</strong>.py”, line 1, in <br>
from .data import Data<br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_geometric/data/data.py”, line 7, in <br>
from torch_sparse import coalesce<br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_sparse-0.4.0-py3.6-linux-x86_64.egg/torch_sparse/<strong>init</strong>.py”, line 6, in <br>
from .spspmm import spspmm<br>
File “/home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_sparse-0.4.0-py3.6-linux-x86_64.egg/torch_sparse/spspmm.py”, line 4, in <br>
import torch_sparse.spspmm_cpu<br>
<em><strong>ImportError: /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages/torch_sparse-0.4.0-py3.6-linux-x86_64.egg/torch_sparse/spspmm_cpu.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE</strong></em><br>
// ===========================================</p>
</blockquote>
</blockquote>
</blockquote>

username: ptrblck
cooked: <p>Did you get any errors/warning during the installation of <code>pytorch_geometric</code>?</p>
<p>PS: I think you might get a better answer, if you create an issue in the <a href="https://github.com/rusty1s/pytorch_geometric/issues" rel="nofollow noopener">repo</a>.</p>

username: Beherit666
cooked: <p>Hi ptrblck,<br>
Thanks for the reply and advice I will post it in the repo, there is no warning and/or error installing pytorch_geometric</p>
<p>//==========================================================</p>
<blockquote>
<p>pip install torch-geometric<br>
Collecting torch-geometric<br>
Requirement already satisfied: plyfile in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (0.7)<br>
Requirement already satisfied: scipy in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (1.3.1)<br>
Requirement already satisfied: pandas in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (0.24.2)<br>
Requirement already satisfied: scikit-learn in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (0.21.3)<br>
Requirement already satisfied: h5py in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (2.9.0)<br>
Requirement already satisfied: networkx in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (2.2)<br>
Requirement already satisfied: numpy in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (1.16.4)<br>
Requirement already satisfied: googledrivedownloader in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (0.4)<br>
Requirement already satisfied: rdflib in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from torch-geometric) (4.2.2)<br>
Requirement already satisfied: pytz&gt;=2011k in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from pandas-&gt;torch-geometric) (2018.9)<br>
Requirement already satisfied: python-dateutil&gt;=2.5.0 in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from pandas-&gt;torch-geometric) (2.8.0)<br>
Requirement already satisfied: joblib&gt;=0.11 in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from scikit-learn-&gt;torch-geometric) (0.13.2)<br>
Requirement already satisfied: six in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from h5py-&gt;torch-geometric) (1.12.0)<br>
Requirement already satisfied: decorator&gt;=4.3.0 in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from networkx-&gt;torch-geometric) (4.4.0)<br>
Requirement already satisfied: pyparsing in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from rdflib-&gt;torch-geometric) (2.3.1)<br>
Requirement already satisfied: isodate in /home/hliu/.conda/envs/hliuPython/lib/python3.6/site-packages (from rdflib-&gt;torch-geometric) (0.6.0)<br>
Installing collected packages: torch-geometric<br>
Successfully installed torch-geometric-1.3.1</p>
</blockquote>