Trouble reading raw file - AttributeError: 'NoneType' object has no attribute 'kind'

Hello,

I am having an issue when using mne.io.read_raw_fif to open a file recorded in a Elekta Neuromag/MEGIN system. I am getting the following error:

File “/home/pesquita/anaconda3/lib/python3.7/site-packages/mne/io/open.py”, line 144, in _fiff_open
if tag.kind != FIFF.FIFF_FILE_ID:

AttributeError: ‘NoneType’ object has no attribute ‘kind’

Has anyone encountered this before? What could I do to retrieve the data?

Thanks!

Ana P

Platform: Linux-5.4.0-137-generic-x86_64-with-debian-bullseye-sid
Python: 3.7.10 (default, Jun 4 2021, 14:48:32) [GCC 7.5.0]
Executable: /home/pesquita/anaconda3/bin/python
CPU: x86_64: 8 cores
Memory: 31.2 GB

mne: 0.21.2
numpy: 1.21.5 {blas=mkl_rt, lapack=mkl_rt}
scipy: 1.7.3
matplotlib: 3.3.2 {backend=Qt5Agg}

sklearn: 1.0.2
numba: 0.55.1
nibabel: 4.0.1
cupy: Not found
pandas: 1.3.5
dipy: Not found
mayavi: Not found
pyvista: Not found
vtk: Not found

Hello, your MNE version is very old. Could you try again with a more recent version?

1 Like