CornerNet-Lite icon indicating copy to clipboard operation
CornerNet-Lite copied to clipboard

ImportError undefined symbol: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev

Open zielona1 opened this issue 3 years ago • 1 comments

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

zielona1 avatar Jun 13 '21 08:06 zielona1

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.

veredba avatar Sep 30 '21 11:09 veredba