SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Tony M. <Ant...@jp...> - 2007年12月26日 19:16:07
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 Mannucci
Supervisor, Ionospheric and Atmospheric Remote Sensing Group
 Mail-Stop 138-308, Tel > (818) 354-1699
 Jet Propulsion Laboratory, Fax > (818) 393-5115
 California Institute of Technology, Email > Ton...@jp...
 4800 Oak Grove Drive, http://genesis.jpl.nasa.gov
 Pasadena, CA 91109
From: Jeff W. <js...@fa...> - 2007年12月26日 19:33:20
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /