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
Hello, when I run the script it is giving me a type error:
Traceback (most recent call last):
File "app.py", line 62, in
threaded=app.config['THREADED'])
File "/home/pi/Desktop/MTAPI-master/mtapi/mtapi.py", line 84, in init
self._stations = json.load(f)
File "/usr/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
I deleted the folder and re-did all the installation. Thanks for creating this, it really comes in handy!
The text was updated successfully, but these errors were encountered:
Hello, when I run the script it is giving me a type error:
Traceback (most recent call last):
File "app.py", line 62, in
threaded=app.config['THREADED'])
File "/home/pi/Desktop/MTAPI-master/mtapi/mtapi.py", line 84, in init
self._stations = json.load(f)
File "/usr/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
I deleted the folder and re-did all the installation. Thanks for creating this, it really comes in handy!
The text was updated successfully, but these errors were encountered: