Running any of apparmor-utils: aa-logprof or aa-genprof output error: ModuleNotFoundError: No module named 'cgitb' Patch fix upstream: GITLAB (i'm unable to POST URLS) upstream apparmor/apparmor/-/merge_requests/1439/diffs?commit_id=434e34bb510b4cab04e64cd5b21d635c6be8c8ea Reproducible: Always The patch is needed to be running any of apparmor-utils applications on gentoo right now.
url of patch is https : // gitlab . com /apparmor/apparmor/-/merge_requests/1439/diffs?commit_id=434e34bb510b4cab04e64cd5b21d635c6be8c8ea
Yeah, apparmor 4.0.3 still doesn't work with python 3.13 but the ebuild says it does. 4.1 is the first upstream release with the fix. I reported that in the existing apparmor porting bug 952709 when the maintainer added the 3.13 compat to the ebuild but that bug was already closed and hasn't been reopened, so maybe a new bug is in order.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a8d6d0fd44c16e1bf46b35a9019ce6a3a3c17cb commit 0a8d6d0fd44c16e1bf46b35a9019ce6a3a3c17cb Author: Sam James <sam@gentoo.org> AuthorDate: 2025-06-08 09:33:44 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-06-08 09:34:21 +0000 sys-apps/apparmor-utils: drop py3.13 It doesn't work with <4.1. Bug: https://bugs.gentoo.org/952709 Closes: https://bugs.gentoo.org/957140 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/apparmor-utils/apparmor-utils-3.1.4-r1.ebuild | 4 ++-- sys-apps/apparmor-utils/apparmor-utils-4.0.3.ebuild | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da122fd54debb9c00b323c1b1c22038921425e50 commit da122fd54debb9c00b323c1b1c22038921425e50 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-06-08 09:33:16 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-06-08 09:34:20 +0000 sys-libs/libapparmor: drop py3.13 It doesn't work with <4.1. Bug: https://bugs.gentoo.org/952709 Closes: https://bugs.gentoo.org/957140 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/libapparmor/libapparmor-3.1.4-r2.ebuild | 2 +- sys-libs/libapparmor/libapparmor-4.0.3.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=718e6b711ac1ed3e0d5c12e466d0c19364f108f2 commit 718e6b711ac1ed3e0d5c12e466d0c19364f108f2 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-06-08 10:27:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-06-08 10:27:59 +0000 sys-apps/apparmor-utils: fix py3.13 compat Closes: https://bugs.gentoo.org/957140 Bug: https://bugs.gentoo.org/952709 Signed-off-by: Sam James <sam@gentoo.org> ...4.0.3.ebuild => apparmor-utils-4.0.3-r1.ebuild} | 1 + .../files/apparmor-utils-4.0.3-py3.13.patch | 75 ++++++++++++++++++++++ 2 files changed, 76 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ec4f94a9ece73eef0839f4893ae99428b18e754 commit 9ec4f94a9ece73eef0839f4893ae99428b18e754 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-06-08 22:59:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-06-08 22:59:41 +0000 sys-apps/apparmor-utils: enable py3.13 I added the patch in 718e6b711ac1ed3e0d5c12e466d0c19364f108f2 but forgot to change PYTHON_COMPAT back again. Bug: https://bugs.gentoo.org/952709 Bug: https://bugs.gentoo.org/957140 Reported-by: thican Signed-off-by: Sam James <sam@gentoo.org> sys-apps/apparmor-utils/apparmor-utils-4.0.3-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)