cannot import name '_import_nibabel' from 'mne.utils'

Dear MNE community,

I received this error message:
ImportError: cannot import name 'import_nibabel’ from ‘mne.utils’ (D:\Logiciels\anaconda3\lib\site-packages\mne\utils_init.py)

When I try to run the following function:
mne_gui.locate_ieeg(
sEEG_Data.info,
subj_trans,
CT_aligned,
subject = ‘sub’+ListSuj[suj],
subjects_dir = dirFreeSurfer,
block=True,
)
That comes from the tutorial: Locating intracranial electrode contacts — MNE-GUI-Addons 0.2.0.dev13+g8ae9622 documentation

I use MNE version 1.0.3, on Spyder (Python 3.10.13), on Windows 10.

Can you help me to solve this issue?

Thanks,
Camille.

Hi @CamilleFakche and welcome to the forum!

I suspect your version of MNE is simply too old. I’d suggest to install the latest release of MNE-Python following our official installation instructions.

Best wishes,
Richard

cc @larsoner @alexrockhill I think MNE-GUI-Addons should set a lower bound for the required MNE version.

1 Like

It’s American Thanksgiving, happy Thanksgiving! Will fix that in a couple days

1 Like

Hi Richard,
Thank you!
Indeed, updating my MNE-Python version to the latest release solves the problem.
Thanks for your help,
Camille.

1 Like