-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
There seems to be an issue with the json dumping of the scanned devices. I am still tracking this error down but it would seem that the root cause for the whole crash is on line 89 at app.py
The code that produces this error is:
def scanDevices(self):
# look up our data
data = {}
data['bots'] = hive.scanBots()
data['cameras'] = camera_control.scanCameras()
scanData = json.dumps(data)The error is:
<type 'exceptions.TypeError'>, <serial.tools.list_ports_linux.SysFS object at 0x7
fdc02a25f90> is not JSON serializable
My data looks like this:
{b'bots': {b'printcoredriver': [<serial.tools.list_ports_linux.SysFS object at 0x
7fdc02a25f90>, <serial.tools.list_ports_linux.SysFS object at 0x7fdc02a25fd0>, <s
erial.tools.list_ports_linux.SysFS object at 0x7fdc029a2cd0>]}, b'cameras': []}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels