After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340662 - text-setup is attempting to open the display.
text-setup is attempting to open the display.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
0.2.x
Other All
: Normal normal
: ---
Assigned To: Rich Burridge
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-04 17:20 UTC by Al Puzzuoli
Modified: 2006-05-05 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for the problem (1.38 KB, application/octet-stream)
2006-05-04 19:02 UTC, Rich Burridge
Details

Description Al Puzzuoli 2006-05-04 17:20:20 UTC
Please describe the problem:
The text mode setup is attempting to open a display, and is therefore crashing 
with a runtime error

Steps to reproduce:
1.From a console, do: orca --text-setup 
2. 
3. 


Actual results:
This results in the following output:

Traceback (most recent call last):
  • File "/usr/bin/orca", line 25 in ?
    import orca.orca
  • File "/usr/lib/python2.4/site-packages/orca/orca.py", line 34 in ?
    import atspi
  • File "/usr/lib/python2.4/site-packages/orca/atspi.py", line 34 in ?
    import rolenames
  • File "/usr/lib/python2.4/site-packages/orca/rolenames.py", line 26 in ?
    import settings
  • File "/usr/lib/python2.4/site-packages/orca/settings.py", line 27 in ?
    import gtk.gdk
  • File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 45 in ?
    from _gtk import *
RuntimeError: could not open display

Expected results:
The text mode setup should run.

Does this happen every time?
yes.

Other information:
Comment 1 Willie Walker 2006-05-04 17:30:19 UTC
The problem here is the import of the gtk module which was just introduced with the addition of the magnification settings support.  Rich, a way around this is to wrap the import and use of gtk stuff in try/except blocks.  
Comment 2 Rich Burridge 2006-05-04 19:02:29 UTC
Created attachment 64825 [details]
Fix for the problem
Comment 3 Rich Burridge 2006-05-04 19:03:56 UTC
Changes checked into CVS HEAD. 
Comment 4 Al Puzzuoli 2006-05-04 23:21:05 UTC
orca --text-setup is still crashing for me, now with the following output:

Traceback (most recent call last):
  • File "/usr/bin/orca", line 25 in ?
    import orca.orca
  • File "/usr/lib/python2.4/site-packages/orca/orca.py", line 34 in ?
    import atspi
  • File "/usr/lib/python2.4/site-packages/orca/atspi.py", line 34 in ?
    import rolenames
  • File "/usr/lib/python2.4/site-packages/orca/rolenames.py", line 26 in ?
    import settings
  • File "/usr/lib/python2.4/site-packages/orca/settings.py", line 198 in ?
    magZoomerBottom                  = screenHeight
NameError: name 'screenHeight' is not defined

Comment 5 Rich Burridge 2006-05-05 00:01:18 UTC
Reopening the bug. I'll investigate further tomorrow.
Comment 6 Rich Burridge 2006-05-05 00:04:23 UTC
Arrgh! It was a cut and paste error. Line 40 in settings.py
needs to be changed from:

screenWidth = 480

to

screenHeight = 480

Al, if you are in a position to try this before tomorrow,
I'd appreciate your feedback, otherwise, when I get in the 
office tomorrow and fire up my development computer, I'll
fix it up then and check it in.

Thanks.
Comment 7 Al Puzzuoli 2006-05-05 01:49:42 UTC
Hi Rich,

This change resolves the problem.

Thanks.

Comment 8 Rich Burridge 2006-05-05 14:08:16 UTC
Thanks Al. Change checked into CVS HEAD.