Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running on Ubuntu 20.04 #8

Open
netsound opened this issue Apr 24, 2022 · 1 comment
Open

Issue running on Ubuntu 20.04 #8

netsound opened this issue Apr 24, 2022 · 1 comment

Comments

@netsound
Copy link

Using fresh Ubuntu 20.04 image along with the Debian/Ubuntu packages or the PIP install or even building from source with fresh images each time getting the following when trying to run the software:

aprscot -c ./aprs.ini
Traceback (most recent call last):
File "/usr/bin/aprscot", line 11, in
load_entry_point('aprscot==5.0.5', 'console_scripts', 'aprscot')()
File "/usr/lib/python3/dist-packages/aprscot/commands.py", line 74, in cli
asyncio.run(main(config), debug=config["aprscot"].getboolean("DEBUG"))
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/lib/python3/dist-packages/aprscot/commands.py", line 39, in main
reader, writer = await pytak.protocol_factory(cot_url)
File "/usr/lib/python3/dist-packages/pytak/client_functions.py", line 53, in protocol_factory
reader, writer = await asyncio.open_connection(host, port)
File "/usr/lib/python3.8/asyncio/streams.py", line 52, in open_connection
transport, _ = await loop.create_connection(
File "/usr/lib/python3.8/asyncio/base_events.py", line 986, in create_connection
infos = await self._ensure_resolved(
File "/usr/lib/python3.8/asyncio/base_events.py", line 1365, in _ensure_resolved
return await loop.getaddrinfo(host, port, family=family, type=type,
File "/usr/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo
return await self.run_in_executor(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

@Sn1PeR
Copy link
Contributor

Sn1PeR commented Jun 4, 2022

Rolling back to PyTak version 3.5.2 fixed this error for me.

git clone https://github.com/ampledata/pytak
cd pytak
pip uninstall pytak
git checkout 782742e
python setup.py install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants