Page 1 of 1

Deluge won't start - ImportError: No module named libtorrent

Posted: Wed Sep 16, 2009 4:24 pm
by omfgbunnies
Running deluged gives me this error:

Code: Select all

# cat deluged.log 
[ERROR   ] 18:06:25 main:207 No module named libtorrent
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/deluge/main.py", line 204, in start_daemon
    Daemon(options, args)
  File "/var/lib/python-support/python2.5/deluge/core/daemon.py", line 54, in __init__
    from deluge.core.core import Core
  File "/var/lib/python-support/python2.5/deluge/core/core.py", line 57, in <module>
    import libtorrent as lt
ImportError: No module named libtorrent

Basically this happens when I attempt to launch deluged. I'm assuming this is the reason that I'm getting this error in the webui:

Code: Select all

--Deluge Error--
NoCoreError : 'The core proxy is invalid.'
path : /connect
file : /var/lib/python-support/python2.5/deluge/ui/client.py in call, line 123

--Input--
<Storage {'other_uri': '', 'uri': 'http://localhost:58846', 'submit': 'Connect'}>

--Versions--
WebUi : 1.1.9r
Python 2.5.3 (r253:67855, Dec 21 2008, 10:45:24) 
[GCC 4.3.3 20081217 (prerelease)]:

--Traceback--
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/webapi.py", line 310, in wsgifunc
    result = func()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "/var/lib/python-support/python2.5/deluge/ui/webui/pages.py", line 334, in POST
    utils.daemon_connect(uri)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/utils.py", line 211, in daemon_connect
    webui_plugin_manager.start()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/components.py", line 151, in start
    aclient.get_enabled_plugins(self._on_get_enabled_plugins)
  File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 377, in async_proxy
    return self.core.call(method_name, *args, **kwargs)
  File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 124, in call
    raise deluge.error.NoCoreError("The core proxy is invalid.")
I seem to have libtorrent on the system:

Code: Select all

# apt-get install python-libtorrent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-libtorrent is already the newest version.

What can I do to make deluged start? :oops:

Re: Deluge won't start - ImportError: No module named libtorrent

Posted: Thu Sep 17, 2009 2:18 am
by andar
Install libtorrent.

Re: Deluge won't start - ImportError: No module named libtorrent

Posted: Thu Sep 17, 2009 11:58 am
by omfgbunnies
As I said, I seem to have libtorrent installed. I've sifted around and cannot find any useful guide for this.

How on earth do I actually get libtorrent installed and talking to Deluge?