[SOLVED] 1.2.3 cant start deluged

General support for problems installing or using Deluge
Post Reply
Shikoru
New User
New User
Posts: 7
Joined: Tue Feb 23, 2010 11:09 pm

[SOLVED] 1.2.3 cant start deluged

Post by Shikoru »

I am trying to get deluged to run debian 5. I keep getting the error "ImportError: No module named libtorrent".
I downloaded the libtorrent source and used this to install.

Code: Select all

./configure
make
sudo make install
but it still gives me the error.
I have also tried to use the version in the repository "libtorrent-rasterbar0" with the same results.

deluged -d output

Code: Select all

[ERROR   ] 21:17:04 main:216 No module named libtorrent
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge-1.2.3-py2.5.egg/deluge/main.py", line 209, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.5/site-packages/deluge-1.2.3-py2.5.egg/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.5/site-packages/deluge-1.2.3-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.3-py2.5.egg/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: No module named libtorrent
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: 1.2.3 cant start deluged

Post by Cas »

You need libtorrent from here either 0.14.10 or 0.15 and need to compile Deluge with those files in a libtorrent subfolder of the deluge folder.

You should probably note this post: http://forum.deluge-torrent.org/viewtop ... =7&t=30805
Shikoru
New User
New User
Posts: 7
Joined: Tue Feb 23, 2010 11:09 pm

Re: 1.2.3 cant start deluged

Post by Shikoru »

Ok, I use the 0.14.9 version to build mine. To build deluge with it do i just take what I extracted from the libtorrent tarball and put it there or is it a specific directory?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: 1.2.3 cant start deluged

Post by Cas »

put the files from the libtorrent tarball into a directory called libtorrent, created within the deluge source file directory
Shikoru
New User
New User
Posts: 7
Joined: Tue Feb 23, 2010 11:09 pm

Re: 1.2.3 cant start deluged

Post by Shikoru »

Thank you very much. It works for me. (never was to good at figuring this stuff out)
SeLfKiLlEr

Re: [SOLVED] 1.2.3 cant start deluged

Post by SeLfKiLlEr »

Hi there i've the same problem with deluge 1.2.3 and Debian 5.0.4 (lenny)(2.6.26)

now i've downloaded the libtorrent-rasterbar-0.15.0.tar.gz file and extracted it into a newly created 'libtorrent' folder in */deluge-1.2.3/" next to docs and deluge

first is that correct ?
second

i get some errors while building the new setup ( python setup.py build)

Code: Select all

building 'libtorrent' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I -I/usr/include/python2.5 -c ./libtorrent/src/ut_pex.cpp -o build/temp.linux-i686-2.5/./libtorrent/src/ut_pex.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/socket.hpp:51:27: error: asio/ip/tcp.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:52:27: error: asio/ip/udp.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:53:31: error: asio/io_service.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:54:35: error: asio/deadline_timer.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:55:26: error: asio/write.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:56:25: error: asio/read.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:57:32: error: asio/time_traits.hpp: No such file or directory
./libtorrent/include/libtorrent/socket.hpp:58:41: error: asio/basic_deadline_timer.hpp: No such file or directory
In file included from ./libtorrent/include/libtorrent/socket.hpp:76,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/error_code.hpp:45:31: error: asio/error_code.hpp: No such file or directory
In file included from ./libtorrent/include/libtorrent/peer_connection.hpp:77,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/chained_buffer.hpp:39:27: error: asio/buffer.hpp: No such file or directory
In file included from ./libtorrent/include/libtorrent/socket.hpp:75,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/time.hpp: In function ‘libtorrent::ptime libtorrent::max_time()’:
./libtorrent/include/libtorrent/time.hpp:162: error: ‘numeric_limits’ is not a member of ‘std’
./libtorrent/include/libtorrent/time.hpp:162: error: ‘::max’ has not been declared
./libtorrent/include/libtorrent/time.hpp:162: error: expected primary-expression before ‘(’ token
./libtorrent/include/libtorrent/time.hpp:162: error: ‘numeric_limits’ is not a member of ‘std’
./libtorrent/include/libtorrent/time.hpp:162: error: expected primary-expression before ‘>’ token
./libtorrent/include/libtorrent/time.hpp:162: error: ‘::max’ has not been declared
./libtorrent/include/libtorrent/time.hpp: At global scope:
./libtorrent/include/libtorrent/time.hpp:175: error: ‘time_traits’ is not a template
./libtorrent/include/libtorrent/time.hpp:176: error: explicit specialization of non-template ‘asio::time_traits’
./libtorrent/include/libtorrent/time.hpp:187: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/libtorrent/time.hpp:187: error: ISO C++ forbids declaration of ‘time_duration’ with no type
./libtorrent/include/libtorrent/time.hpp:187: error: expected ‘;’ before ‘to_posix_duration’
./libtorrent/include/libtorrent/time.hpp:190: error: expected `;' before ‘}’ token
In file included from ./libtorrent/include/libtorrent/socket.hpp:76,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/error_code.hpp:247: error: ‘error_code’ in namespace ‘asio’ does not name a type
./libtorrent/include/libtorrent/error_code.hpp:248: error: ‘asio::error’ has not been declared
./libtorrent/include/libtorrent/error_code.hpp:248: error: expected initializer before ‘get_posix_category’
./libtorrent/include/libtorrent/error_code.hpp:249: error: ‘asio::error’ has not been declared
./libtorrent/include/libtorrent/error_code.hpp:249: error: expected initializer before ‘get_system_category’
./libtorrent/include/libtorrent/error_code.hpp:251: error: ‘boost::system’ has not been declared
./libtorrent/include/libtorrent/error_code.hpp:251: error: expected constructor, destructor, or type conversion before ‘const’
./libtorrent/include/libtorrent/error_code.hpp:295: error: expected `)' before ‘const’
./libtorrent/include/libtorrent/error_code.hpp:302: error: ‘error_code’ does not name a type
./libtorrent/include/libtorrent/error_code.hpp:304: error: ‘error_code’ does not name a type
./libtorrent/include/libtorrent/error_code.hpp: In member function ‘virtual const char* libtorrent::libtorrent_exception::what() const’:
./libtorrent/include/libtorrent/error_code.hpp:298: error: ‘m_error’ was not declared in this scope
In file included from ./libtorrent/include/libtorrent/socket.hpp:77,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/escape_string.hpp: At global scope:
./libtorrent/include/libtorrent/escape_string.hpp:55: error: ‘error_code’ has not been declared
In file included from ./libtorrent/include/libtorrent/peer_connection.hpp:61,
                 from ./libtorrent/src/ut_pex.cpp:45:
