Unable to start OpenCV test "No module named cv2"

Bug #1306346 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Invalid
High
Unassigned

Bug Description

This issue could be reproduced both on SRU systems and Trusty
(In SRU, it would be skipped due to package requirement not met)

If executed manually:
ubuntu@201101-6974:/usr/share/checkbox/scripts$ ./screenshot_validation ../data/images/logo_Ubuntu_stacked_black.png -o /home/ubuntu/Desktop/ok.jpg

If terminates with error message:
Traceback (most recent call last):
  File "./screenshot_validation", line 24, in <module>
    import cv2
ImportError: No module named cv2

We might need to add package python-opencv into package dependency
To let this test case be able to start automatically

Po-Hsu Lin (cypressyew)
description: updated
description: updated
Ara Pulido (ara)
Changed in checkbox:
importance: Undecided → High
Revision history for this message
Zygmunt Krynicki (zyga) wrote : Odp.: [Bug 1306346] Re: Unable to start OpenCV test "No module named cv2"

This is likely related to many of our dependencies being ‎encoded as recommendations or suggestions. I'll check out if this is the case here and get back to you.

Wysłane z mojego smartfonu BlackBerry 10
  Oryginalna wiadomość
Od: Ara Pulido
Wysłano: piątek, 11 kwietnia 2014 10:50
Do: <email address hidden>
Odpowiedz: Bug 1306346
Temat: [Bug 1306346] Re: Unable to start OpenCV test "No module named cv2"

** Changed in: checkbox
Importance: Undecided => High

--
You received this bug notification because you are a member of Checkbox
Bug Wranglers, which is subscribed to checkbox.
https://bugs.launchpad.net/bugs/1306346

Title:
Unable to start OpenCV test "No module named cv2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/checkbox/+bug/1306346/+subscriptions

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Looking at that I cannot find the dependency anywhere in plainbox-provider-{resource,checkbox}. I suspect this is the side effect of the fact that we never implemented the job meta data extraction that would be exposed to debhelper. I'd love to implement this.

ZK

Wysłane z mojego smartfonu BlackBerry 10
  Oryginalna wiadomość
Od: Ara Pulido
Wysłano: piątek, 11 kwietnia 2014 10:50
Do: <email address hidden>
Odpowiedz: Bug 1306346
Temat: [Bug 1306346] Re: Unable to start OpenCV test "No module named cv2"

** Changed in: checkbox
Importance: Undecided => High

--
You received this bug notification because you are a member of Checkbox
Bug Wranglers, which is subscribed to checkbox.
https://bugs.launchpad.net/bugs/1306346

Title:
Unable to start OpenCV test "No module named cv2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/checkbox/+bug/1306346/+subscriptions

Revision history for this message
Daniel Manrique (roadmr) wrote :

Opencv is supposed to be installed during the preseed process. Here's the merge request that added that to checkbox-satellite, along with the rationale of why it wasn't done as a dependency:

https://code.launchpad.net/~sylvain-pineau/checkbox-satellite/install_python_opencv_desktop/+merge/209888

You can check the preseed (in yantok they're in /srv/enablement/www/preseeds). I see a few (but not all) have this:

in-target apt-get install -y --force-yes python-opencv; \

This should be done for all non-server systems, so if it's not running, it could be that:

- the package wasn't installed. You can try installing it manually and see if it helps; if so, we need to debug why it wasn't installed.
- The package is installed but the module can't be loaded for some reason.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

OK cool,
For SRU systems, I think it's just the version of checkbox-satellite is not the latest one,
Therefore the following line cannot be found in preseed.
"in-target apt-get install -y --force-yes python-opencv"
I'll make sure everyone here has it updated before the next SRU cycle.

If it wasn't set as a dependency, we will need to install this package manually on those system that was not installed by the satellite, right?

Zygmunt Krynicki (zyga)
affects: checkbox → plainbox-provider-checkbox
Revision history for this message
Ara Pulido (ara) wrote :

It seems to be a problem with the checkbox-satellite version used in SRU.

I will close this one, but feel free to reopen it if it happens again in the next SRU cycle

Changed in plainbox-provider-checkbox:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.