vislearn/ngransac

import problem

Closed this issue · 2 comments

hello,I have compiled the ngransac, but when I want to do 'import ngransac',I find the questions as follows:
Traceback (most recent call last):
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 670, in _load_unlocked
File "", line 583, in module_from_spec
File "", line 1043, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: /home/xbw/anaconda3/envs/qg2/lib/python3.7/site-packages/ngransac-0.0.0-py3.7-linux-x86_64.egg/ngransac.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN2cv6String8allocateEm

That error might indicate compiler compatibility issues. I.e. the compiler on your system is incompatible with the compiler that compiled OpenCV - presumably you installed pre-compiled packages, e.g. via Conda? Either,

  • you find out which compiler OpenCV was compiled with, and use the same compiler version when compiling NGRANSAC or
  • you compile OpenCV from source on your system and point the setup.py to that OpenCV version
ebrach commented

Closing old issue.