sparkfun / Qwiic_Ublox_Gps_Py

https://qwiic-ublox-gps-py.readthedocs.io/en/latest/index.html
Other
69 stars 41 forks source link

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

Closed santaimpersonator closed 3 years ago

santaimpersonator commented 3 years ago

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" (https://github.com/sparkfun/Qwiic_Py/issues/2), we can probably ignore this for now.

santaimpersonator commented 3 years ago

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

santaimpersonator commented 3 years ago

@czanik posted a workaround in issue https://github.com/sparkfun/Qwiic_Py/issues/2 - see https://github.com/sparkfun/Qwiic_Py/issues/2#issuecomment-748487461 _(This is just a copy, while I hide the comment on issue https://github.com/sparkfun/Qwiic_Py/issues/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 3 years ago

Issue is now fixed with the latest commits:

Closing out issue.