Public bug reported:

mandos-monitor fails with the following Traceback on ubuntu 24.04

Traceback (most recent call last):
  File "/usr/sbin/mandos-monitor.orig", line 754, in <module>
    ui.run()
  File "/usr/sbin/mandos-monitor.orig", line 619, in run
    self.add_client(MandosClientWidget(
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/sbin/mandos-monitor.orig", line 150, in __init__
    self.update()
  File "/usr/sbin/mandos-monitor.orig", line 256, in update
    base = "{name}: ".format(name=self.properties["Name"])
                                  ^^^^^^^^^^^^^^^
AttributeError: 'MandosClientWidget' object has no attribute 'properties'


This is a problem with the python3-urwid version.

Using mandos-monitor from the 1.8.19 sources works on 24.04.

$ diff /usr/sbin/mandos-monitor /usr/sbin/mandos-monitor.orig 
6,7c6,7
< # Copyright © 2009-2024 Teddy Hogeborn
< # Copyright © 2009-2024 Björn Påhlsson
---
> # Copyright © 2009-2019 Teddy Hogeborn
> # Copyright © 2009-2019 Björn Påhlsson
67d66
< logging.getLogger("urwid").setLevel(logging.INFO)
73c72
< version = "1.8.19"
---
> version = "1.8.16"
131c130
< class MandosClientWidget(MandosClientPropertyCache, urwid.Widget):
---
> class MandosClientWidget(urwid.FlowWidget, MandosClientPropertyCache):
135,136d133
<     _sizing = frozenset(["flow"])
< 
231c228
<         This overrides the method from urwid.Widget."""
---
>         This overrides the method from urwid.FlowWidget."""
237c234
<         This overrides the method from urwid.Widget"""
---
>         This overrides the method from urwid.FlowWidget"""
335c332
<         This overrides the method from urwid.Widget"""
---
>         This overrides the method from urwid.FlowWidget"""
341c338
<         This overrides the method from urwid.Widget"""
---
>         This overrides the method from urwid.FlowWidget"""

** Affects: mandos (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178407

Title:
  mandos-monitor is not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mandos/+bug/2178407/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to