Starting with mne

External Email - Use Caution

Dear All,

I hope you are fine and in good health,

I am starting a new project, and I would like to use MNE,
I would like to compare OPM-MEG to SQUID MEG,
I know mne from past, but this is the first time that I want to install it and use it,

I saw that mne deal with OPM like:

https://mne.tools/dev/auto_examples/time_frequency/plot_source_power_spectrum_opm.html

I have some questions and thank you for your answering:

1) I would like to know if is possible to access the data, for example to look about how the OPM sensors are oriented,
in the script you put: subject<https://docs.python.org/3/library/stdtypes.html#str> = 'OPM_sample' so does it mean the sample data are accessable?
it is possible to get the lead field matrix? sorry if it is simple question because
I try to install the mne to see what the script should give but when I run it I have some errors, so the second question:

2) I installed anaconda version 3.7 and pycharm and I follow this link:
https://mne.tools/stable/install/mne_python.html

I run an example from mne, I get the below error:

C:\Users\zahransa\anaconda3\python.exe C:/Users/zahransa/PycharmProjects/opm/plot_opm_data.py
Using default location ~/mne_data for opm...
Downloading archive MNE-OPM-data.tar.gz to C:\Users\zahransa\mne_data
Error while fetching file https://osf.io/p6ae7/download?version=2. Dataset fetching aborted.
Traceback (most recent call last):
  File "C:/Users/zahransa/PycharmProjects/opm/plot_opm_data.py", line 20, in <module>
    data_path = mne.datasets.opm.data_path()
  File "<decorator-gen-411>", line 21, in data_path
  File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\datasets\opm\opm.py", line 21, in data_path
    download=download)
  File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\datasets\utils.py", line 395, in _data_path
    remove_archive, full = _download(path, u, an, h)
  File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\datasets\utils.py", line 453, in _download
    hash_=hash_, hash_type=hash_type)
  File "<decorator-gen-3>", line 21, in _fetch_file
  File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\utils\fetching.py", line 117, in _fetch_file
    _get_http(url, temp_file_name, initial_size, timeout, verbose_bool)
  File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\utils\fetching.py", line 43, in _get_http
    response = request.urlopen(request.Request(url), timeout=timeout)
  File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 525, in open
    response = self._open(req, data)
  File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 548, in _open
    'unknown_open', req)
  File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 1389, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: https>

another example:

C:\Users\zahransa\anaconda3\python.exe C:/Users/zahransa/PycharmProjects/opm/plot_mne_inverse_connectivity_spectrum.py
Traceback (most recent call last):
  File "C:/Users/zahransa/PycharmProjects/opm/plot_mne_inverse_connectivity_spectrum.py", line 13, in <module>
    import matplotlib.pyplot as plt
  File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\__init__.py", line 205, in <module>
    _check_versions()
  File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\__init__.py", line 190, in _check_versions
    from . import ft2font
ImportError: DLL load failed: Le module sp?cifi? est introuvable.

Thank you for your help,

Best regards
Saeed Zahran

External Email - Use Caution

The OPM data are public, and will be automatically downloaded to (by default) $HOME/mne_data/ when you call `mne.datasets.opm.data_path()` for the first time. That function will return the full path to the download location. Can you try running just that line directly in the python interpreter, rather than running the whole script? There are some reports that URLlib might behave differently in those two conditions (e.g., [here](https://stackoverflow.com/q/27115803/1664024)).

The other error looks like an error loading matplotlib, and suggests there was some installation problem (specifically with the ft2font dependency). See [here](https://stackoverflow.com/q/24251102/1664024). If I were in this situation I would probably just start over reinstalling MNE-Python, pay close attention to any warnings / errors that occur during installation, and then copy/paste those warnings/errors into a search engine. If that doesn't lead you to a solution, you can of course ask again here.

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

??? Original Message ???