snstac / adsbxcot

Display Aircraft in TAK
https://adsbxcot.rtfd.io
Apache License 2.0
51 stars 14 forks source link

Python 3.6 support is broken #6

Closed ampledata closed 3 years ago

ampledata commented 3 years ago
[admin@takserver ~]$ adsbxcot
Traceback (most recent call last):
  File "/usr/local/bin/adsbxcot", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.6/site-packages/adsbxcot/commands.py", line 134, in cli
    loop = get_event_loop()
NameError: name 'get_event_loop' is not defined
ampledata commented 3 years ago

Line 134 of commands.py reads:

        loop = get_event_loop()

See: https://github.com/ampledata/adsbxcot/blob/main/adsbxcot/commands.py#L134

It should read:

        loop = asyncio.get_event_loop()