# TypeError: buffer is too small for requested array

**URL:** <https://mne.discourse.group/t/typeerror-buffer-is-too-small-for-requested-array/2283>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [August 7, 2020, 3:26am UTC](https://mne.discourse.group/t/typeerror-buffer-is-too-small-for-requested-array/2283 "2020-08-07T03:26:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 7, 2020, 3:26am UTC](https://mne.discourse.group/t/typeerror-buffer-is-too-small-for-requested-array/2283/1 "2020-08-07T03:26:04Z")

</div>

External Email - Use Caution

Hi everyone,

I am trying to load an EEGLAB dataset using mne.io.read\_raw\_eeglab(), and here are the lines:

sample\_data\_folder = 'test\_data';  
sample\_data\_raw\_file = os.path.join(sample\_data\_folder, 'test\_data.set')  
raw = mne.io.read\_raw\_eeglab(sample\_data\_raw\_file)

Then I got the error:  
TypeError: buffer is too small for requested array

I want to know why this happened and how to solve it.

Thanks for any help!

Best wishes,  
Yuri  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200807/0a46c4fc/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200807/0a46c4fc/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 7, 2020, 8:14am UTC](https://mne.discourse.group/t/typeerror-buffer-is-too-small-for-requested-array/2283/2 "2020-08-07T08:14:47Z")

</div>

External Email - Use Caution

Hi Yuri!

Can you please open an issue at [https://github.com/mne-tools/mne-python/issues](https://github.com/mne-tools/mne-python/issues) and share the problematic file?

Thanks,  
Clemens
