srsly cant read exported jsonl from Prodigy

Just bought Prodigy yesterday. Rocky start.

Annotated 1500 images.
Error loading data back into Python with srsly.

Any ideas?

Traceback (most recent call last):
  File "normalize_image_position.py", line 14, in <module>
    json_data = srsly.read_json(json_path)
  File "/home/me/.local/lib/python3.8/site-packages/srsly/_json_api.py", line 53, in read_json
    return ujson.load(f)
ValueError: Trailing data

Hi! Based on the traceback, it looks like your code in normalize_image_position.py is calling srsly.read_json (which expects a JSON file), while the file you're trying to load is newline-delimited JSON, i.e. JSONL. So that's likely the problem. If you use the read_jsonl method, you should be able to load in your JSONL file.

That was it!

Thank you for the prompt response.