Does MNE-Python no longer support MNE-realtime in 0.24.0?

  • MNE-Python version: 0.24.0

  • operating system: Ubuntu 20.04

  • package manager: miniconda3(4.10.3)

Using MNE-Python(0.24.0) and MNE-realtime(0.1.dev0), I tried to run this example.

But the following error has occurred


Traceback (most recent call last):

  File "/home/hayapo/OpenBCI_Brainflow/realtime_example/decoding_realtime_data.py", line 17, in <module>

    from mne_realtime import MockRtClient, RtEpochs

  File "/home/hayapo/.miniconda3/envs/OpenBCI_Brainflow/lib/python3.9/site-packages/mne_realtime/__init__.py", line 14, in <module>

    from .lsl_client import LSLClient

  File "/home/hayapo/.miniconda3/envs/OpenBCI_Brainflow/lib/python3.9/site-packages/mne_realtime/lsl_client.py", line 12, in <module>

    from mne.utils import fill_doc, _check_pylsl_installed

ImportError: cannot import name '_check_pylsl_installed' from 'mne.utils' (/home/hayapo/.miniconda3/envs/OpenBCI_Brainflow/lib/python3.9/site-packages/mne/utils/__init__.py)

In version 0.23.0, _check_pylsl_installed was defined in mne/utils/check.py,


def _check_pylsl_installed(strict=True):

    """Aux function."""

    try:

        import pylsl

        return pylsl

    except ImportError:

        if strict is True:

            raise RuntimeError('For this functionality to work, the pylsl '

                               'library is required.')

        else:

            return False

and _check_pylsl_installed was imported in mne/utils/__init__.py


from .check import (..., _check_pylsl_installed, ...)

However, _check_pylsl_installed has removed in PR#9742.

[MAINT, MRG] Enable pooch to perform fetching of datasets #9742.

So MNE-Python v0.24.0 no longer support MNE-realtime?

Sorry for my bad English.

Dependencies are installed.

Hello @hayap and welcome to the forum!

You are right, currently, MNE-Realtime doesn’t support MNE-Python 0.24.

We hope this will be fixed soon.

Until then, unfortunately, you’ll have to use MNE-Python 0.23.

Best wishes,
Richard

1 Like

Hi, I posted an issue about, and it was fixed:

I can now use 0.24.0 with MNE-realtime

4 Likes