SciPy install error

Christopher W. MacMinn cmac at MIT.EDU
Wed Jul 18 11:32:34 PDT 2007


> I'm trying to get up-and-running with Python for scientific- 
> computing purposes, and I'm running into an error with installation  
> of the SciPy package:
>
> --->  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.


OK, I seem to have solved that problem -- apparently it is a known  
issue with NumPy:

http://www.nabble.com/Re%3A-Failed%3A-phase-compiling%3A-scipy- 
py25-0.5.2-3-failed-p11024299.html

Accordingly, I replaced the call to get_path with a call to  
get_path_from_frame in /opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_ 
py-scipy/work/scipy-0.5.2/Lib/odr/setup.py

But... I now have a new problem (which is hopefully not a result of  
my "fix" for the old problem).  The new error is as follows:


--->  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_python_ 
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

Error: Status 1 encountered during processing.


As before, any help would be greatly appreciated.  Thanks!

Best
- Chris



More information about the macports-users mailing list