[Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework

Samuel M. Smith smithsm at samuelsmith.org
Thu Aug 11 18:15:32 CEST 2005


Maybe I am being stupid but I tried to install scipy on 10.4.2 using  
Bob Ippolito's Framework python 2.4.1
and following the directions on the scipy website for os x http:// 
www.scipy.org/Members/fonnesbeck/osx_build.txt/

I first installed python 2.4.1 and several of the packages from Bob's  
site
http://undefined.org/python/#python
and from the python packages
http://pythonmac.org/packages/

I only installed packages that said they were compatible with Tiger  
and 2.4.1

I changed my PATH shell variable to
 >echo $PATH
/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin

so that python from the command line  runs python 2.4.1

Installing
Numeric 23.7,
numarry 1.1.1
g77 3.4,
fftw 2.15,
f2py 2.45,
aquaterm 1.0b2
gnuplot 4.0

all went smoothly
The ploblem occurred with
scipy 0.3.2

The setup instructions say one might need to remove
if sys.platform == 'darwin':
   opt.append('cc_dynamic')

from the file gnufcompiler.py

prior to running python setup.py build

However that code snippet doesn't exist in the version of  
gnufcompiler.py in scipy complete 0.3.2.
The closest I could find was the following


if sys.platform=='darwin':
     if os.path.realpath(sys.executable).startswith('/System'):
         # This is when Python is from Apple framework
         opt.extend(["-Wl,-framework","-Wl,Python"])
     #else we are running in Fink python.
     opt.extend(["-lcc_dynamic","-bundle"])
else:
     opt.append("-shared")

Which looked like to me that someone had already accounted for the  
framework build so I didn't make any changes
to setup.py


Unfortunately setup.py build exits with the following error

collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyCObject_AsVoidPtr
_PyCObject_Type
_PyComplex_Type
_PyDict_GetItemString
_PyDict_SetItemString
_PyErr_Clear
_PyErr_NewException
_PyErr_Occurred
_PyErr_Print
_PyErr_SetString
_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_FatalError
_Py_InitModule4
__Py_NoneStruct
_fprintf$LDBLStub
_PyCObject_FromVoidPtr
_PyDict_DelItemString
_PyDict_New
_PyErr_Format
_PyExc_AttributeError
_PyExc_RuntimeError
_PyExc_TypeError
_PyObject_Free
_PyString_ConcatAndDel
_Py_FindMethod
__PyObject_New
_sprintf$LDBLStub
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/g77 -lcc_dynamic -bundle build/ 
temp.darwin-8.2.0-Power_Macintosh-2.4/build/src/Lib/fftpack/ 
_fftpackmodule.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/zfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/drfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/zrfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/zfftnd.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/ 
build/src/fortranobject.o -L/usr/local/lib -L/usr/local/lib/gcc/ 
powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.2.0- 
Power_Macintosh-2.4 -ldfftpack -lrfftw -lfftw -lg2c -o build/ 
lib.darwin-8.2.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so"  
failed with exit status 1


Anyone have any idea what the problem is.




**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************



More information about the Pythonmac-SIG mailing list