If the active python is set to python 3.2, cmake will fail with the message: -- Found PythonLibs: /usr/lib64/libpython3.2.so File "<string>", line 1 from distutils.sysconfig import *; print get_python_lib(1) ^ SyntaxError: invalid syntax CMake Error at config/FindVIGRANUMPY_DEPENDENCIES.cmake:41 (FILE): file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with exactly three arguments. Call Stack (most recent call first): CMakeLists.txt:69 (FIND_PACKAGE) CMake Error at config/FindVIGRANUMPY_DEPENDENCIES.cmake:47 (FILE): file RELATIVE_PATH called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:69 (FIND_PACKAGE) File "<string>", line 1 from numpy.distutils.misc_util import *; print ' '.join(get_numpy_include_dirs()) ^ SyntaxError: invalid syntax -- Could NOT find Python numpy ('import numpy.distutils.misc_util' failed) Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named nose -- Could NOT find Python nosetests ('import nose' failed) -- Could NOT find sphinx documentation generator File "<string>", line 1 import sys; p = sys.platform; print 'windows' if p.startswith('win') else p ^ SyntaxError: invalid syntax -- Could NOT find VIGRANUMPY_DEPENDENCIES (missing: PYTHON_NUMPY_INCLUDE_DIR VIGRANUMPY_INSTALL_DIR) -- --------------------------------------------------------- -- VIGRA configuration information: -- --------------------------------------------------------- -- Using TIFF libraries: /usr/lib64/libtiff.so -- Using JPEG libraries: /usr/lib64/libjpeg.so -- Using PNG libraries: /usr/lib64/libpng.so;/usr/lib64/libz.so -- Using FFTW libraries: /usr/lib64/libfftw3.so -- Using HDF5 libraries: /usr/lib64/libhdf5.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libz.so -- Vigranumpy dependencies not found (vigranumpy disabled) If the active python installation is set to python 2 (python 2.7) cmake will build successfully. Reproducible: Always
That is quite possible, yet i can't use python eclass due to eapi reasons -> CANTFIX. Just use normal py2 as system python like everyone else for now.
Hi! Same problem here. Can you please link this bug to the bug relating to eclass dependency mentioned in comment #1? Thanks!
The same issue with (3.1) python slot (3.1.3-r1). media-libs/vigra-1.7.1 seems to be incompatible with not only python-3.2, but python3.
I think python.eclass can now use eapi4, would be nice to get this solved :)
Well you could've done it. Anyway, eclass added.
Will do next time (I preferred to comment for now as the package is not maintained by me and maybe you wouldn't allow me to commit that changes :))
Please mark 1.7.1-r1 as stable on amd64 because the currently stable version, 1.7.1, doesn't compile due to this bug. Thanks! (And thanks for the bug fixing, too!)