FS#33429 - [libtorrent-rasterbar] Missing python3 bindings

Attached to Project: Arch Linux
Opened by Jonas Heinrich (onny) - Friday, 18 January 2013, 03:46 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 27 July 2016, 15:02 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Ionut Biru (wonder)
Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
According to the authors of libtorrent-rasterbar, the program support python3 bindings since several versions. Unfortunately, the buildscript forces the python2 environment.


Additional info:
* package version(s)
libtorrent-rasterbar 1:0.16.6-1
* config and/or log files etc.


Steps to reproduce:
onny@onny> /usr/bin/python3 ~
Python 3.3.0 (default, Dec 22 2012, 21:14:17)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'libtorrent'
>>>
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 27 July 2016, 15:02 GMT
Reason for closing:  Implemented
Additional comments about closing:  libtorrent-rasterbar 1:1.1-3
Comment by Jonas Heinrich (onny) - Sunday, 12 May 2013, 15:47 GMT
For testing purpose, I uploaded a package for python 3 bindings: https://aur.archlinux.org/packages/python-libtorrent-rasterbar/
I didn't test it yet but at least I'm able to import the module with Python 3.3 :)
Comment by Jonas Heinrich (onny) - Tuesday, 14 May 2013, 00:52 GMT
After additional testing I must note that the python bindings only work in a 64bit archlinux system (even using it in an actual python3 project doesn't make any trouble). Importing the module using a 32bit arch doesn't work and results in a segmentation fault.
Comment by Jonas Heinrich (onny) - Wednesday, 15 May 2013, 18:33 GMT
Bug still present in libtorrent-rasterbar 0.16.10 :(
I opened a bug upstream: https://code.google.com/p/libtorrent/issues/detail?id=478&thanks=478&ts=1368643669
Comment by Jonas Heinrich (onny) - Sunday, 07 July 2013, 19:00 GMT
Here is a gdb backtrace for libtorrent compiled with debug symbols
Comment by Jonas Heinrich (onny) - Sunday, 07 July 2013, 20:44 GMT
Following "patch" fixes the crash of libtorrent with python3 on x32 systems:
sed -i '/all_categories/s/0x7fffffff/0xfffffff/' include/libtorrent/alert.hpp

Now I'm able to import and use libtorrent on my 32-bit system :)
Comment by Allan McRae (Allan) - Friday, 30 August 2013, 07:44 GMT
Apologies - reopening. The version this is reported fixed in is not in the repos yet...

Loading...