Tony Mannucci wrote:
> I tried to install basemap 0.9.8 on an OS X system (PPC, 10.4.10), 
> after installing matplotlib from the latest binary package (0.91.1). 
> I receive the following error:
>
>   
>> [matplotlib/basemap-0.9.8]|2> import matplotlib.toolkits.basemap
>> ---------------------------------------------------------------------------
>> ImportError                               Traceback (most recent call last)
>>
>> /Users/mannucci/Documents/python/matplotlib/basemap-0.9.8/<ipython 
>> console> in <module>()
>>
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py
>>  
>> in <module>()
>> ----> 1 from basemap import __doc__, __version__
>>       2 from basemap import *
>>
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py
>>  
>> in <module>()
>>      29 from matplotlib.cbook import is_scalar, dedent
>>      30 from shapelib import ShapeFile
>> ---> 31 import _geos, pupynere
>>      32
>>      33 # basemap data files now installed in 
>> lib/matplotlib/toolkits/basemap/data
>>
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/toolkits/basemap/pupynere.py
>>  
>> in <module>()
>>      34 from numpy import ndarray, empty, array, ma, squeeze
>>      35
>> ---> 36 from dap.client import open as open_remote
>>      37 from dap.dtypes import ArrayType, GridType, typemap
>>      38
>>
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/dap/__init__.py
>>  
>> in <module>()
>>       8
>>       9 For more information about the protocol, please check 
>> http://opendap.org.
>>      10 """
>>      11
>> ---> 12 __import__('pkg_resources').declare_namespace(__name__)
>>
>> ImportError: No module named pkg_resources
>>     
>
> It seems that the dap package did not completely install. Is there a 
> directory I should add to my sys.path? Thanks for your help!
>
> -Tony
>
>   
Tony:  There is a hidden dependency on the setuptools module in basemap 
0.9.8.  This will be fixed in 0.9.9, but in the meantime you can just 
install setuptools (http://python.org/pypi/setuptools).

-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 2005.
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

Reply via email to