#1032406 /usr/bin/xgpsspeed: TypeError: 'km/h' is not a valid speed unit

Package:
gpsd-clients
Source:
gpsd-clients
Description:
Global Positioning System - clients
Submitter:
Laurent Bigonville
Date:
2023-12-07 17:36:07 UTC
Severity:
normal
Tags:
#1032406#5
Date:
2023-03-06 08:27:27 UTC
From:
To:
Hello,

When running xgpsspeed on my machine, I get the following trace:

Traceback (most recent call last):
  File "/usr/bin/xgpsspeed", line 1015, in <module>
    Main(
  File "/usr/bin/xgpsspeed", line 652, in __init__
    self.widget = NauticalSpeedometer(
                  ^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/xgpsspeed", line 305, in __init__
    Speedometer.__init__(self, speed_unit)
  File "/usr/bin/xgpsspeed", line 87, in __init__
    raise TypeError(
TypeError: 'km/h' is not a valid speed unit

Explicitly setting the speed unit with --speedunits kmh fixes the issue

There seems to be an incompatibility between what's used in xgpsspeed
and gps/clienthelpers.py

Kind regards,
Laurent Bigonville