Conflict with list.devices() method in sparkfun-qwiic
santaimpersonator opened this issue · 3 comments
santaimpersonator commented
There were issues filed in the sparkfun-qwiic Python package:
I know this package uses serial communication, but it is triggering an error with the list.devices()
method because no I2C address list is available. Since that method is technically "buggy" (sparkfun/Qwiic_Py#2), we can probably ignore this for now.
santaimpersonator commented
santaimpersonator commented
@czanik posted a workaround in issue sparkfun/Qwiic_Py#2 - see sparkfun/Qwiic_Py#2 (comment)
(This is just a copy, while I hide the comment on issue sparkfun/Qwiic_Py#2)
An ugly workaround:
pip3 uninstall sparkfun-ublox-gps
But at least the sample code from the README now works:
pi@raspberrypi:~ $ python3 Python 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import qwiic Error loading module `ublox_gps`: No module named 'ublox_gps' >>> results = qwiic.list_devices() >>> print(results) [(16, 'Qwiic Titan GPS', 'QwiicTitanGps'), (91, 'Qwiic CCS811', 'QwiicCcs811'), (119, 'Qwiic BME280', 'QwiicBme280')] >>>
santaimpersonator commented