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

.cpython-37m-x86_64-linux-gnu.so: undefined symbol: #11

Open
qujiangang opened this issue Oct 30, 2019 · 4 comments
Open

.cpython-37m-x86_64-linux-gnu.so: undefined symbol: #11

qujiangang opened this issue Oct 30, 2019 · 4 comments

Comments

@qujiangang
Copy link

/home/qujiangang/conda/lib/python3.7/site-packages/seamseg/utils/bbx/_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E

@ducksoup
Copy link
Contributor

Please provide more details about your environment and what you are trying to do. Unfortunately that error message alone is not nearly enough to understand what is going on.

@HaoLIU94
Copy link

HaoLIU94 commented Apr 22, 2020

Hello, I met the same error while I was trying to run the inference with the provided pre-trained model (res50).

Traceback (most recent call last):
File "test_panoptic.py", line 16, in
import seamseg.models as models
File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/seamseg/models/init.py", line 1, in
from .resnet import *
File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/seamseg/models/resnet.py", line 6, in
from inplace_abn import ABN
File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/init.py", line 2, in
from .abn import ABN, InPlaceABN, InPlaceABNSync
File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/abn.py", line 6, in
from .functions import *
File "/home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/functions.py", line 5, in
from . import _backend
ImportError: /home/haoliu/.conda/envs/py36/lib/python3.6/site-packages/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E

It seems like when we import _backend which is a cpython compiled file. There is some function definition missing.

This is what I did :
git clone and python setup.py install

python -m torch.distributed.launch --nproc_per_node=1 test_panoptic.py --meta ../model/metadata.bin --log_dir ../log/ ../model/config.ini ../model/seamseg_r50_vistas.tar /imgs/ ../output/

The requirements are met.

I have:
python 3.6
PyTorch 1.1.0
CUDA 10.1
Ubuntu 18.04 with GCC 7.5

Thanks, if you could help

@pranshurastogi29
Copy link

hey @HaoLIU94 i am also having same issue have you solved it thanks

@HaoLIU94
Copy link

hey @HaoLIU94 i am also having same issue have you solved it thanks

I wasn't able to use this project anyways.

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

4 participants