Traceback (most recent call last):


 "D:/mne使用/use01.py", line 15, in <module>

raw = mne.io.read_raw_eeglab(r'D:\脑电数据原始\ex2\sub1902.set',preload=False)


 "D:\mne使用\venv\lib\site-packages\mne\io\eeglab\eeglab.py", line 221, in read_raw_eeglab

return RawEEGLAB(input_fname=input_fname, preload=preload,


 "<decorator-gen-197>", line 21, in __init__


 "D:\mne使用\venv\lib\site-packages\mne\io\eeglab\eeglab.py", line 319, in __init__

eeg = _check_load_mat(input_fname, uint16_codec)


 "D:\mne使用\venv\lib\site-packages\mne\io\eeglab\eeglab.py", line 59, in _check_load_mat

eeg = read_mat(fname, uint16_codec=uint16_codec)


 "D:\mne使用\venv\lib\site-packages\mne\externals\pymatreader\pymatreader.py", line 82, in read_mat

raw_data = scipy.io.loadmat(fid, struct_as_record=True,


 "D:\mne使用\venv\lib\site-packages\scipy\io\matlab\mio.py", line 224, in loadmat

matfile_dict = MR.get_variables(variable_names)


 "D:\mne使用\venv\lib\site-packages\scipy\io\matlab\mio5.py", line 333, in get_variables

res = self.read_var_array(hdr, process)


 "D:\mne使用\venv\lib\site-packages\scipy\io\matlab\mio5.py", line 293, in read_var_array

return self._matrix_reader.array_from_header(header, process)


 "mio5_utils.pyx", line 671, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header


 "mio5_utils.pyx", line 719, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header


 "mio5_utils.pyx", line 966, in scipy.io.matlab.mio5_utils.VarReader5.read_struct


 "mio5_utils.pyx", line 669, in scipy.io.matlab.mio5_utils.VarReader5.read_mi_matrix


 "mio5_utils.pyx", line 713, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header


 "mio5_utils.pyx", line 876, in scipy.io.matlab.mio5_utils.VarReader5.read_char
TypeError: buffer is too small for requested array

Traceback (most recent call last):


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/werkzeug/serving.py", line 267, in run_wsgi

execute(self.server.app)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/werkzeug/serving.py", line 255, in execute

application_iter = app(environ, start_response)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask_sockets.py", line 48, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app

response = self.handle_exception(e)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/Users/timfeirg/eru/citadel/citadel/views/user.py", line 30, in login

url_for('user.authorized', _external=True)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/authlib/client/client.py", line 100, in generate_authorize_redirect

self.authorize_url, **kwargs)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/authlib/client/oauth2.py", line 111, in authorization_url

state=state, **kwargs


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/authlib/specs/rfc6749/parameters.py", line 67, in prepare_grant_uri

return add_params_to_uri(uri, params)


 "/Users/timfeirg/.virtualenvs/citadel/lib/python3.6/site-packages/authlib/common/urls.py", line 118, in add_params_to_uri

return urlparse.urlunparse((sch, net, path, par, query, fra))


 "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 454, in urlunparse

_coerce_args(*components))


 "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 120, in _coerce_args

raise TypeError("Cannot mix str and non-str arguments")
TypeError: Cannot mix str and non-str arguments
