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”
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.