You are not logged in.

#1 2010-04-26 02:29:39

mDuo13
Member
Registered: 2010-04-25
Posts: 94

deluge missing some dependencies?

I installed Deluge (bittorrent client) today.

pacman -S deluge

Initially the client program wouldn't run:

[mduo13@trace ~]$ deluge
[ERROR   ] 18:51:37 ui:146 No module named gtk
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge/ui/ui.py", line 127, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
    from gtkui import start
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/gtkui.py", line 41, in <module>
    reactor = gtk2reactor.install()
  File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 354, in install
    reactor = Gtk2Reactor(useGtk)
  File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 101, in __init__
    import gtk
ImportError: No module named gtk
[ERROR   ] 18:51:37 ui:147 There was an error whilst launching the request UI: gtk
[ERROR   ] 18:51:37 ui:148 Look at the traceback above for more information.

Then I installed pygtk:

sudo pacman -S pygtk

Then I got a different error when trying to start the client:

[mduo13@trace ~]$ deluge
Traceback (most recent call last):
  File "/usr/bin/deluge", line 8, in <module>
    load_entry_point('deluge==1.2.3', 'console_scripts', 'deluge')()
  File "/usr/lib/python2.6/site-packages/deluge/main.py", line 121, in start_ui
    UI(options, args, options.args)
  File "/usr/lib/python2.6/site-packages/deluge/ui/ui.py", line 128, in __init__
    ui = GtkUI(args)
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/gtkui.py", line 200, in __init__
    self.queuedtorrents = QueuedTorrents()
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/queuedtorrents.py", line 63, in __init__
    self.dialog.set_icon(common.get_logo(32))
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/common.py", line 58, in get_logo
    size, size)
glib.GError: Unrecognized image file format

A quick search turned up a dependency on librsvg, so I installed that:

sudo pacman -S librsvg
resolving dependencies...
looking for inter-conflicts...

Targets (3): libcroco-0.6.2-1  libgsf-1.14.16-1  librsvg-2.26.2-1  

Total Download Size:    0.50 MB
Total Installed Size:   2.70 MB

Proceed with installation? [Y/n] 
:: Retrieving packages from extra...
 libcroco-0.6.2-1-x86_64  130.7K  361.9K/s 00:00:00 [##########################################################################] 100%
 libgsf-1.14.16-1-x86_64  251.4K  355.1K/s 00:00:01 [##########################################################################] 100%
 librsvg-2.26.2-1-x8...   125.7K  360.2K/s 00:00:00 [##########################################################################] 100%
checking package integrity...
(3/3) checking for file conflicts                   [##########################################################################] 100%
(1/3) installing libcroco                           [##########################################################################] 100%
(2/3) installing libgsf                             [##########################################################################] 100%
(3/3) installing librsvg                            [##########################################################################] 100%
Optional dependencies for librsvg
    python: rsvg commandline utility

Finally, the Deluge client GUI runs, albeit with some warnings:

[mduo13@trace ~]$ deluge
/usr/lib/python2.6/site-packages/deluge/core/core.py:502: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
/usr/lib/python2.6/site-packages/deluge/core/core.py:508: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
/usr/lib/python2.6/site-packages/deluge/core/core.py:496: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
/usr/lib/python2.6/site-packages/deluge/core/core.py:611: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
[ERROR   ] 18:58:20 config:427 Error backing up old config..

^C[ERROR   ] 18:58:44 config:427 Error backing up old config..

After that I am able to associate it with .torrent files in Firefox and successfully use it to download.

Offline

#2 2010-04-26 02:33:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: deluge missing some dependencies?

> pacman -Si deluge
Repository     : extra
Name           : deluge
Version        : 1.2.3-4
URL            : http://deluge-torrent.org/
Licenses       : GPL3  
Groups         : None
Provides       : None
Depends On     : pyxdg  setuptools  libtorrent-rasterbar>=0.15.0  twisted  
                 pyopenssl  xdg-utils  python-chardet  
Optional Deps  : python-notify: libnotify notifications
                 pygtk: needed for gtk ui
                 librsvg: needed for gtk ui
                 python-mako: needed for web ui

Offline

#3 2010-04-26 03:36:55

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: deluge missing some dependencies?

Try installing python-mako

Offline

Board footer

Powered by FluxBB