semuconsulting / PyGPSClient

Python Graphical GPS Client Application supporting NMEA, UBX, RTCM3, NTRIP & SPARTN Protocols
BSD 3-Clause "New" or "Revised" License
517 stars 103 forks source link

KeyError: 'inactivity_timeout' when trying to use l-band spartn corrections: #120

Closed semuadmin closed 8 months ago

semuadmin commented 8 months ago

There's a similar problem when trying to use l-band spartn corrections:

$ ./venvs/pygps/bin/pygpsclient Exception in thread Thread-4 (_read_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/home/drd/venvs/pygps/lib/python3.11/site-packages/pygpsclient/stream_handler.py", line 120, in _read_thread inactivity_timeout = settings["inactivity_timeout"]


KeyError: 'inactivity_timeout'

It looks like the code that launches the reader thread doesn't provide an inactivity timeout in on_connect() in spartn_lband_frame.py

(That might have been on version 1.4.9 since I installed an older version to get around the first problem.)

_Originally posted by @divenal in https://github.com/semuconsulting/PyGPSClient/discussions/118#discussioncomment-8619877_