[SciPy-dev] issues with scipy and eggs

Robert Kern robert.kern at gmail.com
Sat Dec 10 20:43:22 CST 2005


Andrew Straw wrote:
> OK, with your changes, I have
> scipy_core-0.8.2.1625-py2.4-linux-x86_64.egg and
> scipy-0.4.3.1482-py2.4-linux-x86_64.egg.
> 
> But unfortunately not all is well. Here's my latest traceback. Note that
> all of scipy works when not installed as an egg, and all my other eggs
> work. This is with setuptools 0.6a8.
> 
> astraw at hdmg:~$ python
> -=-=-=-=-=-=-=-=-=-= python version info -=-=-=-=-=-=-=-=-=-=
> 2.4.1 /usr
> PYTHONPATH
> /home/astraw/py24-amd64/lib/python2.4/site-packages:/home/astraw/py24-amd64/lib/python2.4/site-packages/Numeric:/home/astraw/py24-amd64/lib/python2.4/site-packages/setuptools-0.6a8-py2.4.egg
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> Python 2.4.1 (#2, May  6 2005, 11:22:24)
> [GCC 3.3.6 (Debian 1:3.3.6-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> 
>>>>import scipy
> 
> /.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy_core-0.8.2.1625-py2.4-linux-x86_64.egg/scipy/__init__.py:24:
> UserWarning: Module scipy was already imported from
> /.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy_core-0.8.2.1625-py2.4-linux-x86_64.egg/scipy/__init__.pyc,
> but
> /.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy-0.4.3.1482-py2.4-linux-x86_64.egg
> is being added to sys.path
>   tmp_pkg_resources = __import__('pkg_resources')
> Importing test to scipy
> Importing base to scipy
> Importing basic to scipy
> 
>>>>import scipy.signal
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File
> "/.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy-0.4.3.1482-py2.4-linux-x86_64.egg/scipy/signal/__init__.py",
> line 11, in ?
>     from ltisys import *
>   File
> "/.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy-0.4.3.1482-py2.4-linux-x86_64.egg/scipy/signal/ltisys.py",
> line 13, in ?
>     import scipy.linalg as linalg
>   File
> "/.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy-0.4.3.1482-py2.4-linux-x86_64.egg/scipy/linalg/__init__.py",
> line 10, in ?
>     from basic import *
>   File
> "/.sharehome/astraw/py24-amd64/lib/python2.4/site-packages/scipy-0.4.3.1482-py2.4-linux-x86_64.egg/scipy/linalg/basic.py",
> line 18, in ?
>     from scipy.lib.lapack import get_lapack_funcs
> ImportError: No module named lapack

D'oh! Add the same fragment to scipy_core's scipy/lib/__init__.py and full
scipy's Lib/lib/__init__.py .

-- 
Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Scipy-dev mailing list