Discussion:
[PyCUDA] Pycuda and boost with Python 3
Chris
2017-12-30 04:45:07 UTC
Permalink
When running Pycuda code on Python 3.6 I get this error when executing
"import pycuda.gl as cuda_gl"

ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0:
undefined symbol: PyClass_Type

It looks like it is using the python 2.7 boost files and not
"libboost_python-py35.so.1.58.0". To use this do I need to configure
something during Pycuda install or in the install directory?



--
Sent from: http://pycuda.2962900.n2.nabble.com/
Andreas Kloeckner
2017-12-30 17:45:39 UTC
Permalink
Post by Chris
When running Pycuda code on Python 3.6 I get this error when executing
"import pycuda.gl as cuda_gl"
undefined symbol: PyClass_Type
It looks like it is using the python 2.7 boost files and not
"libboost_python-py35.so.1.58.0". To use this do I need to configure
something during Pycuda install or in the install directory?
./configure.py --boost-python-libname=boost-python-py36
rm -Rf build
pip install .

should do what you need.

Andreas

Loading...