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: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev #155

Open
zielona1 opened this issue Jun 13, 2021 · 1 comment

Comments

@zielona1
Copy link

run the Demo Script
Traceback (most recent call last):
File "demo.py", line 4, in
from core.detectors import CornerNet_Saccade
File "/home/zielona/CornerNet-Lite/core/detectors.py", line 1, in
from .base import Base, load_cfg, load_nnet
File "/home/zielona/CornerNet-Lite/core/base.py", line 3, in
from .nnet.py_factory import NetworkFactory
File "/home/zielona/CornerNet-Lite/core/nnet/py_factory.py", line 7, in
from ..models.py_utils.data_parallel import DataParallel
File "/home/zielona/CornerNet-Lite/core/models/py_utils/init.py", line 1, in
from ._cpools import TopPool, BottomPool, LeftPool, RightPool
File "/home/zielona/CornerNet-Lite/core/models/py_utils/_cpools/init.py", line 6, in
import top_pool, bottom_pool, left_pool, right_pool
ImportError: /home/zielona/.local/lib/python3.7/site-packages/cpools-0.0.0-py3.7-linux-x86_64.egg/top_pool.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev

@veredba
Copy link

veredba commented Sep 30, 2021

Hi, I use cuda 11, and I've created the conda env differently:
I removed from the conda_packagelist.txt the following: cuda, pytorch and torchvision
run:
conda create --name CornerNet_Lite --file conda_packagelist.txt --channel pytorch
conda activate CornerNet_Lite
pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

I recompiled the "_cpool" and it 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

2 participants