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

General support for problems installing or using Deluge
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 »

oops, it's installed in usr/local by default on my ubuntu

Code: Select all

Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python /usr/local/bin/deluged -d
[Thread debugging using libthread_db enabled]
[New Thread 0xb7a7fb70 (LWP 3357)]
[New Thread 0xb727eb70 (LWP 3358)]

Program received signal SIGSEGV, Segmentation fault.
async_accept<boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, libtorrent::aux::session_impl, boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > const&, boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > >, boost::system::error_code const&>, boost::_bi::list4<boost::_bi::value<libtorrent::aux::session_impl*>, boost::_bi::value<boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > >, boost::_bi::value<boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > > >, boost::arg<1> > > > (this=0x8495050, impl=..., peer=..., handler=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
    at /usr/include/boost/asio/detail/reactive_socket_service.hpp:1604
1604	    else if (peer.is_open())
Current language:  auto
The current source language is "auto; currently c++".
(gdb) bt
#0  async_accept<boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, libtorrent::aux::session_impl, boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > const&, boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > >, boost::system::error_code const&>, boost::_bi::list4<boost::_bi::value<libtorrent::aux::session_impl*>, boost::_bi::value<boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > >, boost::_bi::value<boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > > >, boost::arg<1> > > > (this=0x8495050, impl=..., peer=..., handler=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
    at /usr/include/boost/asio/detail/reactive_socket_service.hpp:1604
#1  0x012627b9 in async_accept<boost::asio::stream_socket_service<boost::asio::ip::tcp>, boost::_bi::bind_t<void, boost::_mfi::mf3<void, libtorrent::aux::session_impl, boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > const&, boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > >, boost::system::error_code const&>, boost::_bi::list4<boost::_bi::value<libtorrent::aux::session_impl*>, boost::_bi::value<boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > >, boost::_bi::value<boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > > >, boost::arg<1> > > > (
    this=0x84c56a0, listener=...) at /usr/include/boost/asio/socket_acceptor_service.hpp:214
#2  async_accept<boost::asio::stream_socket_service<boost::asio::ip::tcp>, boost::_bi::bind_t<void, boost::_mfi::mf3<void, libtorrent::aux::session_impl, boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > const&, boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > >, boost::system::error_code const&>, boost::_bi::list4<boost::_bi::value<libtorrent::aux::session_impl*>, boost::_bi::value<boost::shared_ptr<libtorrent::variant_stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, libtorrent::socks5_stream, libtorrent::socks4_stream, libtorrent::http_stream, mpl_::void_> > >, boost::_bi::value<boost::weak_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > > >, boost::arg<1> > > > (this=0x84c56a0, 
    listener=...) at /usr/include/boost/asio/basic_socket_acceptor.hpp:715
---Type <return> to continue, or q <return> to quit---
#3  libtorrent::aux::session_impl::async_accept (this=0x84c56a0, listener=...) at ./libtorrent/src/session_impl.cpp:804
#4  0x0126330f in libtorrent::aux::session_impl::open_listen_port (this=0x84c56a0) at ./libtorrent/src/session_impl.cpp:695
#5  0x01263cbb in libtorrent::aux::session_impl::listen_on (this=0x84c56a0, port_range=..., net_interface=0xb7fa60c4 "")
    at ./libtorrent/src/session_impl.cpp:1945
#6  0x012547ee in libtorrent::session::listen_on (this=0x84b11d0, port_range=..., net_interface=0xb7fa60c4 "")
    at ./libtorrent/src/session.cpp:371
#7  0x0138a256 in listen_on (s=..., min_=53373, max_=53383, interface=0xb7fa60c4 "")
    at ./libtorrent/bindings/python/src/session.cpp:21
#8  0x01397726 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<bool (*)(libtorrent::session&, int, int, char const*), boost::python::default_call_policies, boost::mpl::vector5<bool, libtorrent::session&, int, int, char const*> > >::operator()(_object*, _object*) ()
   from /usr/local/lib/python2.6/dist-packages/deluge-1.2.0_rc3_dev-py2.6-linux-i686.egg/deluge/libtorrent.so
#9  0x007e888f in boost::python::objects::function::call(_object*, _object*) const ()
   from /usr/lib/libboost_python-mt-py26.so.1.38.0
#10 0x007e8a27 in ?? () from /usr/lib/libboost_python-mt-py26.so.1.38.0
#11 0x0119830c in boost::function0<void>::operator() (this=0xbfffe2ec)
    at /usr/include/boost/function/function_template.hpp:989
#12 0x007ef9e8 in boost::python::handle_exception_impl(boost::function0<void>) ()
   from /usr/lib/libboost_python-mt-py26.so.1.38.0
#13 0x007e57b7 in ?? () from /usr/lib/libboost_python-mt-py26.so.1.38.0
#14 0x0806120a in PyObject_Call ()
#15 0x080dbc3c in PyEval_EvalFrameEx ()
#16 0x080dddf2 in PyEval_EvalCodeEx ()
#17 0x080dc1b4 in PyEval_EvalFrameEx ()
#18 0x080dd384 in PyEval_EvalFrameEx ()
#19 0x080dddf2 in PyEval_EvalCodeEx ()
#20 0x080dc1b4 in PyEval_EvalFrameEx ()
#21 0x080dd384 in PyEval_EvalFrameEx ()
#22 0x080dd384 in PyEval_EvalFrameEx ()
#23 0x080dddf2 in PyEval_EvalCodeEx ()
#24 0x080dc1b4 in PyEval_EvalFrameEx ()
---Type <return> to continue, or q <return> to quit---
#25 0x080dddf2 in PyEval_EvalCodeEx ()
#26 0x0816016c in ?? ()
#27 0x0806120a in PyObject_Call ()
#28 0x080684ac in ?? ()
#29 0x0806120a in PyObject_Call ()
#30 0x080aea8e in ?? ()
#31 0x080aa165 in ?? ()
#32 0x0806120a in PyObject_Call ()
#33 0x080dbc3c in PyEval_EvalFrameEx ()
#34 0x080dddf2 in PyEval_EvalCodeEx ()
#35 0x080dc1b4 in PyEval_EvalFrameEx ()
#36 0x080dddf2 in PyEval_EvalCodeEx ()
#37 0x080ddef7 in PyEval_EvalCode ()
#38 0x080faa1f in PyRun_FileExFlags ()
#39 0x080fac12 in PyRun_SimpleFileExFlags ()
#40 0x0805c8d8 in Py_Main ()
#41 0x0805baeb in main ()
(gdb) 
Last edited by vasyog on Mon Nov 02, 2009 8:26 pm, edited 1 time in total.
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:oops, it's installed in usr/local by default on my ubuntu

Code: Select all

gdb --args python /usr/local/bin/deluged -d
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) start
Temporary breakpoint 1 at 0x805bad3
Starting program: /usr/bin/python /usr/local/bin/deluged -d
[Thread debugging using libthread_db enabled]

Temporary breakpoint 1, 0x0805bad3 in main ()
(gdb) bt
#0  0x0805bad3 in main ()
(gdb) 
You need to do 'run' not 'start' as per my instructions....
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 »

yes, i've noticed. sorry, never used gdb before
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

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

Post by abubin »

lvm wrote:[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.

I am getting this error as well if I do not have libtorrent library in deluge folder during compilation. It seems that you need to copy the libtorrent folder to deluge everytime you are compiling deluge. It will not get the libtorrent library correctly eventhough you already compiled it in previous version.
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 »

You should simply be installing a system wide libtorrent library.
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

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

Post by abubin »

ah..okay. Didn't know there is a difference to that.
Post Reply