Missing dependency: Numeric

Bug #500745 reported by Mikkel Munch Mortensen
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
opencv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-opencv

I was trying to run the example code from here: <http://www.jperla.com/blog/2007/09/26/capturing-frames-from-a-webcam-on-linux/>

I installed python-opencv, but the module opencv.adaptors wouldn't work, as it tries to import Numeric (which is in python-numeric).

/usr/lib/pymodules/python2.6/opencv/adaptors.py line 66

I don't know what the policy is for package dependencies, but maybe python-opencv should have a dependency on python-numeric?

I'm running Ubuntu 9.10.
"apt-cache policy python-opencv" says:
python-opencv:
  Installed: 1.0.0-6.2ubuntu1
  Candidate: 1.0.0-6.2ubuntu1
  Version table:
 *** 1.0.0-6.2ubuntu1 0
        500 http://dk.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Tags: opencv python
Revision history for this message
endeavormac (endeavormac) wrote :

Also just ran in to this.

It looks like Numeric USED to be the name for the project which has evolved into NumPy.

Go in to adaptors.py (/usr/lib/pymodules/python2.6/opencv/adaptors.py)
Find: import Numeric
Replace with: import numpy

sudo apt-get install numpy

Hopefully the package maintainer will see this and release a fix

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

these days python-opencv depends on python-numpy.

Changed in opencv (Ubuntu):
status: New → Fix Released
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.