retinanet-examples: _C.so: undefined symbol: _ZN2cv8fastFreeEPv
Hi! I cloned, the ran python setup.py develop
, and now when I run retinanet
I get the following undefined symbol:
retinanet-examples$ retinanet
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
(retinanet:1787): Gdk-CRITICAL **: 11:34:45.038: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(retinanet:1787): Gdk-CRITICAL **: 11:34:45.039: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Traceback (most recent call last):
File "/home/paulm/py3/env/bin/retinanet", line 11, in <module>
load_entry_point('retinanet', 'console_scripts', 'retinanet')()
File "/home/paulm/py3/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/paulm/py3/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
return ep.load()
File "/home/paulm/py3/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in load
return self.resolve()
File "/home/paulm/py3/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/paulm/code/retinanet-examples/retinanet/main.py", line 10, in <module>
from retinanet import infer, train, utils
File "/home/paulm/code/retinanet-examples/retinanet/infer.py", line 12, in <module>
from .model import Model
File "/home/paulm/code/retinanet-examples/retinanet/model.py", line 8, in <module>
from ._C import Engine
ImportError: /home/paulm/code/retinanet-examples/retinanet/_C.so: undefined symbol: _ZN2cv8fastFreeEPv
free(): invalid pointer
Aborted (core dumped)
Perhaps I have mismatched versions of some dep? Here’s what I’m linked against:
retinanet-examples$ ldd retinanet/_C.so
linux-vdso.so.1 (0x00007fff52cef000)
libnvinfer.so.5 => /usr/lib/x86_64-linux-gnu/libnvinfer.so.5 (0x00007f97f23d5000)
libnvonnxparser.so.0 => /usr/lib/x86_64-linux-gnu/libnvonnxparser.so.0 (0x00007f97f1c21000)
libcudart.so.10.1 => /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudart.so.10.1 (0x00007f97f19a5000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f97f161c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f97f127e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f97f1066000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f97f0c75000)
libcudnn.so.7 => /usr/lib/x86_64-linux-gnu/libcudnn.so.7 (0x00007f97de6c5000)
libcublas.so.10 => /usr/lib/x86_64-linux-gnu/libcublas.so.10 (0x00007f97d9a0b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f97d9807000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f97d95e8000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f97d93e0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f97fb227000)
libcublasLt.so.10 => /usr/lib/x86_64-linux-gnu/libcublasLt.so.10 (0x00007f97d6e80000)
Any ideas or help greatly appreciated.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (1 by maintainers)
It seems can not link opencv when building _C.so from source file circa By adding: library_dirs= ‘/usr/local/lib64/’], libraries=[‘nvinfer’, ‘nvinfer_plugin’, ‘nvonnxparser’, ‘opencv_core’, ‘opencv_imgproc’, ‘opencv_highgui’])
That solve my problem, hope it works for you