[SciPy-user] NameError on scipy import

Robert Kern robert.kern@gmail....
Thu Feb 1 17:18:44 CST 2007


Stephen Uhlhorn wrote:
> Strange... I cleaned out my build directory and the scipy site-package
> dir to make sure the files matched up... now it won't compile:
> 
> /usr/bin/ld: can't locate file for: -lcc_dynamic
> collect2: ld returned 1 exit status
> /usr/bin/ld: can't locate file for: -lcc_dynamic
> collect2: ld returned 1 exit status
> error: Command "/usr/local/bin/g77 -g -Wall -undefined dynamic_lookup
> -bundle build/temp.darwin-8.8.
> 0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o
> build/

You will need to use gfortran for a Universal build of Python on Tiger. g77 does
not build Universal binaries. See the instructions I give here:

http://projects.scipy.org/pipermail/numpy-discussion/2007-January/025368.html

> temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o
> build/temp.darwin-8.8.0-Power_Macintosh
> -2.4/Lib/fftpack/src/drfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o
> bui
> ld/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o
> build/temp.darwin-8.8.0-Power_Maci
> ntosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o
> -L/usr/local/lib -L/usr/local/l
> ib/gcc/powerpc-apple-darwin7.9.0/3.4.4
> -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lff
> tw3 -lg2c -lcc_dynamic -o
> build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so
> -lSys
> temStubs" failed with exit status 1
> 
> I tried making the changes to Lib/fftpack.setup.py according to the
> instructions, but no go... any ideas?

What instructions? (This has nothing to do with your problem, but I am unaware
of instructions which tell you to modify Lib/fftpack/setup.py and would like to
nail down any false information).

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list