[SciPy-dev] issues with scipy and eggs

Andrew Straw strawman at astraw.com
Sat Dec 10 14:40:19 CST 2005


Hi,

Issue 1 - probably a minor bug with scipy distutils
===================================================

Attempting to build scipy (full) using "python setup.py bdist_egg" fails
on my machine with:

/usr/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/Lib/fftpack/_fftpackmodule.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zfft.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/drfft.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zrfft.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zfftnd.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o
-Lbuild/temp.linux-x86_64-2.4 -ldfftpack -lg2c-pic -o
build/lib.linux-x86_64-2.4/scipy/fftpack/_fftpack.so
/usr/bin/ld: cannot find -ldfftpack
collect2: ld returned 1 exit status
/usr/bin/ld: cannot find -ldfftpack
collect2: ld returned 1 exit status
error: Command "/usr/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/Lib/fftpack/_fftpackmodule.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zfft.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/drfft.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zrfft.o
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zfftnd.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o
-Lbuild/temp.linux-x86_64-2.4 -ldfftpack -lg2c-pic -o
build/lib.linux-x86_64-2.4/scipy/fftpack/_fftpack.so" failed with exit
status 1

However, "python setup.py build bdist_egg" works.  Is there something
wrong with scipy distutils that is causing this behavior?  I am happy to
provide more information if requested...

Issue 2 - how to use full scipy from an egg?
============================================

I can't figure out the incantation for using scipy (full) from an egg. 
AFAICT this should just work with "import scipy" because both the
scipy_core and scipy egg are in my easy-install.pth file.  But doing
"import scipy" only gets me scipy core.  Furthermore, Robert Kern
suggested the following, which does apparently find the full scipy egg,
but it doesn't  load full scipy.

(You can see below that I have a non-root install, but I don't think
this is an issue.  At least it hasn't been with other eggs.)

In [1]: import pkg_resources

In [2]: pkg_resources.require('SciPy')
Out[2]: [scipy 0.4.3.1482
(/.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy-0.4.3.1482-py2.4-linux-x86_64.egg)]

In [3]: import scipy
Importing test to scipy
Importing base to scipy
Importing basic to scipy

In [4]: import scipy.signal
---------------------------------------------------------------------------
exceptions.ImportError




More information about the Scipy-dev mailing list