juglab / cryoCARE_pip

PIP package of cryoCARE
BSD 3-Clause "New" or "Revised" License
25 stars 14 forks source link

json.decoder.JSONDecodeError: Expecting value: line 12 column 16 (char 320) #48

Open CleoShen opened 1 year ago

CleoShen commented 1 year ago

Run a test train on my data, and had error: Traceback (most recent call last): File "/home/groups/brunger/software/cryoCARE/cryocare_env/bin/cryoCARE_train.py", line 62, in <module> main() File "/home/groups/brunger/software/cryoCARE/cryocare_env/bin/cryoCARE_train.py", line 17, in main config = json.load(f) File "/share/software/user/open/python/3.9.0/lib/python3.9/json/__init__.py", line 293, in load return loads(fp.read(), File "/share/software/user/open/python/3.9.0/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/share/software/user/open/python/3.9.0/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/share/software/user/open/python/3.9.0/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 12 column 16 (char 320) Output file is: Fire in the hole! Computing normalization parameters: Output directory already exists. Please choose a new output directory or set 'overwrite' to 'true' in your configuration file.

asarnow commented 1 year ago

I guess something like True or False should be quoted, or there is an extra trailing comma somewhere.

Amy1809 commented 1 month ago

Hi I have the same error (output file), may I ask if you have any solutions on this now?

asarnow commented 1 month ago

As above, believe this is a syntax error in your config file.