[SOLVE] Can't compile deluge 1.3.5 in kubuntu lucid

General support for problems installing or using Deluge
Post Reply
lcn.mustard
New User
New User
Posts: 3
Joined: Fri Mar 29, 2013 8:41 pm

[SOLVE] Can't compile deluge 1.3.5 in kubuntu lucid

Post by lcn.mustard »

python-libtorrent 0.15.9-2~lucid~ppa1
libtorrent-rasterbar6 0.15.9-2~lucid~ppa1
kdebase-workspace 4:4.5.3-0ubuntu1~lucid1~ppa1
kubuntu lucid ( updated from backports with dist upgrade )
libboost-python1.42.0
libc6 2.11.1-0ubuntu7.10
python 2.6.6-12~ppal1 and 2.7.3

whereis boost
boost: /usr/include/boost


I can install deluge-gtk 1.3.6 from synaptic but can't install deluge 1.3.5 from sorce...Tkanks!!

python setup.py build
usr/include/boost/preprocessor/iteration/detail/local.hpp:76: instantiated from here
/usr/include/boost/python/detail/make_tuple.hpp:25: error: ‘PyTuple_SET_ITEM’ was not declared in this scope
In file included from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:122,
from /usr/include/boost/python/tuple.hpp:65,
from /usr/include/boost/python/dict.hpp:12,
from /usr/include/boost/python.hpp:24,
from ./libtorrent/bindings/python/src/torrent_status.cpp:6:
/usr/include/boost/python/detail/make_tuple.hpp: In function ‘boost::python::tuple boost::python::make_tuple(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&, const A10&, const A11&, const A12&, const A13&, const A14&) [with A0 = long int, A1 = long int, A2 = long int, A3 = long int, A4 = long int, A5 = long int, A6 = long int, A7 = long int, A8 = long int, A9 = long int, A10 = long int, A11 = long int, A12 = long int, A13 = long int, A14 = long int]’:
/usr/include/boost/preprocessor/iteration/detail/local.hpp:79: instantiated from here
/usr/include/boost/python/detail/make_tuple.hpp:25: error: ‘PyTuple_SET_ITEM’ was not declared in this scope
In file included from /usr/include/boost/python/args.hpp:25,
from /usr/include/boost/python.hpp:11,
from ./libtorrent/bindings/python/src/torrent_status.cpp:6:
/usr/include/boost/python/object_core.hpp: In constructor ‘boost::python::api::object::object(const T&) [with T = boost::python::tuple]’:
/usr/include/boost/python/numeric.hpp:121: instantiated from ‘void boost::python::numeric::array::resize(const Sequence&) [with Sequence = boost::python::tuple]’
/usr/include/boost/preprocessor/iteration/detail/local.hpp:37: instantiated from here
/usr/include/boost/python/object_core.hpp:326: error: ‘object_base_initializer’ was not declared in this scope
error: command 'gcc' failed with exit status 1
Last edited by lcn.mustard on Sat Mar 30, 2013 7:27 pm, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can't compile deluge 1.3.5 in kubuntu lucid

Post by Cas »

It looks as thought it's attempting to build libtorrent which means you cannot have libtorrent installed properly. Before installing deluge you need to verify with:

Code: Select all

python -c 'import libtorrent; print libtorrent.version'
lcn.mustard
New User
New User
Posts: 3
Joined: Fri Mar 29, 2013 8:41 pm

Re: Can't compile deluge 1.3.5 in kubuntu lucid

Post by lcn.mustard »

:~$ python -c 'import libtorrent; print libtorrent.version'Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named libtorrent
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can't compile deluge 1.3.5 in kubuntu lucid

Post by Cas »

So make sure python-libtorrent and libtorrent-rasterbar are installed.
lcn.mustard
New User
New User
Posts: 3
Joined: Fri Mar 29, 2013 8:41 pm

Re: Can't compile deluge 1.3.5 in kubuntu lucid

Post by lcn.mustard »

Thank you! I managed to install version 1.3.5!

After install may libs
" sudo apt-get install libboost-filesystem-dev libboost-iostreams-dev libboost-system-dev libboost-thread-dev python-dbg"
I still can't compile then instead of "python setup.py clean-a" I used "/usr/bin/python2.6 python setup.py clean-a"
The command "python" link to version 2.7.3 and could not import the LibTorrent but with "/usr/bin/python2.6" link to version 2.66 the command ">>> import LibTorrent" worked and so I didn't need to compile LibTorrent.
It seems to be running well.
Thank you! :P
Post Reply