deluge 5.7.1 sid doesn't start

General support for problems installing or using Deluge
Post Reply
User avatar
hgb
New User
New User
Posts: 9
Joined: Thu Nov 29, 2007 8:38 pm
Location: Netherlands - Hoorn NH
Contact:

deluge 5.7.1 sid doesn't start

Post by hgb »

Hi,

I came across these errors:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/deluge", line 46, in ?
    import deluge.interface
  File "/var/lib/python-support/python2.4/deluge/interface.py", line 37, in ?
    pygtk.require('2.0')
  File "/usr/lib/python2.4/site-packages/pygtk.py", line 61, in require
    assert not sys.modules.has_key('gtk'), \
AssertionError: pygtk.require() must be called before importing gtk
and I believe I solved the problem by changing __init__.py :

Original __init.py__ :

Code: Select all

import gettext
import gtk.glade
import locale
import os
import common

APP = 'deluge'
DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale')
try:
    locale.setlocale(locale.LC_ALL, '')
except:
    try:
        locale.setlocale(locale.LC_MESSAGES, '')
    except:
        pass
gtk.glade.bindtextdomain(APP, DIR)
gtk.glade.textdomain(APP)
gettext.bindtextdomain(APP, DIR)
gettext.textdomain(APP)
gettext.install(APP, DIR, unicode=1)
Changed __init__.py :

Code: Select all

import gettext
import locale
import os
import common

APP = 'deluge'
DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale')
try:
    locale.setlocale(locale.LC_ALL, '')
except:
    try:
        locale.setlocale(locale.LC_MESSAGES, '')
    except:
        import gtk.glade
        gtk.glade.bindtextdomain(APP, DIR)
        gtk.glade.textdomain(APP)
        pass
gettext.bindtextdomain(APP, DIR)
gettext.textdomain(APP)
gettext.install(APP, DIR, unicode=1)
With the changed version it runs without problems (at least as far as I can see now) :mrgreen:

It'll be nice if someone could have a look into that and/or get a better fix.

Enjoy it as much as I do :)
-- hgb
Regards
-- hgb
Post Reply