Closed gemeinl closed 3 years ago
what script does use this? we should not use any private function here
It happens in convert_tuh_to_bids.py
and is an import in moabb.
Here is the traceback
Traceback (most recent call last):
File "/home/lukas/Code/meeg-brain-age-benchmark-paper/convert_tuh_to_bids.py", line 21, in <module>
from braindecode.datasets import TUHAbnormal
File "/home/lukas/Code/braindecode/braindecode/datasets/__init__.py", line 5, in <module>
from .moabb import MOABBDataset, HGD, BNCI2014001
File "/home/lukas/Code/braindecode/braindecode/datasets/moabb.py", line 14, in <module>
from moabb.datasets import Schirrmeister2017, BNCI2014001
File "/home/lukas/miniconda3/envs/benchmark/lib/python3.9/site-packages/moabb/datasets/__init__.py", line 8, in <module>
from .alex_mi import AlexMI
File "/home/lukas/miniconda3/envs/benchmark/lib/python3.9/site-packages/moabb/datasets/alex_mi.py", line 7, in <module>
from . import download as dl
File "/home/lukas/miniconda3/envs/benchmark/lib/python3.9/site-packages/moabb/datasets/download.py", line 12, in <module>
from mne.utils import _fetch_file, _url_to_local_path, verbose
ImportError: cannot import name '_fetch_file' from 'mne.utils' (/home/lukas/Code/mne-python/mne/utils/__init__.py)
arff it's because moabb was using an mne private function :(
I guess moabb need to be adjusted now...
using moabb master branch should fix your pb https://github.com/NeuroTechX/moabb/pull/235
Conversion to bids format will fail with mne 0.24.dev since
mne.utils._fetch_file
was removed.