Closed sebburon closed 8 years ago
i haven't messed with python 3 yet, but i did some googling...
in csgo-c4-hue-server.py
, this line:
json_data = json.loads(request.data)
probably needs to be changed to this:
json_data = json.loads(request.data.decode())
or to this:
json_data = json.loads(request.data.decode('utf-8'))
i'll try and keep you posted !
Now fully working with python 3 !
awesome, good job!
Your code is amazing i was trying to update it so it could run on python 3 but can't get around this error TypeError: the JSON object must be str, not 'bytes'