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

OpenCV does not work anymore #6160

Closed
gXLg opened this issue Dec 20, 2020 · 1 comment
Closed

OpenCV does not work anymore #6160

gXLg opened this issue Dec 20, 2020 · 1 comment
Labels

Comments

@gXLg
Copy link

gXLg commented Dec 20, 2020

Problem description
I can't use opencv in python anymore
It worked until two days ago I installed some packages and ran pkg update
Now on importing it says

>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/cv2/__init__.py", line 96, in <module>
    bootstrap()
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/cv2/__init__.py", line 86, in bootstrap
    import cv2
ImportError: dlopen failed: cannot locate symbol "_ZN6google8protobuf8internal18EpsCopyInputStream12DoneFallbackEPKci" referenced by "/data/data/com.termux/files/usr/lib/libopencv_dnn.so.4.5.0"...

Some people suggested to pkg install libopencv-contrib
But it ends up in

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libopencv-contrib : Depends: opencv but it is not going to be installed
                     Depends: opencv (= 4.4.0-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Steps to reproduce

  1. subscribe to its-pointless-repo
  2. run pkg install opencv

Expected behavior
import cv2 in python would work

Additional information
I ran pkg show opencv libopencv-contrib
and was curious about the conflict and depend:

Package: opencv
Version: 4.5.0
Maintainer: Termux members @termux
Installed-Size: 66.9 MB
Depends: gst-plugins-base, numpy, ffmpeg, libwebp, libprotobuf, libpng, libtiff, openjpeg
Conflicts: libopencv-contrib
Replaces: libopencv-contrib
Homepage: https://opencv.org
Download-Size: 14.0 MB
APT-Manual-Installed: yes
APT-Sources: https://its-pointless.github.io/files/24 termux/extras aarch64 Packages
Description: computer vision image library (with python2 python3 libraries

Package: libopencv-contrib
Version: 4.4.0-2
Maintainer: Termux members @termux
Installed-Size: 14.7 MB
Depends: opencv, opencv (= 4.4.0-2)
Homepage: https://opencv.org
Download-Size: 4461 kB
APT-Sources: https://its-pointless.github.io/files/24 termux/extras aarch64 Packages
Description: computer vision contrlib libraries
@ghost
Copy link

ghost commented Dec 20, 2020

Just its maintainer should rebuild it.

Please report opencv problems to https://github.com/its-pointless/its-pointless.github.io/issues - that's a community repo which is not covered by official Termux support.

@ghost ghost closed this as completed Dec 20, 2020
@ghost ghost added the invalid label Dec 20, 2020
ghost pushed a commit that referenced this issue Dec 20, 2020
In issue #6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
@termux termux locked and limited conversation to collaborators Oct 9, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant