cedadev / jasmin_scivm

9 stars 0 forks source link

install httplib2 package and add as RPM dependency for python27-Pydap #127

Closed alaniwi closed 7 years ago

alaniwi commented 7 years ago

in python2.7, "pydap" is missing httplib2 dependency:

from pydap.client import open_url File "/usr/lib/python2.7/site-packages/pydap/client.py", line 17, in from pydap.proxy import * File "/usr/lib/python2.7/site-packages/pydap/proxy.py", line 10, in from pydap.util.http import request File "/usr/lib/python2.7/site-packages/pydap/util/http.py", line 5, in import httplib2 ImportError: No module named httplib2

NB pydap RPM is python27-Pydap-3.1.RC1-2.ceda.el6.noarch

alaniwi commented 7 years ago

Fixed but another dependency problem: No module named webob.request

alaniwi commented 7 years ago

And:

pkg_resources.DistributionNotFound: The 'singledispatch' distribution was not found and is required by the application
alaniwi commented 7 years ago

Supplied singledispatch as well. Now looking good:

>>> from pydap.client import open_url
>>> d = open_url("http://remotetest.unidata.ucar.edu/dts/test.01")
>>> d.attributes
{'NC_GLOBAL': {}, 'DODS_EXTRA': {}, u'Facility': {u'DataCenter': 'COAS Environmental Computer Facility', u'PrincipleInvestigator': ['Mark Abbott', 'Ph.D'], u'DrifterType': 'MetOcean WOCE/OCM'}}