gufw fails to start due to "ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory"

Bug #1890794 reported by Karl-Philipp Richter
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gui-ufw (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Invoking `gufw` in a terminal causes the program to crash immediately after authorization of firewall change due to

```
> gufw
/usr/bin/gufw: line 2: [: too many arguments
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
Traceback (most recent call last):
  File "/usr/share/gufw/gufw/gufw.py", line 30, in <module>
    gufw = Gufw(controler.get_frontend())
  File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 80, in __init__
    self._set_initial_values()
  File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
    self.listening = ListeningReport(self)
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 35, in __init__
    self._show_report()
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 48, in _show_report
    self._view_report(report, self.previous_report)
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 83, in _view_report
    self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'

```

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gufw 20.04.1-1
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Fri Aug 7 11:21:25 2020
InstallationDate: Installed on 2015-04-20 (1935 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
PackageArchitecture: all
SourcePackage: gui-ufw
UpgradeStatus: Upgraded to focal on 2020-04-24 (104 days ago)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gui-ufw (Ubuntu):
status: New → Confirmed
Revision history for this message
Willie30F (willie30f) wrote :

Similar error for me, just without the too many arguments thingy:

```
gufw
ls: Zugriff auf '/usr/lib/python*/site-packages/gufw/gufw.py' nicht möglich: Datei oder Verzeichnis nicht gefunden
Traceback (most recent call last):
  File "/usr/share/gufw/gufw/gufw.py", line 30, in <module>
    gufw = Gufw(controler.get_frontend())
  File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 80, in __init__
    self._set_initial_values()
  File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
    self.listening = ListeningReport(self)
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 35, in __init__
    self._show_report()
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 48, in _show_report
    self._view_report(report, self.previous_report)
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 83, in _view_report
    self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'
```
This error also appears to be happening when launching it from the menu, so not only in terminal...

Revision history for this message
accnetdev (accnetdev) wrote :

Hi,
Same error here on my LWS VPS under Ubuntu 20.04.1 LTS.
No workaround ?

Revision history for this message
costales (costales) wrote : Re: [Bug 1890794] Re: gufw fails to start due to "ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory"

Hi,
I think the issue is coming from this issue:
https://github.com/costales/gufw/issues/9
Do you have installed mosh and/or ufw-extras packages?
Best regards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.