Bug 999180 - [abrt] system-switch-java-1.1.5-6.fc19: __init__.py:52:_init:RuntimeError: could not open display
Summary: [abrt] system-switch-java-1.1.5-6.fc19: __init__.py:52:_init:RuntimeError: co...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: system-switch-java
Version: 19
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:44dad3ed2a40d9c18cbe586456d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-20 21:31 UTC by Paul Campbell
Modified: 2013-08-21 19:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-21 19:10:51 UTC
Type: ---
Embargoed:


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

Description Paul Campbell 2013-08-20 21:31:52 UTC
Description of problem:
Clicked from Applications Menu Administration-JavaToolkit

Do I have a problem with my DISPLAY ?

Version-Release number of selected component:
system-switch-java-1.1.5-6.fc19

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>
    main()
  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>
    _init()
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
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 21:31:55 UTC
Created attachment 788656 [details]
File: backtrace

Comment 2 Paul Campbell 2013-08-20 21:31:57 UTC
Created attachment 788657 [details]
File: environ

Comment 3 Deepak Bhole 2013-08-21 13:12:18 UTC
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 18:49:20 UTC
[root@dell pwc]# xhost +
access control disabled, clients can connect from any host
[root@dell pwc]#

Comment 5 Deepak Bhole 2013-08-21 18:59:35 UTC
What happens if you try to run system-switch-java after running the xhost + command? Same error?

Comment 6 Paul Campbell 2013-08-21 19:10:51 UTC
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 19:17:39 UTC
No problem, glad the workaround works!


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