Lionel Roubeyrie wrote: > Hi all, > don't sure it's the best way, but I have tried to install basemap via > easy_install. the installation works fine (after a export GEOS_DIR), but it > impossible to import it :-( Is there a special manipulation to get it > working? > Thanks > Lionel: Basemap can't be installed as an egg because it exists as a subpackage of matplotlib. In order for that to work properly, the toolkits have to be "namespace packages". This is fixed in svn for both matplotlib and basemap, so when the next version of matplotlib is released, I'll release a new basemap that can be installed as an egg. It will require some changes in your code though. Specifically, to import basemap you will need to do
from mpl_toolkits.basemap import Basemap instead of from matplotlib.toolkits.basemap import Basemap. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users