Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382165 - media-libs/vigra-1.7.1: Does not work with python 3
Summary: media-libs/vigra-1.7.1: Does not work with python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 18:31 UTC by Marko D
Modified: 2011-10-25 17:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko D 2011-09-07 18:31:26 UTC
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
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-09 09:19:20 UTC
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.
Comment 2 gentoo 2011-10-06 14:15:46 UTC
Hi! Same problem here. Can you please link this bug to the bug relating to eclass dependency mentioned in comment #1? Thanks!
Comment 3 Sergey S. Starikoff 2011-10-08 07:13:27 UTC
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.
Comment 4 Pacho Ramos gentoo-dev 2011-10-17 21:29:11 UTC
I think python.eclass can now use eapi4, would be nice to get this solved :)
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2011-10-18 07:30:17 UTC
Well you could've done it.

Anyway, eclass added.
Comment 6 Pacho Ramos gentoo-dev 2011-10-18 09:36:43 UTC
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 :))
Comment 7 gentoo 2011-10-25 17:54:59 UTC
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!)