I have a Ublox ZED-F9P GPS module and am running the RTK_example.py script from the pygnssutils library with python3.8 on Linux aarch64, with RTCM corrections from AUSCORS NTRIP Broadcaster. The script runs fine for around a minute or so, then sometimes throws the following queue exception and stops –
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
Traceback (most recent call last):
File "/root/scripts/my_rtk.py", line 181, in <module>
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/root/scripts/gnssapp.py", line 176, in _read_loop
main(**dict(arg.split("=") for arg in argv[1:]))
self._send_data(ubr.datastream, sendqueue)
File "/root/scripts/gnssapp.py", line 242, in _send_data
File "/root/scripts/my_rtk.py", line 146, in main
stream.write(raw_data)
File "/usr/local/lib/python3.8/dist-packages/serial/serialposix.py", line 621, in write
(_, parsed_data) = recv_queue.get(False)
File "/usr/lib/python3.8/queue.py", line 167, in get
n = os.write(self.fd, d)
raise Empty
_queue.Empty
TypeError: an integer is required (got type NoneType)
I have not made any changes to gnssapp.py and am unable to figure out what is causing this exception or how to ignore it and keep running. Any suggestions would be greatly appreciated please.