Profile "warsow.jhansonxi" breaks gufw start

Bug #1735936 reported by Daniel Hillenbrand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
Low
costales

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/gufw/gufw.py", line 30, in <module>
    gufw = Gufw(controler.get_frontend())
  File "/usr/lib/python3.6/site-packages/gufw/gufw/view/gufw.py", line 81, in __init__
    self.winadd = Add(self)
  File "/usr/lib/python3.6/site-packages/gufw/gufw/view/add.py", line 36, in __init__
    self.apps = AppProfiles()
  File "/usr/lib/python3.6/site-packages/gufw/gufw/view/add.py", line 492, in __init__
    self.all_apps = self._load_from_files()
  File "/usr/lib/python3.6/site-packages/gufw/gufw/view/add.py", line 504, in _load_from_files
    cfg.read(cfg_file)
  File "/usr/lib/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib/python3.6/configparser.py", line 1015, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 333: ordinal not in range(128)

Caused by "but I can’t find"

’ isn't a valid ascii char
Should be replaced with ' (dec 39)

Also the reference URL is outdated. The content doesn't exist anymore.

Adding some debugging code helps to identify startup issues for regular users:

    def _load_from_files(self):
        apps = {}
        os.chdir(DIR_PROFILES)
        cfg = configparser.ConfigParser()

        cfg_file_list = glob.glob('*.*')

        for cfg_file in cfg_file_list:
            print("Reading app profile from file: ", cfg_file)
            cfg.read(cfg_file)

        for section in cfg.sections():
            title = description = ports = categories = warning = ''

Related branches

costales (costales)
Changed in gui-ufw:
status: New → Fix Committed
assignee: nobody → costales (costales)
importance: Undecided → Low
milestone: none → 18.04
costales (costales)
Changed in gui-ufw:
status: Fix Committed → Fix Released
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.