Error on importing basemap 0.9.8

Hi

After updating to basemap-0.9.8 I'm getting the following error when
trying to import the basemap module on Intel Mac OS X Leopard using
Python-2.5.1 from MacPorts

Python 2.5.1 (r251:54863, Nov 22 2007, 18:02:58)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

from matplotlib.toolkits import basemap

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py",
line 1, in <module>
    from basemap import __doc__, __version__
  File "/opt/local/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py",
line 31, in <module>
    import _geos, pupynere
  File "/opt/local/lib/python2.5/site-packages/matplotlib/toolkits/basemap/pupynere.py",
line 36, in <module>
    from dap.client import open as open_remote
  File "/opt/local/lib/python2.5/site-packages/dap/__init__.py", line
12, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
ImportError: No module named pkg_resources

Am I missing a required module?

Cheers

Adam

Looks like you need setuptools

http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install

···

On Dec 5, 2007 9:13 PM, Adam Mercer <ramercer@...287...> wrote:

ImportError: No module named pkg_resources

Am I missing a required module?

Thanks John, installing setuptools did the trick.

Cheers

Adam

···

On Dec 5, 2007 10:30 PM, John Hunter <jdh2358@...287...> wrote:

Looks like you need setuptools

EasyInstall - The PEAK Developers' Center