easy_install basemap

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 :frowning: Is there a special manipulation to get it
working?
Thanks

路路路

--
Lionel Roubeyrie - lroubeyrie@...1068...
Charg茅 d'茅tudes et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr

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 :frowning: 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

Hello everyone,

I do not understand why the attached script fails one of my assertion checks. I do not seem to understand pylab.meshgrid and numpy arrays.

I looked at contour_demo.py in the basemap examples, but I have somehow missed my mistake.

Could someone elaborate.

Thanks,
-- jv

P.S.
FWIW, my system is:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'0.91.2'

shapes-mismatch.py (2.22 KB)

路路路