tags:

views:

57

answers:

1

I can't nail exactly when/what update I did on my Lucid box but now I get:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
>>> 

Any hints?

UPDATED:

jldupont@server:~$ phidgets-manager 
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:15: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  self.item_exit = gtk.MenuItem( "exit", True)
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:15: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  self.item_exit = gtk.MenuItem( "exit", True)
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:18: Warning: invalid (NULL) pointer instance
  self.menu = gtk.Menu()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:18: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  self.menu = gtk.Menu()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:50: Warning: invalid (NULL) pointer instance
  self.tray=gtk.StatusIcon()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:50: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  self.tray=gtk.StatusIcon()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:50: GtkWarning: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
  self.tray=gtk.StatusIcon()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:50: GtkWarning: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
  self.tray=gtk.StatusIcon()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:50: GtkWarning: gdk_x11_display_get_xdisplay: assertion `GDK_IS_DISPLAY (display)' failed
  self.tray=gtk.StatusIcon()
/usr/lib/phidgets-dbus/phidgetsdbus/apps/app_manager.py:50: GtkWarning: gdk_screen_get_number: assertion `GDK_IS_SCREEN (screen)' failed
  self.tray=gtk.StatusIcon()
/usr/bin/phidgets-manager: line 10:  3899 Segmentation fault      python phidgets-manager.py
+1  A: 

I manage to get rid of the problem by completely reinstalling X:

sudo apt-get remove --purge xserver-xorg

sudo apt-get install xserver-xorg

sudo dpkg-reconfigure xserver-xorg

Hope this helps someone!

jldupont