HDFGroup / datacontainer

Data Container Study
Other
8 stars 1 forks source link

Add PyDAP for iPython parallel engines. #34

Closed hyoklee closed 8 years ago

hyoklee commented 8 years ago

It will be handy for Hyrax testing.

jreadey commented 8 years ago

There's no official py3.4 build for PyDap. hyoklee@, can you try out this PR and see if it works for us: https://github.com/robertodealmeida/pydap/pull/9?

hyoklee commented 8 years ago

@jreadey Haven't you already integrated PyDAP for Python3 so that HDF Compass can work with Python 3?

jreadey commented 8 years ago

No, Compass is using Python 2.7. But that came up in the discussion of moving Compass to Py3.

hyoklee commented 8 years ago

I tried the branch but I get the following error:

(py34)ubuntu@issue32:~/src/issue32$ python test.py
Traceback (most recent call last):
  File "test.py", line 9, in <module>
    dataset = open_url(file_path)
  File "/home/ubuntu/anaconda/envs/py34/lib/python3.4/site-packages/Pydap-3.2-p\
y3.4.egg/pydap/client.py", line 58, in open_url
    dataset = DAPHandler(url).dataset
  File "/home/ubuntu/anaconda/envs/py34/lib/python3.4/site-packages/Pydap-3.2-p\
y3.4.egg/pydap/handlers/dap.py", line 52, in __init__
    dds = r.text.decode('ascii')
AttributeError: 'str' object has no attribute 'decode'
hyoklee commented 8 years ago

I created a snapshot called "issue34" that contains PyDAP. Can @jreadey restart ipengines with this image and run https://github.com/HDFGroup/datacontainer/blob/master/filters/summary_hyrax.py in parallel?