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

install opencv in ev3dev #794

Open
dkasnesis opened this issue Jul 11, 2023 · 1 comment
Open

install opencv in ev3dev #794

dkasnesis opened this issue Jul 11, 2023 · 1 comment

Comments

@dkasnesis
Copy link

  • ev3dev version: 4.14.117-ev3dev-2.3.5-ev3
  • ev3dev-lang-python version: micropython-ev 2.1.0, python3-ev3dev 1.2.0, python3-ev3dev 2.1.0

I have Windows 10, latest ev3dev version installed in EV3. I am using Visual Studio Code to program the robot. EV3 is connected to Internet through microUSB cable and everything works nice with SSH. I am trying to install OpenCV library to ev3dev using the terminal and I get this error:

The following packages have unmet dependencies:
 python3-opencv : Depends: libopencv-calib3d3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-features2d3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-highgui3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-imgcodecs3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-objdetect3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-stitching3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-superres3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-videoio3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-videostab3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: libopencv-viz3.2 (= 3.2.0+dfsg-4ev3dev1) but it is not going to be installed
                  Depends: python3-numpy (>= 1:1.10.0~b1) but it is not installable
                  Depends: python3-numpy-abi9 but it is not installable
                  Depends: libopencv-contrib3.2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

So I can't make a project that combines opencv and ev3dev. Any help ?

@dlech
Copy link
Member

dlech commented Jul 11, 2023

Since Debian stretch is so old now, the package archive URL that ships with ev3dev no longer works. It can be fixed by editing /etc/apt/sources.list (e.g. sudo nano /etc/apt/sources.list) to look like this.

deb http://archive.debian.org/debian stretch main contrib non-free
#deb-src http://archive.debian.org/debian stretch main contrib non-free

deb http://archive.ev3dev.org/debian stretch main
#deb-src http://archive.ev3dev.org/debian stretch main

Then run sudo apt update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants