Dataset creation: Unexpected character in found when decoding object value

We received following error when creating the dataset:

Traceback (most recent call last):
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py”, line 193, in _run_module_as_main
   “__main__“, mod_spec)
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py”, line 85, in _run_code
   exec(code, run_globals)
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prodigy/__main__.py”, line 372, in <module>
   plac.call(commands[command], arglist=args, eager=False)
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/plac_core.py”, line 328, in call
   cmd, result = parser.consume(arglist)
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/plac_core.py”, line 207, in consume
   return cmd, self.func(*(args + varargs + extraopts), **kwargs)
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prodigy/__main__.py”, line 45, in dataset
   DB = connect()
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prodigy/components/db.py”, line 66, in connect
   config = get_config()
 File “cython_src/prodigy/util.pyx”, line 80, in prodigy.util.get_config
 File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/srsly/_json_api.py”, line 51, in read_json
   return ujson.load(f)
ValueError: Unexpected character in found when decoding object value

Our argument to create the dataset:

python3 -m prodigy dataset my_dataset “a data set”

What could be the issue?

2 posts were split to a new topic: peewee.OperationalError: unable to open database file

From the traceback, it looks like the error occurs when calling get_config(), i.e. when fetching your Prodigy configuration. This likely means that your prodigy.json contains invalid JSON and can’t be loaded (also see this thread for the same error message and solution). Maybe double-check if with a JSON linter if you can’t immediately spot what’s wrong.

so, how can we modify the prodigy.json? i just copied ans pasted the content from help doc directly wighout any modificaion. please see the following:

=========================

Ω ```
{
“theme”: “basic”,
“custom_theme”: {},
“batch_size”: 10,
“port”: 8080,
“host”: “localhost”,
“cors”: true,
“db”: “sqlite”,
“db_settings”: {},
“api_keys”: {},
“validate”: true,
“auto_create”: true,
“auto_exclude_current”: true,
“instant_submit”: false,
“feed_overlap”: true,
“show_stats”: false,
“hide_meta”: false,
“show_flag”: false,
“instructions”: false,
“swipe”: false,
“split_sents_threshold”: false,
“diff_style”: “words”,
“html_template”: false,
“global_css”: null,
“javascript”: null,
“writing_dir”: “ltr”,
“hide_true_newline_tokens”: false,
“ner_manual_require_click”: false,
“ner_manual_label_style”: “list”,
“choice_style”: “single”,
“choice_auto_accept”: false,
“darken_image”: 0,
“show_bounding_box_center”: false,
“preview_bounding_boxes”: false,
“shade_bounding_boxes”: false
}

@weijia_sun I moved your posts to another thread, because your report is likely not related to the original post. See here:

A post was merged into an existing topic: peewee.OperationalError: unable to open database file