1.2.0.rc3 daemon fails to start, python-libtorrent missing

General support for problems installing or using Deluge
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by lvm »

[ERROR ] 11:33:09 main:216 No module named libtorrent
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/deluge-1.2.0_rc3-py2.5.egg/deluge/main.py", line 209, in start_daemon
Daemon(options, args)
File "/usr/lib/python2.5/site-packages/deluge-1.2.0_rc3-py2.5.egg/deluge/core/daemon.py", line 134, in __init__
from deluge.core.core import Core
File "/usr/lib/python2.5/site-packages/deluge-1.2.0_rc3-py2.5.egg/deluge/core/core.py", line 36, in <module>
from deluge._libtorrent import lt
File "/usr/lib/python2.5/site-packages/deluge-1.2.0_rc3-py2.5.egg/deluge/_libtorrent.py", line 59, in <module>
import libtorrent as lt
ImportError: No module named libtorrent

libtorrent directory is missing from the rc3 sources, I've copied it from rc2, rebuilt and reinstalled rc3 and it seems to be working.
Last edited by lvm on Mon Nov 02, 2009 9:06 am, edited 1 time in total.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by johnnyg »

the answer to your error is on the faq: http://dev.deluge-torrent.org/wiki/Faq# ... rrenterror.

how did you install deluge?

the release notes mention that libtorrent is no longer included in the source.

you should be able to install libtorrent from your distro's repo (it's libtorrent-rasterbar in ubuntu).
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by lvm »

I get yet another chance to rant about non-existing ubuntu LTS support - there is no libtorrent-rasterbar in hardy packages.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by johnnyg »

lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by lvm »

Thanks.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by johnnyg »

no worries ;)
vasyog
New User
New User
Posts: 4
Joined: Mon Nov 02, 2009 6:48 pm

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by vasyog »

just rebuilt deluge from svn 1.2_RC rev. 5911 and got this:
kernel: [84955.962568] deluged[13110]: segfault at 4 ip 01274162 sp bfd23090 error 4 in libtorrent.so[fa2000+4e8000]
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by andar »

vasyog wrote:just rebuilt deluge from svn 1.2_RC rev. 5911 and got this:
kernel: [84955.962568] deluged[13110]: segfault at 4 ip 01274162 sp bfd23090 error 4 in libtorrent.so[fa2000+4e8000]
Did you do a clean build? Can you get a backtrace of the segfault?

Code: Select all

gdb --args python /usr/bin/deluged -d
(gdb) run
#after crash
(gdb) bt
vasyog
New User
New User
Posts: 4
Joined: Mon Nov 02, 2009 6:48 pm

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by vasyog »

i've checkouted http://svn.deluge-torrent.org/branches/1.2_RC and build

installed in /usr/local/lib/python2.6/dist-packages

Code: Select all

Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python /usr/bin/deluged -d
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File "/usr/bin/deluged", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2566, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: deluge==1.1.6

Program exited with code 01.
(gdb) bt
No stack.
(gdb) 
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: 1.2.0.rc3 daemon fails to start, python-libtorrent missing

Post by andar »

vasyog wrote:i've checkouted http://svn.deluge-torrent.org/branches/1.2_RC and build

installed in /usr/local/lib/python2.6/dist-packages

Code: Select all

Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python /usr/bin/deluged -d
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File "/usr/bin/deluged", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2566, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: deluge==1.1.6

Program exited with code 01.
(gdb) bt
No stack.
(gdb) 
Where did you install it to? Change /usr/bin/deluged to the proper startup script.. It seems the one in /usr/bin is pointing to a deluge-1.1.6 installation.
Post Reply