Missing encoding in file open, need to line 13 in update file_svc.py :
From: with open(file) as json_file:
To: with open(file, encoding="utf8") as json_file:
This is the error I'm getting:
Traceback (most recent call last):
File "joystick.py", line 55, in
main(config_host, config_port, services)
File "joystick.py", line 36, in main
loop.run_until_complete(data_svc.load_evaluations())
File "C:\Users*\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "C:\Users*\Downloads\MITRE_JOYSTICK\joystick\app\service\data_svc.py", line 32, in load_evaluations
results = await self.get_service('file_svc').load_json_file(evaluation)
File "C:\Users*\Downloads\MITRE_JOYSTICK\joystick\app\service\file_svc.py", line 14, in load_json_file
data = json.load(json_file)
File "C:\Users*\AppData\Local\Programs\Python\Python38-32\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users******\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 20837: character maps to