Jeff (or anyone) - I recently reinstalled all of my numpy/scipy  
related packages, including matplotlib, from a Mac OS X installer  
called the SciPy SuperPack.

(http://macinscience.org/?page_id=6)

All of the packages he includes work really well.

However, after I used easy_install to grab Basemap, I found I can't  
import it.  I was wondering if you could give me a pointer on how to  
tell Python where to look for Basemap?

Thanks,

Mike Hearne

My site-packages directory looks like this:
-rw-rw-r--   1 root  admin     119 Oct  5  2007 README
drwxr-xr-x  20 root  admin     680 Apr 30 16:43 basemap-0.9.9.1-py2.5- 
macosx-10.5-i386.egg
-rw-r--r--   1 root  admin     555 Apr 30 16:43 easy-install.pth
drwxr-xr-x   4 root  admin     136 Apr 30 16:49  
ipython-0.8.3.svn.r3001-py2.5.egg
drwxr-xr-x  12 root  admin     408 Apr 30 16:48 matplotlib-0.98pre- 
py2.5-macosx-10.3-i386.egg
drwxr-xr-x  11 root  admin     374 Apr 17 15:03 matplotlib-0.98pre- 
py2.5-macosx-10.5-i386.egg
drwxr-xr-x   5 root  admin     170 Apr 30 16:38 nose-0.10.1-py2.5.egg
drwxr-xr-x   4 root  admin     136 Apr 17 15:03 numpy-1.0.5.dev4954- 
py2.5-macosx-10.5-i386.egg
drwxr-xr-x   4 root  admin     136 Apr 30 16:48 numpy-1.1.0.dev5077- 
py2.5-macosx-10.3-i386.egg
drwxr-xr-x   4 root  admin     136 Apr 17 15:04 pymc-2.0DEV_r686-py2.5- 
macosx-10.3-i386.egg
drwxr-xr-x   4 root  admin     136 Apr 30 16:49 pymc-2.0DEV_r709-py2.5- 
macosx-10.3-i386.egg
drwxr-xr-x   6 root  admin     204 Apr 17 15:04 readline-2.5.1-py2.5- 
macosx-10.5-i386.egg
drwxr-xr-x   4 root  admin     136 Apr 17 15:04 scipy-0.7.0.dev4075- 
py2.5-macosx-10.5-i386.egg
drwxr-xr-x   4 root  admin     136 Apr 30 16:48 scipy-0.7.0.dev4174- 
py2.5-macosx-10.3-i386.egg
-rw-r--r--   1 root  admin  324858 Apr 17 15:03 setuptools-0.6c8- 
py2.5.egg
-rw-r--r--   1 root  admin      29 Apr 30 16:41 setuptools.pth

The easy-install.pth file looks like this:
import sys; sys.__plen = len(sys.path)
./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.__egginsert = p 
+len(new)



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to