Bug 1211834 - ImportError: No module named selinux
Summary: ImportError: No module named selinux
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-15 03:12 UTC by John Schmitt
Modified: 2015-04-29 12:57 UTC (History)
6 users (show)

Fixed In Version: libblockdev-0.11-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-29 12:57:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Schmitt 2015-04-15 03:12:50 UTC
# blivet-gui

Traceback (most recent call last):
  File "/usr/bin/blivet-gui", line 35, in <module>
    from blivetgui.main_window import main_window, embedded_window
  File "/usr/lib/python2.7/site-packages/blivetgui/main_window.py", line 33, in <module>
    from .list_devices import ListDevices
  File "/usr/lib/python2.7/site-packages/blivetgui/list_devices.py", line 31, in <module>
    from .utils import BlivetUtils
  File "/usr/lib/python2.7/site-packages/blivetgui/utils.py", line 24, in <module>
    import blivet
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 74, in <module>
    from .devices import BTRFSDevice, BTRFSSubVolumeDevice, BTRFSVolumeDevice, DirectoryDevice, FileDevice, LVMLogicalVolumeDevice, LVMThinLogicalVolumeDevice, LVMThinPoolDevice, LVMVolumeGroupDevice, MDRaidArrayDevice, NetworkStorageDevice, NFSDevice, NoDevice, OpticalDevice, PartitionDevice, TmpFSDevice, devicePathToName
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 34, in <module>
    from .devicelibs import mdraid
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/mdraid.py", line 27, in <module>
    from .. import util
  File "/usr/lib/python2.7/site-packages/blivet/util.py", line 6, in <module>
    import selinux
ImportError: No module named selinux


Simply using yum to install libselinux-python solves this problem.

Comment 1 Fedora Update System 2015-04-24 02:21:42 UTC
libblockdev-0.11-1.fc22, python-blivet-1.0.8-1.fc22, anaconda-22.20.10-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/libblockdev-0.11-1.fc22,python-blivet-1.0.8-1.fc22,anaconda-22.20.10-1.fc22

Comment 2 Fedora Update System 2015-04-26 12:47:01 UTC
Package libblockdev-0.11-1.fc22, python-blivet-1.0.8-1.fc22, anaconda-22.20.10-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libblockdev-0.11-1.fc22 python-blivet-1.0.8-1.fc22 anaconda-22.20.10-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6866/libblockdev-0.11-1.fc22,python-blivet-1.0.8-1.fc22,anaconda-22.20.10-1.fc22
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2015-04-29 12:57:27 UTC
libblockdev-0.11-1.fc22, python-blivet-1.0.8-1.fc22, anaconda-22.20.10-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.