Application Blocked
Access to the application you were trying to use has been blocked in accordance with HHMI policy IT-105.
Please contact HHMI Technical Support at ext. 4030 if you believe this is in error.
User: 10.36.11.34
Application: web-browsing
I'm getting an error when the running example code supplied for downloading a test dataset using SFMdaRecordingExtractor.
The traceback from the error is pasted below. Verbose options in mountainremoteclient.py (where the error occurs) have been turned ON. Looks like response to request.urlopen(url) is invalid? Is this a permissions issue? Let me know if it might be a problem on the requesting side.
Thanks!
jennifer
loading recording... _http_get_json::: http://pairio.org/get/spikeforest/61c9b2b17db77a27841bbeeabff923448b0f6388 url open response: <http.client.HTTPResponse object at 0x7f656dbb5630> Traceback (most recent call last): File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainremoteclient.py", line 175, in _http_get_json ret = json.load(req) File "/usr/lib/python3.5/json/init.py", line 268, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "download.py", line 12, in
recording = SFMdaRecordingExtractor(dataset_directory=recdir, download=True)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/spikeforest/extractors/sfmdaextractors/sfmdaextractors.py", line 33, in init
self._dataset_params = read_dataset_params(dataset_directory, params_fname)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/spikeforest/extractors/sfmdaextractors/sfmdaextractors.py", line 224, in read_dataset_params
fname2 = ca.realizeFile(path=fname1)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(*args, kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 545, in realizeFile
return self._realize_file(path=path, dest_path=dest_path, show_progress=show_progress, download_from=download_from, local_only=local_only, remote_only=remote_only)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1175, in _realize_file
path=path, local_only=local_only, resolve_locally=resolve_locally, dest_path=dest_path, show_progress=show_progress)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(*args, *kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1526, in realizeFile
sha1 = self.computeFileSha1(path=path)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(args, kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1586, in computeFileSha1
dd = self._parent.loadObject(path='sha1://' + sha1)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(*args, kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 653, in loadObject
subkey=subkey, local_first=local_first, collection=collection, download_from=download_from, local_only=local_only, remote_only=remote_only)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(*args, *kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 871, in loadText
key=key, path=path, subkey=subkey, local_first=local_first, collection=collection, download_from=download_from, local_only=local_only, remote_only=remote_only)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(args, kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 545, in realizeFile
return self._realize_file(path=path, dest_path=dest_path, show_progress=show_progress, download_from=download_from, local_only=local_only, remote_only=remote_only)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1195, in _realize_file
url, size = self._find_on_kachery_or_kbucket(download_from=df0, sha1=sha1)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1271, in _find_on_kachery_or_kbucket
kachery_url = self._resolve_kachery_url(download_from)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1230, in _resolve_kachery_url
return self._get_value_from_alias(name)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1145, in _get_value_from_alias
ret = self.getValue(key=vals[1], collection=vals[0])
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(*args, *kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 393, in getValue
collection=collection, local_first=local_first, check_alt=check_alt)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainclient.py", line 1134, in _get_value
key=key, subkey=subkey, collection=collection, url=self._pairio_url)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainremoteclient.py", line 42, in getValue
obj = _http_get_json(url0)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mtlogging/mtlogging.py", line 26, in wrapper
ret = function(args, **kwargs)
File "/opt/spikeforest/SF_venv/lib/python3.5/site-packages/mountainclient/mountainremoteclient.py", line 177, in _http_get_json
raise Exception('Unable to load json from url: ' + url)
Exception: Unable to load json from url: http://pairio.org/get/spikeforest/61c9b2b17db77a27841bbeeabff923448b0f6388