./libtorrent/include/libtorrent/socket.hpp:87: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:88: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:89: error: ‘asio::async_write’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:90: error: ‘asio::async_read’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:92: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:92: error: expected initializer before ‘stream_socket’
./libtorrent/include/libtorrent/socket.hpp:93: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:93: error: expected initializer before ‘address’
./libtorrent/include/libtorrent/socket.hpp:94: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:94: error: expected initializer before ‘address_v4’
./libtorrent/include/libtorrent/socket.hpp:95: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:95: error: expected initializer before ‘address_v6’
./libtorrent/include/libtorrent/socket.hpp:96: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:96: error: expected initializer before ‘datagram_socket’
./libtorrent/include/libtorrent/socket.hpp:97: error: ‘asio::ip’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:97: error: expected initializer before ‘socket_acceptor’
./libtorrent/include/libtorrent/socket.hpp:98: error: ‘io_service’ in namespace ‘asio’ does not name a type
./libtorrent/include/libtorrent/socket.hpp:99: error: expected initializer before ‘<’ token
./libtorrent/include/libtorrent/socket.hpp:118: error: ‘libtorrent::print_address’ declared as an ‘inline’ variable
./libtorrent/include/libtorrent/socket.hpp:118: error: ‘address’ was not declared in this scope
./libtorrent/include/libtorrent/socket.hpp:119: error: expected ‘,’ or ‘;’ before ‘{’ token
./libtorrent/include/libtorrent/socket.hpp:124: error: ‘libtorrent::print_endpoint’ declared as an ‘inline’ variable
./libtorrent/include/libtorrent/socket.hpp:124: error: ‘tcp’ has not been declared
./libtorrent/include/libtorrent/socket.hpp:125: error: expected ‘,’ or ‘;’ before ‘{’ token
./libtorrent/src/ut_pex.cpp:446: error: expected `}' at end of input
error: command 'gcc' failed with exit status 1
i'm not very familiar with sources and compiling them so it would be nice if someone could help me with that.

thx a lot

ps: dependencies are installed like it says in the README
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [SOLVED] 1.2.3 cant start deluged

Post by Cas »

that means the libtorrent build part is failing, you may need libboost-dev installed.

the best way to check is to extract the libtorrent files separately and run ./configure and it will error out and tell you what dependencies are missing
SeLfKiLlEr

Re: [SOLVED] 1.2.3 cant start deluged

Post by SeLfKiLlEr »

hmm yeah the boostlib seems to be the problem

i've only 1.341 installed (newest via apittude for me

i've downloaded the 1.42 libraries but i don't know what to do with them :( the INSTALL and index.html aren't helping

i hope you could

------
EDIT: works now , thx
Post Reply