Bug 221402 - system-config-securitylevel fails to start
Summary: system-config-securitylevel fails to start
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-securitylevel
Version: rawhide
Hardware: powerpc
OS: Linux
medium
high
Target Milestone: ---
Assignee: Chris Lumens
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-04 14:57 UTC by Joseph Sacco
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-04 19:26:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joseph Sacco 2007-01-04 14:57:12 UTC
system-config-securitylevel fails to start because of a missing module:

# system-config-securitylevel
Traceback (most recent call last):
  File "/usr/share/system-config-securitylevel/system-config-securitylevel.py",
line 11, in <module>
    import securitylevel 
  File "/usr/share/system-config-securitylevel/securitylevel.py", line 33, in
<module>
    import selinuxPage
  File "/usr/share/system-config-securitylevel/selinuxPage.py", line 27, in <module>
    from Conf import *
ImportError: No module named Conf

From what I can see Conf.py was installed as part of rhpl:

    /usr/lib/python2.5/site-packages/rhpl/Conf.py


-Joseph

Comment 1 Joseph Sacco 2007-01-04 16:06:53 UTC
This is a PYTHONPATH issue... 

I hammered the code into submission adding

    sys.path.append('/usr/lib/python2.5/site-packages/rhpl')

to the top of /usr/share/system-config-securitylevel/securitylevel.py, which
allows the application to run.  This is *not* the right way to fix this problem. 

Defining and exporting a PYTHONPATH that contained rhpl didn't work [wonder why???].

-Joseph

Comment 2 Chris Lumens 2007-01-04 19:26:46 UTC
Should be:

from rhpl.Conf import *

Thanks for the bug report.  I'll rush out a new version to fix this item.


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