CMake warning -- on both RedHat 4 and RedHat 5 -- No module named numpy.distutils -- Traceback (most recent call last) File "<string>", line 1, in ? (Bug #350)


Added by Scott Callaway almost 15 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

On both RedHat 4 and 5, I see the following warning when using CMake 2.6.4 in 'interactive mode'.
Using the command line:
~/cmake-2.6.4-Linux-i386/bin/cmake -i ./CMakeLists.txt

I am seeing the following warning -- that does not affect my ability to build the code:
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named numpy.distutils


Associated revisions

Revision 2b4ffd11
Added by Andrey Kamaev about 12 years ago

Merge pull request #350 from asmorkalov:android_java_warnings

History

Updated by Alexander Shishkov over 13 years ago

For using Python version of OpenCV 2.x you should install numpy library.

For example I reproduced your situation on RedHat EL5 2.6.18-194.el5. If I check on BUILD_NEW_PYTHON_SUPPORT flag, I will see in CMake log:

Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named numpy.distutils
...
Interfaces:
-- Python: ON
-- Python interpreter: /usr/bin/python2.4
-- Python numpy: NO (Python interface will not cover OpenCV 2.x API)

After installing numpy (python-numpy-1.0.1-1.el5.rf.x86_64.rpm):

-- Found PythonInterp: /usr/bin/python2.4
-- Found PythonLibs: /usr/lib64/python2.4/config/libpython2.4.a
-- Use INCLUDE: /usr/lib64/python2.4/site-packages/numpy/core/include
...
-- Interfaces:
-- Python: ON
-- Python interpreter: /usr/bin/python2.4
-- Python numpy: YES

  • Status changed from Open to Done
  • (deleted custom field) set to invalid

Also available in: Atom PDF