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

Can't ping on Ubuntu 24.04 #2

Closed
github2452 opened this issue Jul 2, 2024 · 4 comments
Closed

Can't ping on Ubuntu 24.04 #2

github2452 opened this issue Jul 2, 2024 · 4 comments

Comments

@github2452
Copy link

whatever site/address I type the window gets stuck/freeze with Pinging (after I press the Ping button)
I'm using Ubuntu 24.04

@lo2dev
Copy link
Owner

lo2dev commented Jul 3, 2024

Hi, can you please run flatpak run io.github.lo2dev.Echo in a terminal and post the output if there is any?

@github2452
Copy link
Author

Hi, can you please run flatpak run io.github.lo2dev.Echo in a terminal and post the output if there is any?

Exception in thread Thread-1 (ping_task):
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/icmplib/sockets.py", line 88, in init
self._sock = self._create_socket(
^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/icmplib/sockets.py", line 486, in _create_socket
return socket.socket(
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/socket.py", line 232, in init
_socket.socket.init(self, family, type, proto, fileno)
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/app/share/echo/echo/window.py", line 109, in ping_task
result = ping(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/icmplib/ping.py", line 141, in ping
with _Socket(source, privileged) as sock:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/icmplib/sockets.py", line 97, in init
raise SocketPermissionError(privileged)
icmplib.exceptions.SocketPermissionError: A prior configuration of your OS is required to use ICMP sockets without root privileges. Read more on https://github.com/ValentinBELYN/icmplib

@lo2dev
Copy link
Owner

lo2dev commented Jul 3, 2024

It seems to be an issue (specifically on Ubuntu 24.04) with the library I'm using that makes it possible to ping. I'm afraid there's not much I can do as the app dev until this gets fixed in the library.

There is a workaround that fixes this if you're comfortable with terminal usage on this page on step 2.

@lo2dev lo2dev changed the title stuck in Pinging Can't ping on Ubuntu 24.04 Jul 3, 2024
@lo2dev lo2dev pinned this issue Jul 3, 2024
@github2452
Copy link
Author

It seems to be an issue (specifically on Ubuntu 24.04) with the library I'm using that makes it possible to ping. I'm afraid there's not much I can do as the app dev until this gets fixed in the library.

There is a workaround that fixes this if you're comfortable with terminal usage on this page on step 2.

I followed the 2. step on the link and now its working. thank you!

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