Page 3 of 3
Re: FreeBSD errors
Posted: Wed Feb 03, 2010 11:31 pm
by tim-m89
Yarik try uninstalling any of the following you have then reinstall deluge:
net-p2p/libtorrent
net-p2p/libtorrent-devel
net-p2p/rblibtorrent
net-p2p/rblibtorrent-devel
I think the deluge port pulls it's own copy of rblibtorrent into it's own python directory and calls it libtorrent.
Re: FreeBSD errors
Posted: Thu Feb 04, 2010 3:44 am
by zar0ku1
andar wrote:
Could you provide debug logs from the daemon?
Run it with: deluged -d -L debug
The port was put back [1.1.9], and I will not be able to show the log
Re: FreeBSD errors
Posted: Fri Apr 02, 2010 6:09 pm
by Spadge
I too am having libtorrent related errors when trying to start deluged.
Code: Select all
[ERROR ] 18:45:11 main:216 dynamic module does not define init function (initlibtorrent)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/deluge-1.2.3-py2.6-freebsd-7.1-RELEASE-p11-i386.egg/deluge/main.py", line 209, in start_daemon
Daemon(options, args)
File "/usr/local/lib/python2.6/site-packages/deluge-1.2.3-py2.6-freebsd-7.1-RELEASE-p11-i386.egg/deluge/core/daemon.py", line 136, in __init__
from deluge.core.core import Core
File "/usr/local/lib/python2.6/site-packages/deluge-1.2.3-py2.6-freebsd-7.1-RELEASE-p11-i386.egg/deluge/core/core.py", line 36, in <module>
from deluge._libtorrent import lt
File "/usr/local/lib/python2.6/site-packages/deluge-1.2.3-py2.6-freebsd-7.1-RELEASE-p11-i386.egg/deluge/_libtorrent.py", line 59, in <module>
import libtorrent as lt
ImportError: dynamic module does not define init function (initlibtorrent)
I followed the instructions on
http://dev.deluge-torrent.org/wiki/Installing/Source after portupgrading the dependencies listed. I also dropped an svn checkout of libtorrent into the deluge-1.2.3 source dir got from here:
http://sourceforge.net/scm/?type=svn&group_id=79942
uname -a
FreeBSD tobermory 7.1-RELEASE-p11 FreeBSD 7.1-RELEASE-p11 #0: Sun Mar 28 02:23:06 BST 2010 root@tobermory:/usr/obj/usr/src/sys/TOBERMORY i386
Any hints on where to get a *working* libtorrent.so or how to create my own?
Thanks!
Re: FreeBSD errors
Posted: Fri Apr 02, 2010 8:08 pm
by Cas
Did you try the 0.15
release of libtorrent?
Re: FreeBSD errors
Posted: Fri Apr 02, 2010 8:57 pm
by Spadge
Cas wrote:Did you try the 0.15
release of libtorrent?
Thanks for the tip; I'm just about to.
Are there any instructions with that? Drop the libtorrent-rasterbar-0.15.0 dir into the deluge-1.2.3 source dir and make as per normal?
**edit**
Ooo, exciting! At first attempt it did no libtorrent stuff, so I renamed libtorrent-rasterbar-0.15.0 to libtorrent, now it's trawling through looking like it's making a proper compile of lt15. And it's using gcc, whereas the basic build of lt in ports uses cc ... fingers crossed!
Re: FreeBSD errors
Posted: Fri Apr 02, 2010 9:30 pm
by Spadge
So near and yet so far!
After a good long churn through libtorrent0.15 compiling, it started throwing up a *lot* of errors ... starting with:
Code: Select all
In file included from /usr/local/include/boost/python/detail/prefix.hpp:13,
from /usr/local/include/boost/python/args.hpp:8,
from /usr/local/include/boost/python.hpp:11,
from ./libtorrent/bindings/python/src/version.cpp:6:
/usr/local/include/boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
and ending with:
Code: Select all
/usr/local/include/boost/preprocessor/iteration/detail/local.hpp:79: instantiated from here
/usr/local/include/boost/python/detail/make_tuple.hpp:25: error: 'PyTuple_SET_ITEM' was not declared in this scope
/usr/local/include/boost/python/object_core.hpp: In constructor 'boost::python::api::object::object(const T&) [with T = boost::python::tuple]':
/usr/local/include/boost/python/numeric.hpp:121: instantiated from 'void boost::python::numeric::array::resize(const Sequence&) [with Sequence = boost::python::tuple]'
/usr/local/include/boost/preprocessor/iteration/detail/local.hpp:37: instantiated from here
/usr/local/include/boost/python/object_core.hpp:315: error: 'object_base_initializer' was not declared in this scope
error: command 'gcc' failed with exit status 1
root@tobermory# where boost
boost-jam-1.39.0 is in devel/boost-jam
boost-libs-1.39.0 is in devel/boost-libs
boost-python-1.37.0_1 is in devel/boost-python-libs
update boost-python-libs I guess?
Re: FreeBSD errors
Posted: Sat Apr 03, 2010 4:19 am
by Spadge
I finally got it working by hacking the setup.py to point to the right directories for lib and include.
Now I'm getting a bunch of deprecation warnings.
Code: Select all
/usr/local/lib/python2.6/site-packages/deluge-1.2.3-py2.6-freebsd-7.1-RELEASE-p11-i386.egg/deluge/core/core.py:611: DeprecationWarning: Use get_session_status().
warnings.warn("Use get_session_status().", DeprecationWarning)
But at least it's working.
Thanks for the tip on libtorrent-0.15
Re: FreeBSD errors
Posted: Wed May 26, 2010 7:28 pm
by janmarek
Hi,
any update on this problem ?
have the problem with deluge 1.1.9 form ports
port versions:
deluge-1.1.9_4,1
boost-python-libs-1.41.0
python26-2.6.5
Code: Select all
terminate called after throwing an instance of
'boost::python::error_already_set'
Abort trap
I tried to use libtorrent-rasterbar-15 - then I can run at least the console UI
GTK+ UI throws this error mentioned above.
gdb output of deluged:
Code: Select all
0x281f9aef in thr_kill () from /lib/libc.so.7
(gdb) bt full
#0 0x281f9aef in thr_kill () from /lib/libc.so.7
No symbol table info available.
#1 0x281ab011 in pthread_kill () from /lib/libthr.so.3
No symbol table info available.
#2 0x281a8e1b in raise () from /lib/libthr.so.3
No symbol table info available.
#3 0x28297514 in abort () from /lib/libc.so.7
No symbol table info available.
#4 0x2919e9a1 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
No symbol table info available.
#5 0x291a2f92 in std::set_unexpected () from /usr/lib/libstdc++.so.6
No symbol table info available.
#6 0x291a2fd6 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#7 0x291a2e70 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
No symbol table info available.
#8 0x2919e950 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
No symbol table info available.
#9 0x291a2f92 in std::set_unexpected () from /usr/lib/libstdc++.so.6
No symbol table info available.
#10 0x291a2fd6 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#11 0x291a2ee2 in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
#12 0x291012cb in boost::python::throw_error_already_set () at libs/python/src/errors.cpp:61
No locals.
#13 0x29106c69 in boost::python::objects::stop_iteration_error () at libs/python/src/object/iterator.cpp:36
Thanks for answer any help appreciated
Regards
Jan Marek
Re: FreeBSD errors
Posted: Sun May 30, 2010 9:15 am
by Spadge
As has been previously stated quite a lot, deluge is unlikely to ever work from ports as there is a problem with python bindings in the libtorrent port (if memory serves).
This is required reading for anyone who wants deluge running in FreeBSD:
http://forum.deluge-torrent.org/viewtop ... =7&t=31255
Trust me: you won't regret using 1.2.x or later even if you have to install it yourself.