evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.74k stars 498 forks source link

Anything other than General tab of the UI is empty #233

Closed avin3sh closed 3 years ago

avin3sh commented 5 years ago

I am on Ubuntu 18.04 and have followed the installation instruction and everything works except that the UI doesn't list anything other than whats being shown in "General" tab.

This is what the General tab looks like, general_tab

But at the same time all other tabs, including, for example, Processes is blank, process_tab

Running the opensnitch-ui from CLI throws the following error repeatedly while the UI is still running,


Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/opensnitch/dialogs/stats.py", line 205, in _on_update_triggered
    pw_name = pwd.getpwall(int(uid)).pw_name
TypeError: getpwall() takes no arguments (1 given)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/opensnitch/dialogs/stats.py", line 209, in _on_update_triggered
    by_users["%s (%s)" % (pw_name, uid)] = hits
UnboundLocalError: local variable 'pw_name' referenced before assignment
gustavo-iniguez-goya commented 3 years ago

This should be fixed with latest version.