Bug 1279046

Summary: system-config-selinux won't start because ImportError: No module named selinux
Product: [Fedora] Fedora Reporter: cube00 <fedoraproject>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: dwalsh, mgrepl, plautrba, tim
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: policycoreutils-2.4-15.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-12 23:27:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cube00 2015-11-07 13:16:43 UTC
Description of problem:
system-config-selinux won't start

Version-Release number of selected component (if applicable):
policycoreutils-gui         x86_64      2.4-14.fc23

How reproducible:
Always

Steps to Reproduce:
1. # dnf install policycoreutils-gui
2. # system-config-selinux 

Actual results:
Traceback (most recent call last):
  File "/usr/share/system-config-selinux/system-config-selinux.py", line 37, in <module>
    import statusPage
  File "/usr/share/system-config-selinux/statusPage.py", line 42, in <module>
    import selinux
ImportError: No module named selinux


Expected results:
system-config-selinux starts correctly.

Additional info:
Took a guess and installed libselinux-python and now the error is
Traceback (most recent call last):
  File "/usr/share/system-config-selinux/system-config-selinux.py", line 38, in <module>
    import booleansPage
  File "/usr/share/system-config-selinux/booleansPage.py", line 25, in <module>
    import seobject
ImportError: No module named seobject

I coudn't guess what the next packaged required should be.

Comment 1 Petr Lautrbach 2015-11-09 08:09:02 UTC
Thanks for the report. There's missing requirement on policycoreutils-python in policycoreutils-gui.

Comment 2 Petr Lautrbach 2015-11-09 08:24:09 UTC
It should be fixed in policycoreutils-2.4-16.fc24 and policycoreutils-2.4-15.fc23

Comment 3 Fedora Update System 2015-11-09 08:30:28 UTC
policycoreutils-2.4-15.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-de58736b41

Comment 4 Fedora Update System 2015-11-10 03:23:05 UTC
policycoreutils-2.4-15.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update policycoreutils'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-de58736b41

Comment 5 cube00 2015-11-10 10:38:36 UTC
Thanks for the quick turnaround Petr, I've added feedback to bodhi.

Comment 6 Fedora Update System 2015-11-12 23:27:24 UTC
policycoreutils-2.4-15.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Petr Lautrbach 2015-11-13 09:29:52 UTC
*** Bug 1281653 has been marked as a duplicate of this bug. ***