[Distutils] easy_install path

Michael Hearne mhearne at usgs.gov
Thu May 1 18:53:52 CEST 2008


I'm having a problem with easy_install and a library I just installed.

I have a Mac OS 10.5 (Leopard), and I used the SciPy SuperPack  
installer (http://macinscience.org/?page_id=6)  to install a whole  
bunch of scientific packages, including matplotlib.

I then used easy_install to install Basemap, which is a "toolkit"  
based on matplotlib.  The usual instructions for Basemap have the  
import statement like this:

from matplotlib.toolkits.basemap import Basemap

However, when I try this in Python, I get an ImportError.

This obviously has something to do with the path that Python uses to  
find libraries, and I found an easy_install.pth file that looks like  
this:
------------------------------------------------------------------
./setuptools-0.6c8-py2.5.egg
./readline-2.5.1-py2.5-macosx-10.5-i386.egg
./ipython-0.8.3.svn.r3001-py2.5.egg
./numpy-1.1.0.dev5077-py2.5-macosx-10.3-i386.egg
./matplotlib-0.98pre-py2.5-macosx-10.3-i386.egg
./scipy-0.7.0.dev4174-py2.5-macosx-10.3-i386.egg
./pymc-2.0DEV_r709-py2.5-macosx-10.3-i386.egg
./nose-0.10.1-py2.5.egg
./basemap-0.9.9.1-py2.5-macosx-10.5-i386.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:];  
p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egg
insert = p+len(new)
------------------------------------------------------------------

Any clues as to what is going on, and how I can fix the problem?

Thanks,

Mike


------------------------------------------------------
Michael Hearne
mhearne at usgs.gov
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------




More information about the Distutils-SIG mailing list