目前问题有点多。先记录下来这个bug,日后解决(在Docker环境下)
在调试plot_bcic_iv_2a_moabb_trial.py
时,出现以下error:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pudb/__init__.py", line 153, in runscript
dbg._runscript(mainpyfile)
File "/usr/local/lib/python3.6/dist-packages/pudb/debugger.py", line 468, in _runscript
self.run(statement)
File "/usr/lib/python3.6/bdb.py", line 434, in run
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "plot_bcic_iv_2a_moabb_trial.py", line 41, in <module>
dataset = MOABBDataset(dataset_name="BNCI2014001", subject_ids=[subject_id])
File "/code/braindecode/datasets/moabb.py", line 95, in __init__
raws, description = fetch_data_with_moabb(dataset_name, subject_ids)
File "/code/braindecode/datasets/moabb.py", line 82, in fetch_data_with_moabb
return _fetch_and_unpack_moabb_data(dataset, subject_id)
File "/code/braindecode/datasets/moabb.py", line 28, in _fetch_and_unpack_moabb_data
data = dataset.get_data(subject_ids)
File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/base.py", line 104, in get_data
data[subject] = self._get_single_subject_data(subject)
File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 642, in _get_single_subject_data
sessions = load_data(subject=subject, dataset=self.code, verbose=False)
File "<decorator-gen-446>", line 20, in load_data
File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 107, in load_data
baseurl_list[dataset], verbose)
File "<decorator-gen-447>", line 20, in _load_data_001_2014
File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 131, in _load_data_001_2014
filename = data_path(url, path, force_update, update_path)
File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 24, in data_path
dl.data_path(url, 'BNCI', path, force_update, update_path, verbose)
File "<decorator-gen-445>", line 21, in data_path
File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/download.py", line 62, in data_path
_fetch_file(url, destination, print_destination=False)
File "<decorator-gen-3>", line 21, in _fetch_file
File "/usr/local/lib/python3.6/dist-packages/mne/utils/fetching.py", line 122, in _fetch_file
_get_http(url, temp_file_name, initial_size, timeout, verbose_bool)
File "/usr/local/lib/python3.6/dist-packages/mne/utils/fetching.py", line 48, in _get_http
response = request.urlopen(req).read()#response = request.urlopen(req).read(request.Request(url), timeout=timeout)
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
初步分析问题是由于 the great wall的限制访问不到moabb benchmark的数据集,故尝试离线下载并尝试load。dataloader函数入口未更新,解决方法为重写dataloader函数或在已有dataloader上做重定向载入local 数据集。日后解决~
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。