mcg135
(Mia George)
March 4, 2022, 4:11pm
1
Hello everyone,
I have downloaded MNE python before and had no issues, but for some reason when I try to download it on this specific PC I keep having the error:
ImportError: cannot import name ‘_import_fft’ from ‘mne.fixes’
It occurs when I try to import mne. I am wondering if anyone is familiar with this issue and knows how to fix it?
I am using MNE version 0.22.0 with Windows 10.
Thanks very much!
Hello, this error is due to _import_fft
not existing in version 0.22 in this file.
You can take a look at the file fixes.py
from which you attempt to import _import_fft
:
"""Compatibility fixes for older versions of libraries
If you add content to this file, please give the version of the package
at which the fix is no longer needed.
# originally copied from scikit-learn
"""
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Fabian Pedregosa <fpedregosa@acm.org>
# Lars Buitinck <L.J.Buitinck@uva.nl>
# License: BSD
import inspect
from distutils.version import LooseVersion
from math import log
import os
from pathlib import Path
import warnings
This file has been truncated. show original
Could you please share the full traceback of the error and the output of mne.sys_info()
(if you manage to run it).
I would also recommend running the latest version of MNE.
agramfort
(Alexandre Gramfort)
March 4, 2022, 5:24pm
3
Hi,
Can you paste the full traceback? either it’s a different package or it’s an install problem I think
Alex
mcg135
(Mia George)
March 18, 2022, 5:36pm
4
Thank you to everyone who responded! I realized it was an installation error and once I uninstalled and reinstalled MNE, the issue was fixed.
Thanks!