Re: [SciPy-user] Scipy on Python 2.5 / OS X 10.4.8
On 2/16/07, scipy-user-request@scipy.org <scipy-user-request@scipy.org> wrote:
----------------------------------------------------------------------
Message: 1 Date: Fri, 16 Feb 2007 11:15:35 +0100 From: Niklas Saers <niklassaers@gmail.com> Subject: [SciPy-user] Scipy on Python 2.5 / OS X 10.4.8 To: SciPy Users List <scipy-user@scipy.org> Message-ID: <D96375DC-3140-4B1A-8108-3BD0A52937BD@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi guys, has anyone successfully compiled Scipy for Python 2.5 under Mac OS X 10.4.8? I notice that the binaries on the webpage only support up to Python 2.4 so I would like to build them. However, running "python setup.py build" I get:
g95 -L/sw/lib build/temp.macosx-10.3-fat-2.5/build/src.macosx-10.3- fat-2.5/Lib/fftpack/_fftpackmodule.o build/temp.macosx-10.3-fat-2.5/ Lib/fftpack/src/zfft.o build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/ drfft.o build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zrfft.o build/ temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zfftnd.o build/ temp.macosx-10.3-fat-2.5/build/src.macosx-10.3-fat-2.5/ fortranobject.o -Lbuild/temp.macosx-10.3-fat-2.5 -ldfftpack -o build/ lib.macosx-10.3-fat-2.5/scipy/fftpack/_fftpack.so /sw/lib/odcctools590/bin/ld: Undefined symbols: _PyArg_ParseTupleAndKeywords _PyCObject_AsVoidPtr _PyCObject_Type _PyComplex_Type _PyDict_SetItemString _PyErr_Clear _PyErr_Format _PyErr_NewException _PyErr_Occurred _PyErr_Print _PyErr_SetString _PyExc_ImportError _PyExc_RuntimeError _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 _PyMem_Free _PyObject_Str _PyObject_Type _PyString_AsString _PyString_ConcatAndDel _Py_FindMethod __PyObject_New _MAIN_ /sw/lib/odcctools590/bin/ld: Undefined symbols: _PyArg_ParseTupleAndKeywords _PyCObject_AsVoidPtr _PyCObject_Type _PyComplex_Type _PyDict_SetItemString _PyErr_Clear _PyErr_Format _PyErr_NewException _PyErr_Occurred _PyErr_Print _PyErr_SetString _PyExc_ImportError _PyExc_RuntimeError _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 _PyMem_Free _PyObject_Str _PyObject_Type _PyString_AsString _PyString_ConcatAndDel _Py_FindMethod __PyObject_New _MAIN_ error: Command "g95 -L/sw/lib build/temp.macosx-10.3-fat-2.5/build/ src.macosx-10.3-fat-2.5/Lib/fftpack/_fftpackmodule.o build/ temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zfft.o build/ temp.macosx-10.3-fat-2.5/Lib/fftpack/src/drfft.o build/ temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zrfft.o build/ temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zfftnd.o build/ temp.macosx-10.3-fat-2.5/build/src.macosx-10.3-fat-2.5/ fortranobject.o -Lbuild/temp.macosx-10.3-fat-2.5 -ldfftpack -o build/ lib.macosx-10.3-fat-2.5/scipy/fftpack/_fftpack.so" failed with exit status 1
I have no idea of why it sais 10.3 rather than 10.4, but perhaps this is not the OS version? I use FFTW 2.1.5 after the website recommended the 2.1 branch for performance over 3.0 and I'm going to be using FFTs a lot
Could anyone help me out? :-)
I just wanted to chime in that I have had the same problem on a PPC Mac and on an Intel Mac. My workaround with the iBook (PPC) was to compile Python 2.5 from source. I'll probably do the same on my MBP (Intel), but that's rather inconvenient. It'd make me quite happy if someone could help Nik and I. As an aside, on my MBP, I am testing (for work) the Python 2.3 that shipped with OSX 10.4. Despite the numerous warnings I've found online not to use it, I have found that numpy, scipy, and matplotlib work just fine with 2.3, but I will have to do The Readline Fix in order to make interactive sessions at the command-line usable. Thanks, Nick
participants (1)
-
Nick Fotopoulos