jash-kothari-forks / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
0 stars 0 forks source link

libtorrent 0.16.9 with Python3 on Ubuntu 12.10 (boost 1.49) #451

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I noticed libtorrent-py3.3 windows packages and figured libtorrent was ready 
for py3, but maybe not.

The following compiles libtorrent+py3.2 but results in Segmentation Fault upon 
'import libtorrent'
------
apt-get build-dep libtorrent-rasterbar6
apt-get install python3.2-dev
export 'PYTHON_VERSION=3.2'; export 'PYTHON=/usr/bin/python3.2'
./configure --enable-python-binding
make
make install
ldconfig 
------

python3.3 doesn't configure at all, suggests python3.3-dev is missing but it's 
there

What can i do to make python3 work with Ubuntu 12.10 Quantal?

Original issue reported on code.google.com by onlinema...@gmail.com on 23 Mar 2013 at 2:59

GoogleCodeExporter commented 8 years ago
Python3.3 on Ubuntu 13.04 beta with Boost 1.53 leads to the same result, 
configures/compiles but segfaults on 'import libtorrent' 

There are no leads to follow.
I would really appreciate help getting libtorrent working with Python3+ and 
Ubuntu. 

Original comment by onlinema...@gmail.com on 23 Mar 2013 at 5:09

GoogleCodeExporter commented 8 years ago
unfortunately it hasn't been well tested for python 3, and there are a few 
known issues with unicode vs. byte array issues.

Do you have any more information about the segmentation fault you get though?

Original comment by arvid.no...@gmail.com on 3 May 2013 at 8:36

GoogleCodeExporter commented 8 years ago
yes, these are ubuntu issues

libtorrent was getting compiled against boost for py2 which caused the segfault 
on import
"--with-boost-python=py32" fixed it, didn't think it was needed since i was 
already setting the py version

also 3.3 compiles fine on 12.10 quantal, issue there is with ubuntu libs layout 
which isn't consistent for python 2 and 3.3, a few things needs manual symlinks 
to help the configure

Original comment by onlinema...@gmail.com on 3 May 2013 at 11:56

GoogleCodeExporter commented 8 years ago
I'd be more than happy to apply any patches you might have to make it build 
out-of-the-box, or at least to be closer to.

Original comment by arvid.no...@gmail.com on 3 May 2013 at 4:13

GoogleCodeExporter commented 8 years ago
thanks, your support is great, i don't think this warrants a patch though,
i posted this before i found out py3 isn't yet compatible with libtorrent.
also ubuntu 12.10 isn't relevant since 13.04 came out last week and it works 
fine.

py3 'bytes' support should be the priority
everybody will appreciate "apt-get install python3-libtorrent" 

Original comment by onlinema...@gmail.com on 3 May 2013 at 5:03

GoogleCodeExporter commented 8 years ago

Original comment by arvid.no...@gmail.com on 5 May 2013 at 10:49