sparkfun/Qwiic_Ublox_Gps_Py

Conflict with list.devices() method in sparkfun-qwiic

santaimpersonator opened this issue · 3 comments

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.

@edspark Maybe we could link the installation separately, through the setup.py file?

@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')]
>>> 

Issue is now fixed with the latest commits:

Closing out issue.