Red Hat Bugzilla – Bug 118945
redhat-config-packages uses "exec python" if user has python elsewhere and first on PATH it may fail
Last modified: 2007-04-18 13:04:31 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
/usr/sbin/redhat-config-packages should be sanitized.
the script /usr/sbin/redhat-config-packages is using whatever python
it finds first on the PATH instead of using the python
that comes with the system (and has therefore all python modules
that the script depends on).
In my case I have python 2.3 installed on /usr/local/ without the gtk
module so the line:
from the script /usr/share/redhat-config-packages/MainWindow.py
will fail because /usr/sbin/redhat-config-packages is starting the app
when it should be
or something similar
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.install python in /usr/local
2.put /usr/local/bin first on your PATH
3.try running the app
Actual Results: Unable to import gtk module. This may be due to
$DISPLAY set. Exception was:
No module named gtk
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/MainWindow.py", line 11, in ?
NameError: name 'sys' is not defined
Expected Results: it should run
This report is filed against a product which is no longer supported. It is very
likely that the problem is resolved in the current version of Fedora Core or
scheduled to be resolved with the new system-config-packages scheduled to land
in Fedora Core 5.