in an ubuntu 14.04, the default python requests lib is too low. It raises the following error:
print(dTraceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/dhub/datasets.py", line 38, in __init__
self.refresh()
File "/usr/local/lib/python3.4/dist-packages/dhub/datasets.py", line 111, in refresh
self.datasets = {d['url_prefix']: dict(definition=d, token=self.token, token_info=self.token_info, server_info=self.server_info, owner=self) for d in self._get_json("datasets")}
File "/usr/local/lib/python3.4/dist-packages/dhub/wrapper/api_wrapper.py", line 115, in _get_json
return self.__do_json_request(requests.get, rel_url, extra_data, json_data).json()
File "/usr/local/lib/python3.4/dist-packages/dhub/wrapper/api_wrapper.py", line 50, in fun
raise last_exception
File "/usr/local/lib/python3.4/dist-packages/dhub/wrapper/api_wrapper.py", line 43, in fun
result = func_wrap(obj, *args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/dhub/wrapper/api_wrapper.py", line 100, in __do_json_request
response = method("{}/{}".format(self.api_url, rel_url), json=json_data, params=data, timeout=TIMEOUT)
File "/usr/lib/python3/dist-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'
it would be a good idea to require at least requests-2.18.4
in an ubuntu 14.04, the default python requests lib is too low. It raises the following error:
it would be a good idea to require at least
requests-2.18.4