Opened 18 years ago

Closed 17 years ago

Last modified 16 years ago

#11912 closed defect (fixed)

BUG: py-scipy 0.5.2 fails to build on an intel mac (can't find headers building UMFPACK)

Reported by: c.khroulev@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.4.3
Keywords: Cc: erickt@…, c.khroulev@…
Port:

Description

py-scipy fails to build with the following message (trimmed):

--->  Building py-scipy with target build
...
building extension "scipy.linsolve.umfpack.__umfpack" sources
  adding 'Lib/linsolve/umfpack/umfpack.i' to sources.
swig: Lib/linsolve/umfpack/umfpack.i
swig -python -o build/src.darwin-8.9.1-i386-2.4/Lib/linsolve/umfpack/_umfpack_wrap.c -outdir build/src.darwin-8.9.1-i386-2.4/Lib/linsolve/umfpack Lib/linsolve/umfpack/umfpack.i
Lib/linsolve/umfpack/umfpack.i:188: Error: Unable to find 'umfpack.h'
... [and a few other UMFPACK-related files]

Also, the build process depends on swig, but it is not in the list of dependencies of the port (same problem as with the Fortran compiler).

Change History (4)

comment:1 Changed 17 years ago by tim.lahey@…

I'm getting similar, but slightly different errors.

umfpack_info:
  libraries umfpack not found in /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib
  libraries umfpack not found in /usr/local/lib
  libraries umfpack not found in /usr/lib
  libraries umfpack not found in /opt/local/lib
/opt/local/lib/python2.4/site-packages/numpy/distutils/system_info.py:403: UserWarning: 
    UMFPACK sparse solver (http://www.cise.ufl.edu/research/sparse/umfpack/)
    not found. Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [umfpack]) or by setting
    the UMFPACK environment variable.
  warnings.warn(self.notfounderror.__doc__)
  NOT AVAILABLE

non-existing path in 'Lib/maxentropy': 'doc'
Traceback (most recent call last):
  File "setup.py", line 55, in ?
    setup_package()
  File "setup.py", line 47, in setup_package
    configuration=configuration )
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/core.py", line 142, in setup
    config = configuration()
  File "setup.py", line 19, in configuration
    config.add_subpackage('Lib')
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 772, in add_subpackage
    caller_level = 2)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 755, in get_subpackage
    caller_level = caller_level + 1)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 702, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-0.5.2/Lib/setup.py", line 15, in configuration
    config.add_subpackage('odr')
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 772, in add_subpackage
    caller_level = 2)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 755, in get_subpackage
    caller_level = caller_level + 1)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 687, in _get_configuration_from_setup_py
    ('.py', 'U', 1))
  File "Lib/odr/setup.py", line 9, in ?
    from numpy.distutils.misc_util import get_path, Configuration, dot_join
ImportError: cannot import name get_path
Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-0.5.2" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output:   warnings.warn(self.notfounderror.__doc__)
  NOT AVAILABLE

non-existing path in 'Lib/maxentropy': 'doc'
Traceback (most recent call last):
  File "setup.py", line 55, in ?
    setup_package()
  File "setup.py", line 47, in setup_package
    configuration=configuration )
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/core.py", line 142, in setup
    config = configuration()
  File "setup.py", line 19, in configuration
    config.add_subpackage('Lib')
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 772, in add_subpackage
    caller_level = 2)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 755, in get_subpackage
    caller_level = caller_level + 1)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 702, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-0.5.2/Lib/setup.py", line 15, in configuration
    config.add_subpackage('odr')
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 772, in add_subpackage
    caller_level = 2)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 755, in get_subpackage
    caller_level = caller_level + 1)
  File "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 687, in _get_configuration_from_setup_py
    ('.py', 'U', 1))
  File "Lib/odr/setup.py", line 9, in ?
    from numpy.distutils.misc_util import get_path, Configuration, dot_join
ImportError: cannot import name get_path

Warning: the following items did not execute (for py-scipy): com.apple.activate com.apple.build com.apple.destroot com.apple.install
Error: Status 1 encountered during processing.

comment:2 Changed 17 years ago by c.khroulev@…

I'm getting the same errors as tim.lahey@… now.
(After updating py-numpy and python, that is; now I have the following package versions:
py-numpy @1.0.3_0 (active)
python24 @2.4.4_1+darwin_8 (active)
python25 @2.5.1_1+darwin_8 (active))

comment:3 Changed 17 years ago by erickt@…

Resolution: fixed
Status: newclosed

Should be fixed now. Please open a new bug if you have any more problems.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.