Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL:json.decoder.JSONDecodeError: Expecting ',' delimiter: line 227 column 1 (char 8262) #776

Open
alexpiet opened this issue Oct 14, 2024 · 1 comment
Labels
medium priority - auto-generated autogenerated issues that have occurred more than once in a month

Comments

@alexpiet
Copy link
Collaborator

This issue was automatically generated from GUI logs.

file: Foraging.py
function: exception_hook
line 4746
logfile: W10DT714033/W10DT714033-B_gui_log_2024-10-10_09-02-55.txt
boxes: 1B
count: 1
text: FATAL:json.decoder.JSONDecodeError: Expecting ',' delimiter: line 227 column 1 (char 8262)


Log context

09:03:05 AM:ERROR:Foraging:Foraging.py:exception_hook:line 4746:FATAL ERROR: 
Traceback (most recent call last):
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 4807, in <module>
    win.create_auto_train_dialog()
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 4512, in create_auto_train_dialog
    self.AutoTrain_dialog = AutoTrainDialog(MainWindow=self, parent=None)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 2349, in __init__
    self.update_auto_train_fields(subject_id=self.MainWindow.ID.text())
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 2520, in update_auto_train_fields
    self._show_available_curriculums()
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 2649, in _show_available_curriculums
    self.df_curriculums = self.curriculum_manager.df_curriculums()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\site-packages\aind_auto_train\curriculum_manager.py", line 76, in df_curriculums
    curriculum_description=json.load(
                           ^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
               ^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 227 column 1 (char 8262)
@alexpiet
Copy link
Collaborator Author

This issue reoccurred:

file: Foraging.py
function: exception_hook
line 4746
logfile: W10DT714033/W10DT714033-B_gui_log_2024-10-10_09-02-55.txt
boxes: 1B
count: 1
text: FATAL:json.decoder.JSONDecodeError: Expecting ',' delimiter: line 227 column 1 (char 8262)


Log context

09:03:05 AM:ERROR:Foraging:Foraging.py:exception_hook:line 4746:FATAL ERROR: 
Traceback (most recent call last):
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 4807, in <module>
    win.create_auto_train_dialog()
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 4512, in create_auto_train_dialog
    self.AutoTrain_dialog = AutoTrainDialog(MainWindow=self, parent=None)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 2349, in __init__
    self.update_auto_train_fields(subject_id=self.MainWindow.ID.text())
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 2520, in update_auto_train_fields
    self._show_available_curriculums()
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 2649, in _show_available_curriculums
    self.df_curriculums = self.curriculum_manager.df_curriculums()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\site-packages\aind_auto_train\curriculum_manager.py", line 76, in df_curriculums
    curriculum_description=json.load(
                           ^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
               ^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 227 column 1 (char 8262)

@ellahiltonvano ellahiltonvano added the medium priority - auto-generated autogenerated issues that have occurred more than once in a month label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium priority - auto-generated autogenerated issues that have occurred more than once in a month
Projects
None yet
Development

No branches or pull requests

2 participants