-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
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
Import error cv2.so: undefined symbol: _ZN2cv8Stitcher17estimateTransformERKNS_11_InputArrayE #13226
Comments
How did you get these bindings? |
@alalek Compiled from source(Master-branch):
Which yield following output: thereby compiled and installed on my system(without any errors):
Even tried to build it in new folder, but same results(all python bindings doesn't seems to work) :( |
@alalek Solved it myself. Wrong installation path for |
Be careful with multiple calls of "make install" - they didn't uninstall previous versions so your system become inconsistent. Python path changes are here: #13202 |
Yes, that was the problem indeed. I uninstalled any previous file related to OpenCV and built the latest commit successfully today. The new features like Vulkan backend DNN are awesome!!!!
Yes, I made Python path changes as suggested in #13202 and used the default(old) configuration by commands as below:
But still the Python 2.7 binding lib[cv2.so] was installed at the wrong destination(as seen in my screenshot), whereas Python 3.6 bindings where installed at the correct place(i.e. /usr/local/lib/python2.7/dist-packages/cv2.cpython-36m-x86_64-linux-gnu.so). There is still a bug or something wrong with python 2.7 path. I moved the file[cv2.so] manually as a workaround and everything is ok for now |
There are two paths (PYTHON -> PYTHON3 | PYTHON2 ):
|
@alalek Ohh I was doing it wrong, I thought it was |
Python 3.7.9 (default, Aug 31 2020, 12:42:55) Getting a similar type of error. Unable to figure out. Update: gcc -shared -Wall $FILES -lm -o libopencv_text.so.4.5 Several similar files resulted in the same error. After correcting several files this way. Python 3.7.9 (default, Aug 31 2020, 12:42:55) Update: It seems the problem was some library in my Conda environment was conflicting. I'm not sure about that, because I initially tried to build opencv 4.5.3 from source. Then I tried to remove the build and install an older version 4.3.0 instead. Then also few similar errors appeared. After uninstalling few libraries from Conda environment and then reinstalling some helped me overcome this import cv2 error. |
System information (version)
Detailed description
All Python Bindings Seems Broken:(See below)
Python 2.7.15rc1:
Python 3.6.6:
Debug Files:
Strace:
python2.txt
python3.txt
The text was updated successfully, but these errors were encountered: