Fought, Richard wrote:
Thanks for your response. I might be able to upgrade my prototype machine to Python 2.4, but I'm not sure about my customer's box.
Here is the listing from
Rich: That's it? I expected to see a basemap directory installed there. Can you send me a listing of the basemap directory in site-packages?
Directory listing of
drwxr-xr-x 4 root root 4096 Jan 4 17:33 dap
drwxr-xr-x 2 root root 4096 Jan 4 17:33 dbflib
-rwxr-xr-x 1 root root 258 Jan 4 17:33 dbflibc.py
-rwxr-xr-x 1 root root 614 Jan 4 17:33 dbflibc.pyc
-rwxr-xr-x 1 root root 74526 Jan 4 17:33 dbflibc.so
drwxr-xr-x 2 root root 4096 Jan 4 17:33 EGG-INFO
-rwxr-xr-x 1 root root 256 Jan 4 17:33 _geos.py
-rwxr-xr-x 1 root root 608 Jan 4 17:33 _geos.pyc
-rwxr-xr-x 1 root root 88557 Jan 4 17:33 _geos.so
drwxr-xr-x 2 root root 4096 Jan 4 17:33 httplib2
drwxr-xr-x 3 root root 4096 Jan 4 17:33 matplotlib
drwxr-xr-x 2 root root 4096 Jan 4 17:33 shapelib
-rwxr-xr-x 1 root root 260 Jan 4 17:33 shapelibc.py
-rwxr-xr-x 1 root root 620 Jan 4 17:33 shapelibc.pyc
-rwxr-xr-x 1 root root 92671 Jan 4 17:33 shapelibc.so
-rwxr-xr-x 1 root root 258 Jan 4 17:33 shptree.py
-rwxr-xr-x 1 root root 614 Jan 4 17:33 shptree.pyc
-rwxr-xr-x 1 root root 19958 Jan 4 17:33 shptree.so
As you can see, there is a matplotlib folder here with the following
I created a symbolic link to this basemap directory in the
matplotlib/toolkits directory and simpletest.py works now, though I
still get the warning message
gg/pytz/ __init__.py:29: UserWarning: Module matplotlib was already
imported from /usr/li
lotlib/_ _init__.pyc, but
/usr/lib/python2.3/site-packages/basemap-0.9.9-py2.3-linux-i686 .egg is
being added to sys.path
from pkg_resources import resource_stream
I guess the basemap installer just installed the toolkit in the wrong
Rich: I think this is happening because matplotlib (and the basemap toolkit) needs to use namespace packages (http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages) in order for the basemap stuff to be picked up from the matplotlib.toolkits namespace when basemap is installed as an egg. If it's installed using distutils (instead of setuptools), the basemap stuff just gets written in the matplotlib toolkits directory directly, and everything works fine.
I think namespace packages were being used before, but were removed. I don't remember why.
Until we get this fixed, I think your symlink trick is the only way to get it to work with python2.3. The warning message appears to be harmless.
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg