Can't start deluge "GtkWarning: could not open display"

Support for Deluge on Apple Mac OS
kbr3813

Can't start deluge "GtkWarning: could not open display"

Post by kbr3813 »

Hi,

Would appreciate if anyone can help. Whenever I start deluge I get the below error message. Thanks

mac-computer:/etc root# deluge
/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
File "/opt/local/bin/deluge", line 112, in <module>
bus = dbus.SessionBus()
File "/opt/local/lib/python2.5/site-packages/dbus/_dbus.py", line 216, in __new__
mainloop=mainloop)
File "/opt/local/lib/python2.5/site-packages/dbus/_dbus.py", line 105, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/opt/local/lib/python2.5/site-packages/dbus/bus.py", line 121, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute dbus-launch to autolaunch D-Bus session
robertogluck
New User
New User
Posts: 6
Joined: Sat Nov 24, 2007 10:21 pm

Re: Can't start deluge "GtkWarning: could not open display"

Post by robertogluck »

I have exactly the same problem.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Can't start deluge "GtkWarning: could not open display"

Post by markybob »

robertogluck wrote:I have exactly the same problem.
does mac osx have dbus-launch? if so, try typing in `dbus-launch deluge` instead of just `deluge`
robertogluck
New User
New User
Posts: 6
Joined: Sat Nov 24, 2007 10:21 pm

Re: Can't start deluge "GtkWarning: could not open display"

Post by robertogluck »

Thanks for the reply. Actually, Mac OS does seem to have dbus-launch, but when I try "dbus-launch deluge", it looks like it works better, but I still get an error. It says :

/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
no existing Deluge session
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: invalid (NULL) pointer instance
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: Invalid icon size 1

, domain='deluge')
Bus error

Do you have any idea why ?
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Can't start deluge "GtkWarning: could not open display"

Post by markybob »

robertogluck wrote:Thanks for the reply. Actually, Mac OS does seem to have dbus-launch, but when I try "dbus-launch deluge", it looks like it works better, but I still get an error. It says :

/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
no existing Deluge session
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: invalid (NULL) pointer instance
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
, domain='deluge')
/opt/local/lib/python2.5/site-packages/deluge/wizard.py:46: GtkWarning: Invalid icon size 1

, domain='deluge')
Bus error

Do you have any idea why ?
did you su or sudo at all? if you did, dont :p
robertogluck
New User
New User
Posts: 6
Joined: Sat Nov 24, 2007 10:21 pm

Re: Can't start deluge "GtkWarning: could not open display"

Post by robertogluck »

No I did not su or sudo. When I do, I get the same error anyway.
Could I try anything else, you think ?
bitguy

Re: Can't start deluge "GtkWarning: could not open display"

Post by bitguy »

I'm having EXACTLY the same problem, word for word same error messages.

Specs: Intel Macbook 2Ghz, Tiger, XCode, X11 (&SDK), Macports

Any suggestions??? Really want to get rid of azureus for something that doesn't use up all my machine's resources! Please help
thanks in advance
bitguy

Re: Can't start deluge "GtkWarning: could not open display"

Post by bitguy »

OK, so I got it started
1) loaded X11.app
2) used xterm to execute /opt/local/bin/deluge

get 2 errors prompts (pop-up) saying: -
External command python2.5 not found

then it loads, first time was ok, I loaded a torrent, then it crashed, now it crashes about 5 seconds after opening, every time.

any ideas??
robertogluck
New User
New User
Posts: 6
Joined: Sat Nov 24, 2007 10:21 pm

Re: Can't start deluge "GtkWarning: could not open display"

Post by robertogluck »

Thanks for the tip, bitguy. I could get deluge started the same way (with the same errors). I downloaded a torrent too, but I did not get a crash (yet).

It is generally buggy. I get messages like "could not find xdg-open" or some other stuff.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Can't start deluge "GtkWarning: could not open display"

Post by markybob »

robertogluck wrote:Thanks for the tip, bitguy. I could get deluge started the same way (with the same errors). I downloaded a torrent too, but I did not get a crash (yet).

It is generally buggy. I get messages like "could not find xdg-open" or some other stuff.
could not find xdg-open is because you need to install xdg-utils. it's installed by default by most distributions
Post Reply