Hi again,

we are currently trying to install scipy via macports on an intel Mac. When trying to install scipy, a lot of dependecies were installed, but python24 wasn't (at least at the time that numpy was built). So I guess that numpy needs a dependency on python24.

that is how it looked:

---> Attempting to fetch numpy-1.0.3.tar.gz from http:// easynews.dl.sourceforge.net/numpy
--->  Verifying checksum(s) for py-numpy
--->  Extracting py-numpy
--->  Configuring py-numpy
--->  Building py-numpy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_pytho n_py-numpy/work/numpy-1.0.3" && /opt/local/bin/python2.4 setup.py build " returned error 127 Command output: sh: line 1: /opt/local/bin/python2.4: No such file or directory

Error: The following dependencies failed to build: py-numpy
Error: Status 1 encountered during processing.

Hm. Got that solved by manually installing python24, but now I'm stuck at building scipy itself.

The first problem was in the setup script of one of the scipy modules. In scipy-0.5.2/Lib/odr/setup.py, Line 9 method "get_path" is imported from some numpy module, but that method doesn't exist there. Replacing

from numpy.distutils.misc_util import get_path, Configuration, dot_join

by

from numpy.distutils.misc_util import Configuration, dot_join

solves the issue. However, I don't know why it was imported because it is not used in Lib/odr/setup.py at all. This is how it looked:

---> Attempting to fetch scipy-0.5.2.tar.gz from http:// downloads.sourceforge.net/scipy
--->  Verifying checksum(s) for py-scipy
--->  Extracting py-scipy
--->  Configuring py-scipy
--->  Building py-scipy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_pytho n_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/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_pytho n_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: Status 1 encountered during processing.


Now, having that fixed, the next error seems to be a linking error. Obviously someone forgot to link against the Python Framework / libpython2.4.dylib. Linking happens to fail for every Fortran module, cluster and io on the other hand are built without error. Could someone shed light into this?

ient-137-226-196-204:~/Source/opencv root# port install py-scipy
--->  Building py-scipy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_pytho n_py-scipy/work/scipy-0.5.2" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: _PyImport_ImportModule
_PyInt_Type
_PyModule_GetDict
_PyNumber_Int
_PyObject_GetAttrString
_PySequence_Check
_PySequence_GetItem
_PyString_FromString
_PyString_Type
_PyType_IsSubtype
_PyType_Type
_Py_BuildValue
_Py_InitModule4
__Py_NoneStruct
_PyCObject_FromVoidPtr
_PyDict_DelItemString
_PyDict_GetItemString
_PyDict_New
_PyExc_AttributeError
_PyExc_TypeError
_PyExc_ValueError
_PyObject_Free
_PyObject_Str
_PyObject_Type
_PyString_AsString
_PyString_ConcatAndDel
_Py_FindMethod
__PyObject_New
_MAIN_
error: Command "g95 -shared build/temp.macosx-10.3-i386-2.4/build/ src.macosx-10.3-i386-2.4/Lib/fftpack/_fftpackmodule.o build/ temp.macosx-10.3-i386-2.4/Lib/fftpack/src/zfft.o build/ temp.macosx-10.3-i386-2.4/Lib/fftpack/src/drfft.o build/ temp.macosx-10.3-i386-2.4/Lib/fftpack/src/zrfft.o build/ temp.macosx-10.3-i386-2.4/Lib/fftpack/src/zfftnd.o build/ temp.macosx-10.3-i386-2.4/build/src.macosx-10.3-i386-2.4/ fortranobject.o -L/opt/local/lib -Lbuild/temp.macosx-10.3-i386-2.4 - ldfftpack -lfftw3 -o build/lib.macosx-10.3-i386-2.4/scipy/fftpack/ _fftpack.so" failed with exit status 1


Thanks in advance,
Mark

--
Mark Asbach
Institut für Nachrichtentechnik, RWTH Aachen University
http://www.ient.rwth-aachen.de/cms/team/m_asbach

_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to