semuconsulting/PyGPSClient

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

Closed this issue · 0 comments

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 #118 (comment)