Bug 706864 - Subscription-manager-gui command displayed Traceback and RuntimeError for runlevel 3
Summary: Subscription-manager-gui command displayed Traceback and RuntimeError for run...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 6.2
Assignee: Bryan Kearney
QA Contact: spandey
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel62
TreeView+ depends on / blocked
 
Reported: 2011-05-23 09:51 UTC by spandey
Modified: 2015-04-23 23:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 15:51:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description spandey 2011-05-23 09:51:13 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
3/3

Prerequisites :
Client : Rhel5.7 with following subscription manager client 
subscription-manager-firstboot-0.95.5.18-1.git.4.364aa10.el5

subscription-manager-0.95.5.18-1.git.4.364aa10.el5

subscription-manager-gnome-0.95.5.18-1.git.4.364aa10.el5

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 ?

    import gtk

  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 76, in ?

    _init()

  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init

    _gtk.init_check()

RuntimeError: could not open display

Comment 1 Chris Duryee 2011-05-23 14:19:56 UTC
This is working properly, since subscription-manager-gui cannot run without X. However, a better error message would be nice. Moving to 6.2.

Comment 3 Chris Duryee 2011-08-15 15:51:20 UTC
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.


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