[issue36931] json lib doesnt want to load from file

2019-05-15 Thread Zachary Ware
Zachary Ware added the comment: You're passing in a filename, not a file-like object (see https://docs.python.org/3/library/json.html#json.load). Instead, you'll want something like: with open(filename) as f: json_data = json.load(f) Please note that this is not a help forum; in

[issue36931] json lib doesnt want to load from file

2019-05-15 Thread Justin Rose
New submission from Justin Rose : when I run the included file i get an error that looks like: Traceback (most recent call last): File "/home/justin/Desktop/pkmn/main.py", line 10, in expansion = json.load(expan_list) File "/usr/lib/python3.6/json/__init__.py", line 296, in load