[Mne_analysis] Issue with example in mne.datasets.eegbci.data_path()

Dan McCloy dan at mccloy.info
Fri Mar 6 12:26:03 EST 2020
Search archives:

        External Email - Use Caution        

The error is complaining about a `.part` file (i.e., partial download).  Did you abort downloading on an earlier attempt, before you got this error?  Does it work if you delete the `.part` file and try again?

-- dan
Daniel McCloy
https://dan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, March 6, 2020 7:52 AM, Ramiro Gatti <rgatti at ingenieria.uner.edu.ar> wrote:

>         External Email - Use Caution
>
> Yes, [that way](https://mne.tools/dev/generated/mne.datasets.eegbci.load_data.html#mne.datasets.eegbci.load_data) it works. But theoretically the other script should also work based on the [description of the function](https://github.com/mne-tools/mne-python/blob/22dfbb5c55f09b88f595dd5c6d83dac71335df97/mne/datasets/eegbci/eegbci.py#L46). I do not understand what is wrong.
>
> Ramiro Gatti
> PhD Fellow
> [IBB-CONICET](https://www.conicet.gov.ar/new_scp/detalle.php?id=26815&info_general=yes&inst=yes) | [LIRINS](http://www.ingenieria.uner.edu.ar/grupos/lirins/) | [FI](http://www.ingenieria.uner.edu.ar/)[UNER](http://www.uner.edu.ar/)
>
> El vie., 6 mar. 2020 a las 12:34, Brunner, Clemens (clemens.brunner at uni-graz.at) (<clemens.brunner at uni-graz.at>) escribió:
>
>>         External Email - Use Caution
>>
>> Hello!
>>
>> Did you try eegbci.load_data instead of eegbci.data_path (according to the docs https://mne.tools/dev/generated/mne.datasets.eegbci.load_data.html#mne.datasets.eegbci.load_data)? What do you want to do in the first place?
>>
>> Clemens
>>
>>> On 06.03.2020, at 16:25, Ramiro Gatti <rgatti at ingenieria.uner.edu.ar> wrote:
>>>
>>>         External Email - Use Caution
>>>
>>>
>>> Hello,
>>> I am trying to run a script based on the example in method data_path from mne.datasets.eegbci:
>>>
>>> >>> import os
>>> >>> from mne.datasets import eegbci
>>> >>>
>>> >>> url = 'https://physionet.org/files/eegmmidb/1.0.0/'
>>> >>> eegbci.data_path(url, os.getenv('HOME') + '/datasets')
>>>
>>> and get the following error:
>>> ...
>>> File "/home/user/venv/torch/lib/python3.7/site-packages/mne/utils/fetching.py", line 173, in _fetch_file
>>>     shutil.move(temp_file_name, file_name)
>>>   File "/home/user/venv/torch/lib/python3.7/shutil.py", line 564, in move
>>>     raise Error("Destination path '%s' already exists" % real_dst)
>>> shutil.Error: Destination path '/home/user/datasets/MNE-eegbci-data/files/eegmmidb/1.0.0/.part' already exists
>>>
>>> I clarify that the folder did not previously exist.
>>> What could be the problem?
>>>
>>> Best regards,
>>>
>>> Ramiro Gatti
>>> PhD Fellow
>>> IBB-CONICET | LIRINS | FIUNER
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200306/f462de08/attachment.html 


More information about the Mne_analysis mailing list