gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] gpsd-clients: xpgs: could not open display


From: Eric S. Raymond
Subject: Re: [gpsd-users] gpsd-clients: xpgs: could not open display
Date: Wed, 21 May 2014 05:26:34 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

David Murray <address@hidden>:
> Hi,
> 
> To start off, some information about my current set up:
> 
> - Raspberry Pi (model A) running Raspbian.
> - Adafruit Ultimate GPS Breakout v3.
> - gpsd: 3.6 (revision 3.6).
> 
> I have been using cgps successfully for the last couple of weeks, and I 
> wanted to try and use its graphical older brother, xgps. First, I started 
> gpsd using the following command:
> 
> sudo gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock
> 
> Then, I launched the X server using the ‘startx’ command and after a few 
> seconds I was able to see my desktop on my HDMI monitor. However, I ran into 
> some issues with xgps.
> 
> address@hidden ~ $ xgps
> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: 
> could not open display
>   warnings.warn(str(e), _gtk.Warning)
> /usr/bin/xgps:444: Warning: invalid (NULL) pointer instance
>   self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> /usr/bin/xgps:444: Warning: g_signal_connect_data: assertion 
> `G_TYPE_CHECK_INSTANCE (instance)' failed
>   self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> /usr/bin/xgps:445: GtkWarning: IA__gdk_screen_get_display: assertion 
> `GDK_IS_SCREEN (screen)' failed
>   if not self.window.get_display():
> Traceback (most recent call last):
>   File "/usr/bin/xgps", line 860, in <module>
>     base = Base(deg_type=degreefmt)
>   File "/usr/bin/xgps", line 446, in __init__
>     raise Exception("Can't open display")
> Exception: Can't open display
> address@hidden ~ $
> 
> I’m not sure what is causing this.
> 
> Thanks.
> 

OK, I can say for sure this is something in the pygtk binding going 
pear-shaped right at initialization time, rather than a problem in the
xgps code itself.  

Are you sure X is running?

Is there a DISPLAY variable in your environment?
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]