[FWTools] OpenEv is not working on Linux Red Hat 5.

Frank Warmerdam warmerdam at pobox.com
Thu Jan 10 23:07:54 EST 2008

Tuan Giang wrote:
> Hello guys,
> I generated the NITF files from jpeg images using the "gdal_translate" 
> command. I like to view the generated NITF output files but the "openev 
> -h" command is not working on this machine. I wonder if you guys 
> have came across this problem before. It would be great if you guys can 
> provide some advice. Thanks. 
> [giangt at cluster-dev2 FWTools-2.0.4]$ openev -h
> Setup for user installed hardware acceleration
> Traceback (most recent call last):
>   File "/home/giangt/fwtools/FWTools-2.0.4/bin/../pymod/openev.py", line 
> 80, in ?
>     import gviewapp
>   File "/home/giangt/fwtools/FWTools-2.0.4/bin/../pymod/gviewapp.py", 
> line 136, in ?
>     import gtk
>   File 
> "/home/giangt/fwtools/FWTools-2.0.4/lib/python2.2/site-packages/gtk.py", 
> line 29, in ?
>     _gtk.gtk_init()
> RuntimeError: cannot open display


I imagine this is an X Display issue.  Are you running openev on a different
system from the one that is your display system?  Perhaps you need to run
"xhost +" on your host system, or fix your DISPLAY environment variable to
point to the right place.

On the off chance that is not the issue, you might also try running openev
without the -h switch for using hardward acceleration.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

More information about the FWTools mailing list