# Help! 'read\_epochs\_eeglab'

**URL:** <https://mne.discourse.group/t/help-read-epochs-eeglab/6754>\
**Category:** Support & Discussions\
**Tags:** time-frequency, preprocessing, eeg, epochs\
**Created:** [April 19, 2023, 1:42pm UTC](https://mne.discourse.group/t/help-read-epochs-eeglab/6754 "2023-04-19T13:42:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lucas](https://mne.discourse.group/u/lucas)\
**Post date:** [April 19, 2023, 1:42pm UTC](https://mne.discourse.group/t/help-read-epochs-eeglab/6754/1 "2023-04-19T13:42:53Z")

</div>

I get the error: “TypeError: ‘int’ object is not iterable”.I am not sure where I could be making a mistake.  
my mne version is 1.3.1  
windows 11  
these are my codes:  
import mne  
import numpy as np  
import matplotlib.pyplot as plt  
from scipy import stats  
import pickle  
import pymatreader  
import mffpy  
#single sub evoked  
eeg1 = mne.io.read\_epochs\_eeglab(‘1\_LH.set’)

---

<div class="post-metadata">

**Author:** ![dasdiptyajit](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/dasdiptyajit/32/4796_2.png) [@dasdiptyajit](https://mne.discourse.group/u/dasdiptyajit)\
**Post date:** [April 19, 2023, 2:24pm UTC](https://mne.discourse.group/t/help-read-epochs-eeglab/6754/2 "2023-04-19T14:24:40Z")

</div>

@lucas Hi, thanks for posting. I am not completely familiar with `eeglab` data. But just looking at the **traceback** that says the API doesn’t expect an `int`object. Can you try rename your epochs file i.e., remove the ‘int’ (1) part and try to load the data again if that works? Note, I assume you have provided the full-path of your data file to load the data and not a part of it.

best,

---

<div class="post-metadata">

**Author:** ![lucas](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lucas](https://mne.discourse.group/u/lucas)\
**Post date:** [April 20, 2023, 3:06am UTC](https://mne.discourse.group/t/help-read-epochs-eeglab/6754/4 "2023-04-20T03:06:27Z")

</div>

Thanks for your reply, I try this way. But I also can not run the code! It’s a pity! If the code don’t run ,I can not continue the flowling work.And my English is poor,so hope that you don’t mind!  
best

---

<div class="post-metadata">

**Author:** ![BCI-Robot](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@BCI-Robot](https://mne.discourse.group/u/BCI-Robot)\
**Post date:** [May 26, 2023, 2:11am UTC](https://mne.discourse.group/t/help-read-epochs-eeglab/6754/5 "2023-05-26T02:11:00Z")

</div>

Have you solved this problem

---

<div class="post-metadata">

**Author:** ![BCI-ZYH](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@BCI-ZYH](https://mne.discourse.group/u/BCI-ZYH)\
**Post date:** [July 4, 2023, 2:56am UTC](https://mne.discourse.group/t/help-read-epochs-eeglab/6754/6 "2023-07-04T02:56:22Z")

</div>

I’m having a similar issue. Did you fix this?
