Red Hat Bugzilla – Bug 706864
Subscription-manager-gui command displayed Traceback and RuntimeError for runlevel 3
Last modified: 2015-04-23 19:56:52 EDT
Description of problem:
Version-Release number of selected component (if applicable):
Client : Rhel5.7 with following subscription manager client
Steps to Reproduce :
Boot client in run level 3
Execute subscription-manager-gui command on root console.
Expected Result :
No Traceback should display .
Proper message should display for “Xserver” requirement .
Actual Result :
Traceback (most recent call last):
File "/usr/sbin/subscription-manager-gui", line 30, in ?
File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 76, in ?
File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init
RuntimeError: could not open display
This is working properly, since subscription-manager-gui cannot run without X. However, a better error message would be nice. Moving to 6.2.
I tested this against a few other pygtk apps (caribou, system-config-date, meld) and they exhibit the same behavior. After seeing the other apps, I believe the error message should stay as-is, since it is more informative than a generic "cannot find xserver" message.
marking as NOTABUG, feel free to alter if you disagree though.