Missing dependency declaration python3-six
When installing setroubleshoot on a server running Fedora CoreOS 37.20221225.3.0, I get the following output from the setroubleshootd.service:
× setroubleshootd.service - SETroubleshoot daemon for processing new SELinux denial logs
Loaded: loaded (/usr/lib/systemd/system/setroubleshootd.service; static)
Active: failed (Result: exit-code) since Fri 2023-01-13 08:11:17 UTC; 21s ago
Process: 1968 ExecStart=/usr/sbin/setroubleshootd -f (code=exited, status=1/FAILURE)
Main PID: 1968 (code=exited, status=1/FAILURE)
CPU: 117ms
Jan 13 08:11:16 [hostname] systemd[1]: Starting setroubleshootd.service - SETroubleshoot daemon for processing new SELinux denial logs...
Jan 13 08:11:17 [hostname] setroubleshootd[1968]: Traceback (most recent call last):
Jan 13 08:11:17 [hostname] setroubleshootd[1968]: File "/usr/sbin/setroubleshootd", line 31, in <module>
Jan 13 08:11:17 [hostname] setroubleshootd[1968]: from setroubleshoot.util import log_debug
Jan 13 08:11:17 [hostname] setroubleshootd[1968]: File "/usr/lib/python3.11/site-packages/setroubleshoot/util.py", line 2, in <module>
Jan 13 08:11:17 [hostname] setroubleshootd[1968]: from six.moves import range
Jan 13 08:11:17 [hostname] setroubleshootd[1968]: ModuleNotFoundError: No module named 'six'
Jan 13 08:11:17 [hostname] systemd[1]: setroubleshootd.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 08:11:17 [hostname] systemd[1]: setroubleshootd.service: Failed with result 'exit-code'.
Jan 13 08:11:17 [hostname] systemd[1]: Failed to start setroubleshootd.service - SETroubleshoot daemon for processing new SELinux denial logs.
From the log, we can see that python3-six
appears to be missing.
On a different server with a similar setup, but a few more packages installed (among them is the unrelated borgmatic
, which coincidentally has python3-six
as dependency), the service operates normally.
When looking at the list of packages required by setroubleshoot, I cannot find python3-six
. Perhaps it is a good idea to add it to the list?
Edited by Marvin A. Ruder