Skip to content

Bumblebee crashes on startup #7

@JoonasMelin

Description

@JoonasMelin

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': []}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions