deepsleepnet icon indicating copy to clipboard operation
deepsleepnet copied to clipboard

Problem in prepare_physionet.py

Open ghost opened this issue 5 years ago • 1 comments

Hello akaraspt,

Thank you for your contribution. I got the following error when trying to run the code:

Traceback (most recent call last): File "prepare_physionet.py", line 15, in from mne import Epochs, pick_types, find_events File "L:\Programs\anaconda3\envs\env_py2\lib\site-packages\mne_init_.py", line 22, in from .utils import (set_log_level, set_log_file, verbose, set_config, File "L:\Programs\anaconda3\envs\env_py2\lib\site-packages\mne\utils_init_.py", line 23, in from .fetching import _fetch_file, _url_to_local_path File "L:\Programs\anaconda3\envs\env_py2\lib\site-packages\mne\utils\fetching.py", line 11, in from urllib import parse, request ImportError: cannot import name parse

It seems the dependency library is out of date? Is there any way to counter the problem? Thank you so much.

ghost avatar Jun 04 '19 23:06 ghost

Did you use a different version of Python? The repo is written with Python 2.7.

akaraspt avatar Nov 10 '19 02:11 akaraspt