Open bgottula opened 1 year ago
Okay so the gps
package on PyPI is just an outdated version of the official Python client in the gpsd project. One of the maintainers listed on PyPI is also an active contributor to gpsd, so maybe that means it's "official" and not just some random person uploading it. In any case, I can see that the problem was fixed in the gpsd project in July 2020, but the most recent version of gps
on PyPI is from 2019.
I opened https://gitlab.com/gpsd/gpsd/-/issues/232 in the hopes that the maintainers will push an update to PyPI. We'll see what they say.
Well unfortunately the gpsd developer whose name was listed as a maintainer on the PyPI package denies having any control or involvement except to complain to PyPA about it. Allegedly the PyPI package was in fact uploaded by someone else and is not actually associated with gpsd.
Alternatives I can think of:
python3-gps
package in Ubuntu 22.04, which probably has a more recent version than what's on PyPI and presumably is compatible with Python 3.10. But using that would mean that track
can no longer install that dependency automatically, which is unfortunate. It would also mean that I have to allow the virtual environment to use system packages (using --system-site-packages
at venv creation) which has all kinds of horrible side effects.Some alternative packages on PyPI that have been updated within the past year or so:
I will see if I can do some digging on this...
gpsdclient: Started in October 2021, last release in January. Very simple but looks competently designed, I like it.
A quick peek suggests that this is probably the easiest good solution here. Looks like it was almost tailor-made for your "I just want a simple easy gpsd client" use case; and it's actually updated and so forth.
Okay thanks. That was my conclusion as well, so it's first on my list to try. Not sure when exactly I'll get to it, since replacing gps
wasn't what I was actually planning on working on next. As a stop-gap measure I've simply edited the gps
code installed in my venv to remove the deprecated constructor arg, which seems to have worked, so at least it's not truly blocking me in the near term.
The
gps
package I've been using hasn't been updated since 2019, and I discovered that it's broken in Python 3.10.The argument
encoding
has been deprecated since Python 3.1, apparently.Either convince someone to update it or find a replacement.