Discussion:
[PyCUDA] 2015.1.3 driver import error
Guillaume LAURENT
2015-11-03 19:28:45 UTC
Permalink
Hi all,

I am working under linux Fedora 22 and a Nvidia GTX 260. Driver 340.93
and cuda 6-5 are installed, which are the latest supported versions for
this graphic card. I am using python 2.7.10 and I have installed the
full scipy stack through yum.
import pycuda.autoinit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/pycuda/autoinit.py", line
2, in <module>
import pycuda.driver as cuda
File "/usr/lib64/python2.7/site-packages/pycuda/driver.py", line 5,
in <module>
from pycuda._driver import * # noqa
ImportError: /usr/lib64/python2.7/site-packages/pycuda/_driver.so:
undefined symbol: PyUnicodeUCS2_AsWideChar


The same error is not encountered with pycuda 2015.1.2 which seems to
work fine.

Cheers
GuL
Andreas Kloeckner
2015-11-03 19:42:30 UTC
Permalink
Post by Guillaume LAURENT
Hi all,
I am working under linux Fedora 22 and a Nvidia GTX 260. Driver 340.93
and cuda 6-5 are installed, which are the latest supported versions for
this graphic card. I am using python 2.7.10 and I have installed the
full scipy stack through yum.
import pycuda.autoinit
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/pycuda/autoinit.py", line
2, in <module>
import pycuda.driver as cuda
File "/usr/lib64/python2.7/site-packages/pycuda/driver.py", line 5,
in <module>
from pycuda._driver import * # noqa
undefined symbol: PyUnicodeUCS2_AsWideChar
How did you install PyCUDA? From source or did you download a binary? At
any rate, whoever built your PyCUDA module used a Python interpreter
with a different Unicode configuration than yours.

Andreas

_______________________________________________
PyCUDA mailing list
Guillaume LAURENT
2015-11-03 19:45:51 UTC
Permalink
Thanks for your quick reply.
Pycuda has been installed using pip.
Post by Andreas Kloeckner
Post by Guillaume LAURENT
Hi all,
I am working under linux Fedora 22 and a Nvidia GTX 260. Driver 340.93
and cuda 6-5 are installed, which are the latest supported versions for
this graphic card. I am using python 2.7.10 and I have installed the
full scipy stack through yum.
import pycuda.autoinit
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/pycuda/autoinit.py", line
2, in <module>
import pycuda.driver as cuda
File "/usr/lib64/python2.7/site-packages/pycuda/driver.py", line 5,
in <module>
from pycuda._driver import * # noqa
undefined symbol: PyUnicodeUCS2_AsWideChar
How did you install PyCUDA? From source or did you download a binary? At
any rate, whoever built your PyCUDA module used a Python interpreter
with a different Unicode configuration than yours.
Andreas
Andreas Kloeckner
2015-11-03 20:07:15 UTC
Permalink
Post by Guillaume LAURENT
Thanks for your quick reply.
Pycuda has been installed using pip.
Then your Python headers don't match the Python interpreter that you're
trying to run with.

Andreas
Guillaume LAURENT
2015-11-03 20:17:23 UTC
Permalink
Ok.
From my side, 2015.1.2 is enough and I am not able to create a new
package for pip. So if somebody wants to do it, he will be gracefully
thanked...

Closed for me.
Thanks again and have a nice evening.
Guillaume
Post by Andreas Kloeckner
Post by Guillaume LAURENT
Thanks for your quick reply.
Pycuda has been installed using pip.
Then your Python headers don't match the Python interpreter that you're
trying to run with.
Andreas
Loading...