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

ImportError:undefined symbol: #6

Open
Zhizh1 opened this issue Oct 17, 2019 · 3 comments
Open

ImportError:undefined symbol: #6

Zhizh1 opened this issue Oct 17, 2019 · 3 comments

Comments

@Zhizh1
Copy link

Zhizh1 commented Oct 17, 2019

I downloaded and installed torchwordemb-0.0.9 via python setup.py install.and the i got an error related to return {vocab, dest};,I change the original code to return VocabAndTensor(vocab, dest);, and run python setup.py install again.then i install torchwordemb-0.0.9 successful;
but when i import torchwordemb,i meet an error :

 import torchwordemb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.6/dist-packages/torchwordemb-0.0.9-py3.6-linux-x86_64.egg/torchwordemb.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_29E

i have found some solutions but it didn't work for me, anyone meet this problem?

@ShuangqiZhu
Copy link

Do you import torch first?
import torch
import torchwordemb

@Zhizh1
Copy link
Author

Zhizh1 commented Feb 28, 2020

Do you import torch first?
import torch
import torchwordemb

yes,I have import torch before import torchwordemb.This question seems to be related to the version of torch.When I switched to a computer with a different torch version, there was no problem.

@petartonchev
Copy link

Downgrading to torch==1.4.0 solved the issue for me.

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

No branches or pull requests

3 participants