You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/tmp/foo.py", line 4, in <module>
print(srsly.read_json("foo.json"))
File "/Users/yohei_tamura/work/lilly/.venv/lib/python3.8/site-packages/srsly/_json_api.py", line 52, in read_json
return ujson.load(f)
ValueError: Expected object or value
srsly version: 2.2.0
python version: 3.8.1
The text was updated successfully, but these errors were encountered:
It looks like the problem happens in ujson when it's trying to load the opened file.
In the code in your traceback, you're reading from sys.argv[0] – are you sure that points to the correct file? And that the file isn't empty and contains JSON-loadable content etc.?
code:
outputs:
srsly version: 2.2.0
python version: 3.8.1
The text was updated successfully, but these errors were encountered: