Error loading GDF file with MNE: Python integer 256 out of bounds for uint8

Need Help Reading EEG Data in.GDF Format

Hello everyone,

I’ve been working on a project involving EEG data analysis for the past couple of days, but I’m encountering a persistent issue. I’m trying to read my signal data from a . GDF file, but I’m running into an error that I can’t seem to resolve.

Details:

I would greatly appreciate any guidance or suggestions on how to troubleshoot this issue. If anyone has experience with reading .GDF files or could provide sample code or libraries that might help, it would be immensely helpful.

Thank you in advance for your assistance!

Can you post the output of mne.sys_info() please?

I suspect it might be related to NumPy >= 2. Could you share the GDF file so I can try to replicate the problem?

The sys info shows an installation problem, we should try to address this first…

1 Like

This is a bug in our reader, please see GDF reader incompatible with NumPy >= 2 · Issue #12907 · mne-tools/mne-python · GitHub. As a workaround, you can downgrade NumPy to 1.26.4 until we’ve fixed this issue.

1 Like

Interesting! But what’s with the library issue in the sys info output? Is that unrelated?

Probably. It might be an installation issue (a broken SciPy install and/or broken/missing OpenBLAS install).

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.