cbrnr / mnelab

MNELAB – a GUI for MNE
BSD 3-Clause "New" or "Revised" License
239 stars 69 forks source link

MNELAB on windows11 does not work #366

Closed allwaysFindFood closed 1 year ago

allwaysFindFood commented 1 year ago

Hi~I need help. I installed mnelab on windows 11, started MNELAB in a terminal with mnelab, but nothing happend. No error message, no window. code like this:

pip install mnelab 
pip install mnelab[full]  (uninstalled above)
pip install git+https://github.com/cbrnr/mnelab  (uninstalled above)

I usd conda install mnelab, and started MNELAB in a terminal with mnelab, No windows, but showed some message:

Traceback (most recent call last):
  File "C:\Users\anaconda3\envs\mne_mne\Scripts\mnelab-script.py", line 6, in <module>
    from mnelab.__main__ import main
  File "C:\Users\anaconda3\envs\mne_mne\lib\site-packages\mnelab\__init__.py", line 11, in <module>
    from .mainwindow import MainWindow
  File "C:\Users\anaconda3\envs\mne_mne\lib\site-packages\mnelab\mainwindow.py", line 30, in <module>
    from .viz import plot_erds
  File "C:\Users\anaconda3\envs\mne_mne\lib\site-packages\mnelab\viz.py", line 8, in <module>
    from mne.viz.utils import center_cmap
ImportError: cannot import name 'center_cmap' from 'mne.viz.utils' (C:\Users\anaconda3\envs\mne_mne\lib\site-packages\mne\viz\utils.py)

Think you!

cbrnr commented 1 year ago

How did you install Python (and which version)?

allwaysFindFood commented 1 year ago

I use conda create .... Python version is 3.9.15

cbrnr commented 1 year ago

I don't think MNELAB is working with conda (yet), because PySide6 is still not available. Mixing conda and pip is always asking for trouble, so could you please try to install Python 3.10 from the official installers and then try again with pip install mnelab?

cbrnr commented 1 year ago

I just tried it on Windows 11 and it worked for me. Can you try starting MNELAB as follows:

python -m mnelab

You should then see a detailed error message. I suspect that you might have an old Matplotlib version. You need >= 3.6.2, versions 3.6.0 and 3.6.1 do not work.

allwaysFindFood commented 1 year ago

I installed Python 3.10 from the official installers not using conda and then try withpip install mnelab. It's worked ! I tryed with python -m mnelab on a conda env, It's also worked! Thank you !

cbrnr commented 1 year ago

Nice, you're welcome!