SciPy Install failure: dfftpack not found
Help, Please! SciPy installation is giving me fits. After a recent HD crash, I'm trying to reinstall my Python system. Installing using he bash command in OS X 10.4.5 Foo:~/Desktop/scipy-0.4.6 bar$ sudo python setup.py bdist_egg proceeds just fine until it tries to compile the fftpack. The dfftpack can't be found, even tho the directory ./Lib/fftpack/ dfftpack exists and contains the Fortran source files. See ERROR below. The same error occurs for Foo:~/Desktop/scipy-0.4.6 bar$ sudo python setup.py install I've read and followed, I believe, the instructions from the Installation web page. The info for my Python system as it stands is given below. If there's any more diagnostic info needed, I'll be happy to pass it along. I'd appreciate any help in solving this problem. Thanks, --David Treadwell My Python system information: * ActivePython 2.4.2 Build 10 (ActiveState Corp.) based on Python 2.4.2 (#1, Jan 17 2006, 17:03:20) * GCC 3.3 20030304 (Apple Computer, Inc. build 1666) * fftw2.1.5 * g77 installation: Reading specs from /usr/local/lib/gcc/powerpc-apple- darwin7.9.0/3.4.4/specs Configured with: ../gcc/configure --enable-threads=posix -- enable-languages=f77 gcc version 3.4.4 *NumPy installation: <module 'numpy' from '~/Library/Python2.4/site-packages/numpy-0.9.5- py2.4-macosx-10.4-ppc.egg/numpy/__init__.pyc'> ERROR: /usr/bin/ld: can't locate file for: -ldfftpack collect2: ld returned 1 exit status /usr/bin/ld: can't locate file for: -ldfftpack collect2: ld returned 1 exit status error: Command "/usr/bin/g77 -undefined dynamic_lookup -bundle build/temp.darwin-8.5.0-Power_Macintosh-2.4/build/src/Lib/fftpack/ _fftpackmodule.o build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/ fftpack/src/zfft.o build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/ fftpack/src/drfft.o build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/ fftpack/src/zrfft.o build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/ fftpack/src/zfftnd.o build/temp.darwin-8.5.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.5.0- Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/ lib.darwin-8.5.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so" failed with exit status 1
David Treadwell wrote:
Help, Please! SciPy installation is giving me fits. After a recent HD crash, I'm trying to reinstall my Python system.
Chris Fonnesbeck was having the same problem over on the SciPy-dev list, so I'm just going to copy-and-paste my response to him: The dependency handling between numpy.distutils commands is not the greatest. Sometimes you have to specify all of the intermediate commands. For example, all of my build lines look like this (any other commands being elided by ...): $ python setup.py ... build_src build_clib build_ext build ... In particular, you are missing the build_clib command which will build libdfftpack.a for you. -- Robert Kern robert.kern@gmail.com "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter
On Feb 22, 2006, at 12:35 PM, Robert Kern wrote:
David Treadwell wrote:
Help, Please! SciPy installation is giving me fits. After a recent HD crash, I'm trying to reinstall my Python system.
Chris Fonnesbeck was having the same problem over on the SciPy-dev list, so I'm just going to copy-and-paste my response to him:
The dependency handling between numpy.distutils commands is not the greatest. Sometimes you have to specify all of the intermediate commands. For example, all of my build lines look like this (any other commands being elided by ...):
$ python setup.py ... build_src build_clib build_ext build ...
In particular, you are missing the build_clib command which will build libdfftpack.a for you.
Thanks for the help, Robert. The egg builds and installs just fine now with the commands $ sudo python setup.py build_clib bdist_egg $ sudo easy_install ~/Desktop/scipy-0.4.6/dist/scipy-0.4.6-py2.4- macosx-10.4-ppc.egg BUT... there is a problem with two of the modules: 'signal' and 'fftpack'. The build looks like it proceeded w/o error, but I could have missed something. The error looks similar to one you helped out with back in May 2005: http://www.scipy.net/pipermail/scipy-user/2005-May/ 004450.html , but I'm not sure it's what's going on here. I am using gcc3.3 and the latest release of NumPy and SciPy. One other possibility Google has suggested is a problem with python- ldap, which, frankly is beyond my understanding. :( http:// sourceforge.net/mailarchive/forum.php? forum_id=4346&max_rows=25&style=flat&viewmonth=200506 Any suggestions on this one? --DRT
import numpy import scipy scipy.test(10,1) import signal -> failed: Failure linking new module: /Users/drt/ Library/Python2.4/site-packages/scipy-0.4.6-py2.4-macosx-10.4-ppc.egg/ scipy/fftpack/_fftpack.so: Symbol not found: _fprintf$LDBLStub Referenced from: /Users/drt/Library/Python2.4/site-packages/ scipy-0.4.6-py2.4-macosx-10.4-ppc.egg/scipy/fftpack/_fftpack.so Expected in: dynamic lookup
import fftpack -> failed: Failure linking new module: /Users/drt/ Library/Python2.4/site-packages/scipy-0.4.6-py2.4-macosx-10.4-ppc.egg/ scipy/fftpack/_fftpack.so: Symbol not found: _fprintf$LDBLStub Referenced from: /Users/drt/Library/Python2.4/site-packages/ scipy-0.4.6-py2.4-macosx-10.4-ppc.egg/scipy/fftpack/_fftpack.so Expected in: dynamic lookup
participants (2)
-
David Treadwell -
Robert Kern