Skip to content

Problems running Python sample code on Raspberry Pi #7

@TaylorHokanson

Description

@TaylorHokanson

I have a Raspberry Pi connected to a Qwiic illuminated button with a Qwiic Shim. When I run the following sample code from the README:

import qwiic
results = qwiic.list_devices()
print(results)
mydevice = qwiic.create_device(results[0][0])
print(mydevice)

I get the following errors:

Error loading module `qwiic_tca9548a`: invalid syntax (qwiic_tca9548a.py, line 70)
Error loading module `ublox_gps`: invalid syntax (core.py, line 20)
[(111, 'Qwiic 4m Distance Sensor (ToF)', 'QwiicVL53L1X')]
<qwiic_vl53l1x.QwiicVL53L1X object at 0x7661f790>

It appears that my button is being interpreted as a distance sensor, along with some other module issues. Could this be something wrong on my end, or does it indicate a problem with the repo?

Thanks! -T

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions