- MNE version: dev 1.2
- operating system: Windows 10
I am following the fnirs preprocessing tutorial:
raw = read_hitachi(['Data/S11/S11_MES_Probe1.csv', 'Data/S11/S11_MES_Probe2.csv']) # both hemis.
montage11 = self_montage(file_path='Data/S11/0001.pos', csv_file='Data/S11/0001_edit.csv') # both hemis.
# montage11_1 = self_montage(file_path='Data/S11/0001.pos', csv_file='Data/S11/probe1_channel_montage.csv') # only left hemisphere
raw.set_montage(montage11) # both hemis.
fig = mne.viz.plot_sensors(raw.info, kind='3d')
fig.savefig('Data/S11/my_figure.png') # looks fine
raw.load_data()
mne.datasets.fetch_fsaverage(subjects_dir=None, verbose=True)
brain = mne.viz.Brain('fsaverage', subjects_dir=None, background='white', cortex='0.5')
brain.add_sensors(raw.info, trans='fsaverage', fnirs=['channels','pairs','sources', 'detectors'])
brain.show_view(azimuth=20, elevation=90, distance=800)
brain.save_image('Data/S11/sensors.png')
Unfortunately, the sensors are not plotted as in the tutorial fnirs preprocessing describes but it only gives back the brain template and a huge Traceback.
The Traceback is the following:
0 files missing from root.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data
0 files missing from bem.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data\fsaverage
Traceback (most recent call last):
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\qtpy\__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fNIRS_preprocessing.py", line 133, in <module>
brain = mne.viz.Brain('fsaverage', subjects_dir=None, background='white', cortex='0.5')
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\mne\viz\_brain\_brain.py", line 357, in __init__
self._renderer = _get_renderer(name=self._title, size=size,
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\mne\viz\backends\renderer.py", line 42, in _get_renderer
_get_3d_backend()
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\mne\viz\backends\renderer.py", line 164, in _get_3d_backend
_reload_backend(name)
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\mne\viz\backends\renderer.py", line 31, in _reload_backend
backend = importlib.import_module(name=_backend_name_map[backend_name],
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\impor
tlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\mne\viz\backends\_qt.py", line 16, in <module>
from pyvistaqt.plotting import FileDialog, MainWindow
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\pyvistaqt\plotting.py", line 58, in <module>
from qtpy import QtCore
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local
-packages\Python38\site-packages\qtpy\__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
C:\Users\rebec\fNIRS-project>python3 fNIRS_preprocessing.py
Loading C:\Users\rebec\fNIRS-project\Data\S11\S11_MES_Probe1.csv
Reading Hitachi fNIRS file version 1.25
Constructing pairing matrix for ETG-7000 (3x5)
Loading C:\Users\rebec\fNIRS-project\Data\S11\S11_MES_Probe2.csv
Reading Hitachi fNIRS file version 1.25
Constructing pairing matrix for ETG-7000 (3x5)
Using matplotlib as 2D backend.
Reading 0 ... 22346 = 0.000 ... 2234.600 secs...
0 files missing from root.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data
0 files missing from bem.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data\fsaverage
Traceback (most recent call last):
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\qtpy\__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fNIRS_preprocessing.py", line 131, in <module>
brain = mne.viz.Brain('fsaverage', subjects_dir=None, background='white', cortex='0.5')
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\_brain\_brain.py", line 357, in __init__
self._renderer = _get_renderer(name=self._title, size=size,
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\renderer.py", line 42, in _get_renderer
_get_3d_backend()
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\renderer.py", line 164, in _get_3d_backend
_reload_backend(name)
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\renderer.py", line 31, in _reload_backend
backend = importlib.import_module(name=_backend_name_map[backend_name],
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\importlib\__init_
_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\_qt.py", line 16, in <module>
from pyvistaqt.plotting import FileDialog, MainWindow
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\pyvistaqt\plotting.py", line 58, in <module>
from qtpy import QtCore
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\qtpy\__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
C:\Users\rebec\fNIRS-project>python3 fNIRS_preprocessing.py
Loading C:\Users\rebec\fNIRS-project\Data\S11\S11_MES_Probe1.csv
Reading Hitachi fNIRS file version 1.25
Constructing pairing matrix for ETG-7000 (3x5)
Loading C:\Users\rebec\fNIRS-project\Data\S11\S11_MES_Probe2.csv
Reading Hitachi fNIRS file version 1.25
Constructing pairing matrix for ETG-7000 (3x5)
Using matplotlib as 2D backend.
Reading 0 ... 22346 = 0.000 ... 2234.600 secs...
0 files missing from root.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data
0 files missing from bem.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data\fsaverage
Traceback (most recent call last):
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\qtpy\__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fNIRS_preprocessing.py", line 131, in <module>
brain = mne.viz.Brain('fsaverage', subjects_dir=None, background='white', cortex='0.5')
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\_brain\_brain.py", line 357, in __init__
self._renderer = _get_renderer(name=self._title, size=size,
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\renderer.py", line 42, in _get_renderer
_get_3d_backend()
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\renderer.py", line 164, in _get_3d_backend
_reload_backend(name)
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\renderer.py", line 31, in _reload_backend
backend = importlib.import_module(name=_backend_name_map[backend_name],
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\importlib\__init_
_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\mne\viz\backends\_qt.py", line 16, in <module>
from pyvistaqt.plotting import FileDialog, MainWindow
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\pyvistaqt\plotting.py", line 58, in <module>
from qtpy import QtCore
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Py
thon38\site-packages\qtpy\__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
C:\Users\rebec\fNIRS-project>python3 fNIRS_preprocessing.py
Loading C:\Users\rebec\fNIRS-project\Data\S11\S11_MES_Probe1.csv
Reading Hitachi fNIRS file version 1.25
Constructing pairing matrix for ETG-7000 (3x5)
Loading C:\Users\rebec\fNIRS-project\Data\S11\S11_MES_Probe2.csv
Reading Hitachi fNIRS file version 1.25
Constructing pairing matrix for ETG-7000 (3x5)
Reading 0 ... 22346 = 0.000 ... 2234.600 secs...
0 files missing from root.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data
0 files missing from bem.txt in C:\Users\rebec\mne_data\MNE-fsaverage-data\fsaverage
Traceback (most recent call last):
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\qtpy\__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fNIRS_preprocessing.py", line 128, in <module>
brain = mne.viz.Brain('fsaverage', subjects_dir=None, background='white', cortex='0.5')
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\mne\viz\_brain\_brain.py", line 357, in __init__
self._renderer = _get_renderer(name=self._title, size=size,
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\mne\viz\backends\renderer.py", line 42, in _get_renderer
_get_3d_backend()
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\mne\viz\backends\renderer.py", line 164, in _get_3d_backend
_reload_backend(name)
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\mne\viz\backends\renderer.py", line 31, in _reload_backend
backend = importlib.import_module(name=_backend_name_map[backend_name],
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\mne\viz\backends\_qt.py", line 16, in <module>
from pyvistaqt.plotting import FileDialog, MainWindow
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pyvistaqt\plotting.py", line 58, in <module>
from qtpy import QtCore
File "C:\Users\rebec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\qtpy\__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
What is the problem here?
I want to thank you again in advance for your outstanding support!