You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Problem uploading JSON files / Importing data set locally
Error code: dictionary update sequence element #0 has length 1; 2 is required
Traceback
File "/opt/anaconda3/lib/python3.11/site-packages/spyder/plugins/variableexplorer/widgets/main_widget.py", line 170, in <lambda>
triggered=lambdax: self.import_data(),
^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder/plugins/variableexplorer/widgets/main_widget.py", line 489, in import_data
nsb.import_data(filenames=filenames)
File "/opt/anaconda3/lib/python3.11/site-packages/spyder/plugins/variableexplorer/widgets/namespacebrowser.py", line 239, in import_data
error_message =self.shellwidget.load_data(self.filename,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/widgets/namespacebrowser.py", line 158, in load_data
timeout=CALL_KERNEL_TIMEOUT).load_data(
^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/commbase.py", line 557, in __call__returnself._comms_wrapper._get_call_return_value(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/comms/kernelcomm.py", line 224, in _get_call_return_valuereturnsuper(KernelComm, self)._get_call_return_value(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/commbase.py", line 440, in _get_call_return_valuereturnself._sync_error(reply['value'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/commbase.py", line 496, in _sync_error
error_wrapper.raise_error()
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/commbase.py", line 90, in raise_errorraiseself.etype(self)
Exception in comms call load_data:
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/commbase.py", line 343, in _handle_remote_call
return_value =self._remote_callback(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/frontendcomm.py", line 277, in _remote_callbackreturnsuper(FrontendComm, self)._remote_callback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/comms/commbase.py", line 356, in _remote_callbackreturnself._remote_call_handlers[call_name](
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/console/kernel.py", line 267, in load_datafor key inlist(data.keys()):
^^^^^^^^^AttributeError: 'list' object has no attribute 'keys'
Thank you.
As it is my first time coding I didn’t do much other than download the «event data» from Statsbomb/Wyscout (free resources connected to the MPL soccer package). MPL library works but I got these error codes when I tried do upload the wyscout data locally on my computer. Hope that’s useful.
Best,
Trym
Description
What steps will reproduce the problem?
#Problem uploading JSON files / Importing data set locally
Error code: dictionary update sequence element #0 has length 1; 2 is required
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: