Importing data from EEG devices ()

:question:When I import the EEG file, an error message “Process finished with exit code 1” appears. Surprisingly, when I import one by one, there is no error message. May I ask where the problem is? Thank you for answering:

**:page_facing_up:
#load packages
from time import time
import os
import numpy as np
import pandas as pd
import mne
from mne.minimum_norm import read_inverse_operator,compute_source_psd_epochs
import matplotlib.pyplot as plt

#load the data
read_path = r"C:\Users\LYJ\Desktop\EEG\EEG_data\Morning"
output_path = r"C:\Users\LYJ\Desktop\EEG\EEG_data\Morning_Output"
newbac = ‘-epo.fif’
filelist = os.listdir(read_path) #Traverse all files in this folder (including folders)
file_dir = [os.path.join(read_path, x) for x in filelist]
for data_id in file_dir:
raw = mne.io.read_raw_cnt(data_id, eog=(), misc=(), ecg=(),
emg=(), data_format=‘auto’, date_format=‘mm/dd/yy’,
preload=False, verbose=None)

**
C:\Users\LYJ\Desktop\EEG\EEG_data\venv\Scripts\python.exe C:\Users\LYJ\Desktop\EEG\EEG_data\Morning_Preprocessing.py
C:\Users\LYJ\Desktop\EEG\EEG_data\Morning_Preprocessing.py:20: RuntimeWarning: Could not parse meas date from the header. Setting to None.
raw = mne.io.read_raw_cnt(data_id, eog=(), misc=(), ecg=(),
Traceback (most recent call last):
File “C:\Users\LYJ\Desktop\EEG\EEG_data\Morning_Preprocessing.py”, line 20, in
raw = mne.io.read_raw_cnt(data_id, eog=(), misc=(), ecg=(),
File “C:\Users\LYJ\Desktop\EEG\EEG_data\venv\lib\site-packages\mne\io\cnt\cnt.py”, line 241, in read_raw_cnt
return RawCNT(
File “C:\Users\LYJ\Desktop\EEG\EEG_data\venv\lib\site-packages\mne\io\cnt\cnt.py”, line 493, in init
info, cnt_info = _get_cnt_info(
File “C:\Users\LYJ\Desktop\EEG\EEG_data\venv\lib\site-packages\mne\io\cnt\cnt.py”, line 303, in _get_cnt_info
n_samples = np.fromfile(fid, dtype=“<i4”, count=1).item()
ValueError: can only convert an array of size 1 to a Python scalar

Process finished with exit code 1

:point_right: :point_right: :point_right: Please edit or remove the above text before submitting your posting. :point_left: :point_left: :point_left: