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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: _ZN3c106Device8validateEv #25

Closed
Xiaoshunxin opened this issue Jun 21, 2019 · 5 comments
Closed

undefined symbol: _ZN3c106Device8validateEv #25

Xiaoshunxin opened this issue Jun 21, 2019 · 5 comments
Labels

Comments

@Xiaoshunxin
Copy link

Hi!
I want to install the lastest version of pyg.
After I installed the pytorch-cluster module, I want to verify whether it's correct to install.
But, I have got a error which was shown as follow:

ImportError while importing test module '/home/amax/Downloads/0621/pytorch_cluster-master/test/test_sampler.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: test/test_sampler.py:3: in <module> from torch_cluster import neighbor_sampler torch_cluster/__init__.py:1: in <module> from .graclus import graclus_cluster torch_cluster/graclus.py:2: in <module> import torch_cluster.graclus_cpu E ImportError: /home/amax/Downloads/0621/pytorch_cluster-master/torch_cluster/graclus_cpu.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c106Device8validateEv

I have tried to solve this problem, but I failed!
Can you help me to deal with it?

@rusty1s
Copy link
Owner

rusty1s commented Jun 21, 2019

Have you followed installation guide and the FAQ? It might help if you report your OS/PyTorch version. I have seen this error a lot, and it mostly stems from a mismatch of GCC versions.

@Xiaoshunxin
Copy link
Author

OS: Linux version 4.15.0-47-generic (buildd@lgw01-amd64-028) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu116.04.10)) #5016.04.1-Ubuntu SMP Fri Mar 15 16:06:21 UTC 2019
PyTorch: 1.2.0

I hava tried to installed in the following way:

  1. installing pytorch from source according the produce instroduced in the pytorch github
  2. setting "export CFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 $CFLAGS"" into ~/.bashrc
  3. installing the extension package (e.g., pytorch-scatter) from source code with command "python setup.py install"
  4. testing the installed package with commman "python setup.py test"
    How, the error is appearing again!

I want to query whether the steps mentioned above is correct?
Thank for your help!

@rusty1s
Copy link
Owner

rusty1s commented Jun 22, 2019

I'm a little helpless since the error message is so meaningless :( Did you try this in a fresh miniconda environment? There may be still version mismatches otherwise. So please:

  1. Create a new miniconda environement
  2. Install PyTorch via conda install
  3. Clone the torch-scatter repo
  4. Run python setup.py install and python setup.py test

@phaniram-sayapaneni
Copy link

This gave me this: #include , error: command 'gcc' failed with exit status 1
I have found some ulgy fix for this by using  CFLAGS='-stdlib=libc++’ pip install --verbose --no-cache-dir torch-cluster

works, but fails while importing torch_cluster
it throws: Symbol not found: __ZN6caffe26detail36_typeMetaDataInstance_preallocated_0E

@github-actions
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants