Bug 999180 - [abrt] system-switch-java-1.1.5-6.fc19: __init__.py:52:_init:RuntimeError: could not open display
[abrt] system-switch-java-1.1.5-6.fc19: __init__.py:52:_init:RuntimeError: co...
Product: Fedora
Classification: Fedora
Component: system-switch-java (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Deepak Bhole
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-08-20 17:31 EDT by Paul Campbell
Modified: 2013-08-21 15:17 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-21 15:10:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: backtrace (1.06 KB, text/plain)
2013-08-20 17:31 EDT, Paul Campbell
no flags Details
File: environ (155 bytes, text/plain)
2013-08-20 17:31 EDT, Paul Campbell
no flags Details

  None (edit)
Description Paul Campbell 2013-08-20 17:31:52 EDT
Description of problem:
Clicked from Applications Menu Administration-JavaToolkit

Do I have a problem with my DISPLAY ?

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.1.6
cmdline:        python /usr/sbin/system-switch-java
dso_list:       pygtk2-2.24.0-7.fc19.i686
executable:     /usr/sbin/system-switch-java
kernel:         3.10.7-200.fc19.i686.PAE
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
__init__.py:52:_init:RuntimeError: could not open display

Traceback (most recent call last):
  File "/usr/sbin/system-switch-java", line 89, in <module>
  File "/usr/sbin/system-switch-java", line 57, in main
    show_dialog(show_gui, NO_JAVA_MESSAGE)
  File "/usr/sbin/system-switch-java", line 81, in show_dialog
    from switch_java_gui import mainDialog
  File "/usr/share/system-switch-java/switch_java_gui.py", line 19, in <module>
    import gtk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
RuntimeError: could not open display

Local variables in innermost frame:
sys: <module 'sys' (built-in)>
sys_path: ['/usr/sbin', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/share/system-switch-java/']
Comment 1 Paul Campbell 2013-08-20 17:31:55 EDT
Created attachment 788656 [details]
File: backtrace
Comment 2 Paul Campbell 2013-08-20 17:31:57 EDT
Created attachment 788657 [details]
File: environ
Comment 3 Deepak Bhole 2013-08-21 09:12:18 EDT
Did you start it from command-line? If so, try running 'xhost +' as the logged in user first.
Comment 4 Paul Campbell 2013-08-21 14:49:20 EDT
[root@dell pwc]# xhost +
access control disabled, clients can connect from any host
[root@dell pwc]#
Comment 5 Deepak Bhole 2013-08-21 14:59:35 EDT
What happens if you try to run system-switch-java after running the xhost + command? Same error?
Comment 6 Paul Campbell 2013-08-21 15:10:51 EDT
xhost +dell
dell being added to access control list

Fixed : Close User Error

( I wondered why I was getting this error in other situations too.
I wonder why I have gotten this error in past releases.
I do notice that my term prompt often show localhost inspite of maxing
ip address static and put the address in /etc/hosts and using hostname dell.
For some reason, it seems to revert to localhost after reboot. 
Something for me to work on. Thank You )
Comment 7 Deepak Bhole 2013-08-21 15:17:39 EDT
No problem, glad the workaround works!

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