Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31109 - [boost-libs] Cannot use python-pyopencl due to undefined symbols in libboost_python.so

Attached to Project: Arch Linux
Opened by Lukas Redynk (erdk) - Saturday, 11 August 2012, 22:20 GMT
Last edited by Stéphane Gaudreault (stephane) - Wednesday, 09 January 2013, 01:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Stéphane Gaudreault (stephane)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

I've encountered similar problem to: https://bugs.archlinux.org/task/22800
When I'm trying to import 'pyopencl' in python 3.2.3 I see this error:
>>> import pyopencl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.2/site-packages/pyopencl/__init__.py", line 4, in <module>
import pyopencl._cl as _cl
ImportError: /lib/libboost_python.so.1.50.0: undefined symbol: PyClass_Type

But everything works fine for python2-pyopencl, apparently boost is not compiled with Python3 support.
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Wednesday, 09 January 2013, 01:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  Patch applied. Thanks.
Comment by vlad (gavlig) - Sunday, 16 September 2012, 21:52 GMT
got the same error with blender when i try to use pylux.so for luxrender
Comment by Stéphane Gaudreault (stephane) - Sunday, 14 October 2012, 00:22 GMT
I confirm the problem.

Ionuț : Is there something that would prevent us from building boost with python 3.3.0 ?
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 23 October 2012, 17:37 GMT
Same thing happens if luxrender is installed and pylux is imported:

python -c 'import pylux'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: /usr/lib/libboost_python.so.1.50.0: undefined symbol: PyClass_Type
Comment by Simon (Giggi) - Monday, 10 December 2012, 11:11 GMT
I've the same error.

You probably must compile lib-boost also with the python3 protocol.

python2-pyopencl works fine.

---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-63105a952239> in <module>()
----> 1 import pyopencl

/usr/lib/python3.3/site-packages/pyopencl/__init__.py in <module>()
2
3 try:
----> 4 import pyopencl._cl as _cl
5 except ImportError:
6 import os

ImportError: /usr/lib/libboost_python.so.1.50.0: undefined symbol: PyClass_Type
Comment by Jay Cornwall (jcornwall) - Sunday, 06 January 2013, 01:56 GMT
Attached patch uses --boost-python-libname to select correct libboost_python for Python 3.

Loading...