azimjohn / jprq

join public router. quickly.
https://jprq.io
972 stars 146 forks source link

Name or service not known #170

Closed dronov-dmitry closed 1 year ago

dronov-dmitry commented 1 year ago
Traceback (most recent call last):
  File "/home/kat/.local/bin/jprq", line 33, in <module>
    sys.exit(load_entry_point('jprq==2.1.0', 'console_scripts', 'jprq')())
  File "/home/kat/.local/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/kat/.local/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/kat/.local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/kat/.local/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/kat/.local/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/kat/.local/lib/python3.8/site-packages/jprq/main.py", line 42, in http
    loop.run_until_complete(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/kat/.local/lib/python3.8/site-packages/jprq/tunnel_http.py", line 16, in open_http_tunnel
    async with websockets.connect(ws_uri, ssl=ssl_context) as websocket:
  File "/home/kat/.local/lib/python3.8/site-packages/websockets/legacy/client.py", line 604, in __aenter__
    return await self
  File "/home/kat/.local/lib/python3.8/site-packages/websockets/legacy/client.py", line 622, in __await_impl__
    transport, protocol = await self._create_connection()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 986, in create_connection
    infos = await self._ensure_resolved(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1365, in _ensure_resolved
    return await loop.getaddrinfo(host, port, family=family, type=type,
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo
    return await self.run_in_executor(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/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

What can i do with this System: Kernel: 5.10.0-25-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: Cinnamon 5.6.8 tk: GTK 3.24.24 wm: muffin dm: LightDM Distro: LMDE 5 Elsie base: Debian 11.2 bullseye

bek-shoyatbek commented 1 year ago

@dronov-dmitry could you provide more details?

azimjohn commented 1 year ago

@dronov-dmitry I believe you're using jprq python client. It's deprecated. First uninstall python package:

pip uninstall jprq

and install using the link at https://jprq.io/

dronov-dmitry commented 1 year ago

Yes. It work. Thx a lot.