-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I got a the problem that python complains about missing microseconds. I think this happens if a packet arrives at a whole second. Great if you can tell me how to fix or hide this.
While learning how asyncio works, I see in the documentation that many parts are depreciated from Python v3.8, for example sleep. Probably not a problem in a while.
Thanks!
E:\Download\Programmering\Python\adsb>sbs-session.py
icao24=42425B, last_seen=2020-06-18 23:05:21.907000+00:00, msgs=6948, history=50, lat=57.90756, lon=11.52244, alt=37000, ground_speed=470, track=56, vertical_rate=0, callsign=NWS9460
Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...,0,,,,,0\r\n'>)
handle: <Handle _ProactorReadPipeTransport._loop_reading(<_OverlappedF...,0,,,,,0\r\n'>)>
Traceback (most recent call last):
File "C:\Program Files (x86)\Python38-32\lib\asyncio\events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "C:\Program Files (x86)\Python38-32\lib\asyncio\proactor_events.py", line 318, in _loop_reading
self._data_received(data)
File "C:\Program Files (x86)\Python38-32\lib\asyncio\proactor_events.py", line 269, in _data_received
self._protocol.data_received(data)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\protocol.py", line 86, in data_received
self.on_message_received(bytes(msg))
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\client.py", line 150, in _on_sbs_message
self._on_raw_message_received(msg_data)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\session.py", line 212, in on_sbs_message
msg = message.fromString(msg_str)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\message.py", line 198, in fromString
v = datetime.time(hour=int(H),
ValueError: microsecond must be in 0..999999
icao24=42425B, last_seen=2020-06-18 23:05:53.368000+00:00, msgs=7408, history=50, lat=57.94469, lon=11.62965, alt=37000, ground_speed=470, track=57, vertical_rate=0, callsign=NWS9460
KeyboardInterrupt
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<session_aircraft_dumper_task() running at E:\Download\Programmering\Python\adsb\sbs-session.py:62> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at
0x01197838>()]>>
E:\Download\Programmering\Python\adsb>
Line numbers might not be exactly as in origninal code because I added a few print()-rows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels