FS#50745 - [libtorrent-rasterbar]Python3 bindings failing to load (ImportError, undefined symbol: PyClass_Type)

Attached to Project: Arch Linux
Opened by gdonval (gdonval) - Sunday, 11 September 2016, 20:32 GMT
Last edited by Felix Yan (felixonmars) - Wednesday, 02 November 2016, 15:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

libtorrent-rasterbar is provided with bindings for both Python 2 and Python 3.
The Python 3 bindings are failing to load, giving the following error:

ImportError: /usr/lib/libboost_python.so.1.61.0: undefined symbol: PyClass_Type

'PyClass_Type' is a type only defined in Python 2's Boost version, not in Python 3's.

Steps to reproduce:

1. Open: terminal
2. Type: python3 -c "import libtorrent"
3. Error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: /usr/lib/libboost_python.so.1.61.0: undefined symbol: PyClass_Type


Fix:

Please find attached an updated PKGBUILD which is working on my system.
   PKGBUILD (1.7 KiB)
This task depends upon

Closed by  Felix Yan (felixonmars)
Wednesday, 02 November 2016, 15:45 GMT
Reason for closing:  Implemented
Additional comments about closing:  libtorrent-rasterbar 1:1.1.1-4
Comment by Bram van den Heuvel (b.vandenheuvel) - Saturday, 01 October 2016, 19:15 GMT
The posted PKGBUILD works for me as well.
Comment by CP (Lord Aro) - Wednesday, 02 November 2016, 10:57 GMT
Any update on getting this? It's definitely required for any python 3 usage
Comment by gdonval (gdonval) - Wednesday, 02 November 2016, 11:05 GMT
Felix must be busy and this package is not really popular so I guess this will have to wait until the next upstream update. :)

For the time being, you can download the PKGBUILD I provided to an empty folder and run `makepkg` to compile and install it with `sudo pacman -U <package>.tar.xz`. Cheers
Comment by Felix Yan (felixonmars) - Wednesday, 02 November 2016, 15:45 GMT
Sorry for the delay. Implemented in the latest package.

Loading...