TypeError Python 3.12.3: /usr/bin/python3 Thu May 2 19:34:22 2024 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /usr/sbin/aa-enforce in 24 parser = argparse.ArgumentParser(description=_('Switch the given program to enforce mode')) 25 parser.add_argument('-d', '--dir', type=str, help=_('path to profiles')) 26 parser.add_argument('program', type=str, nargs='+', help=_('name of program')) 27 parser.add_argument('--no-reload', dest='do_reload', action='store_false', default=True, help=_('Do not reload the profile after modifying it')) 28 parser.add_argument('--configdir', type=str, help=argparse.SUPPRESS) 29 args = parser.parse_args() 30 31 tool = apparmor.tools.aa_tools('enforce', args) 32 33 tool.cmd_enforce() tool = tool.cmd_enforce = > /usr/lib/python3/dist-packages/apparmor/tools.py in cmd_enforce(self=) 129 apparmor.create_symlink('disable', prof_filename) 130 131 self.unload_profile(prof_filename) 132 133 def cmd_enforce(self): 134 for (program, prof_filename, output_name) in self.get_next_for_modechange(): 135 apparmor.set_enforce(prof_filename, program) 136 137 self.reload_profile(prof_filename) 138 program undefined prof_filename undefined output_name undefined self = self.get_next_for_modechange = > /usr/lib/python3/dist-packages/apparmor/tools.py in get_next_for_modechange(self=) 92 93 for (program, _, prof_filename) in self.get_next_to_profile(): 94 output_name = prof_filename if program is None else program 95 96 if not os.path.isfile(prof_filename) or is_skippable_file(prof_filename): 97 aaui.UI_Info(_('Profile for %s not found, skipping') % output_name) 98 continue 99 100 yield (program, prof_filename, output_name) 101 global aaui = aaui.UI_Info = _ = '/usr/local/bin/guix' output_name = '/usr/local/bin/guix' TypeError: 'str' object is not callable __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {} __dir__ = __doc__ = 'Inappropriate argument type.' __eq__ = __format__ = __ge__ = __getattribute__ = __getstate__ = __gt__ = __hash__ = __init__ = __init_subclass__ = __le__ = __lt__ = __ne__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __suppress_context__ = False __traceback__ = add_note = args = ("'str' object is not callable",) with_traceback = The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/usr/sbin/aa-enforce", line 33, in tool.cmd_enforce() File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 134, in cmd_enforce for (program, prof_filename, output_name) in self.get_next_for_modechange(): File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 97, in get_next_for_modechange aaui.UI_Info(_('Profile for %s not found, skipping') % output_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'str' object is not callable Please consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues and attach this file.