Building Deluge 2.0 / Libtorrent 1.2.2 against Python 3
Posted: Mon Nov 04, 2019 5:00 pm
Trying to get off Python 2.7, on Ubuntu 16.04 (it looks like 18.04 still ships with Python 2.7 as well). When I run the configure script it looks okay:
When I install it though, it looks like it's linked against Libboost for Python 2.7?
libboost-python dev installs libraries for both Python 2.7 and 3.5, so no way to avoid that, I just don't know what I'm missing. I'm not a developer but have successfully built deluge in the past using the documented steps on Ubuntu. I tried getting Deluge 2.0.3 from the PPA, but it depends on libtorrent >= 1.1.1 which I can't find in any Ubuntu 16.04 repo.
Code: Select all
Python environment:
-automake-
binary: /usr/bin/python
version: 3.5
platform: linux
prefix: ${prefix}
exec_prefix: ${exec_prefix}
pythondir: ${prefix}/lib/python3.5/site-packages
pkgpythondir: ${pythondir}/libtorrent-rasterbar
pyexecdir: ${exec_prefix}/lib/python3.5/site-packages
pkgpyexecdir: ${pyexecdir}/libtorrent-rasterbar
-m4-
cppflags: -I/usr/include/python3.5m
ldflags:
extra libs: -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
Code: Select all
Python 3.5.2 (default, Oct 8 2019, 13:06:37)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.q
>>> import libtorrent
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type
>>>