Dnia 2013-02-25, pon o godzinie 15:15 -0600, Jason Wirth pisze:
> Ok, I tried doing something else. 
> 
> I'm not sure it's right, because the tests don't properly run. 
> 
> 
> This time I ran `./configure.py` without any flags and used the
> regular make.
> 
> 
>     ./configure.py 
>     make install
> 
> Previously I had a bunch of configure flags as well as a different
> make, `make -j 4`.  
> Both of these were listed under the Ubuntu install wiki.
> (http://wiki.tiker.net/PyCuda/Installation/Linux/Ubuntu)
> 
> 
> The installation seemed to go smoothly and I tried to run the tests
> and got an error.
> 
>    python test_driver.py
> 
> 
> Produced this error: 
> 
> 
>         [40] [~/python/pycuda-2012.1/test] $ python test_driver.py
>         Traceback (most recent call last):
>           File "test_driver.py", line 4, in <module>
>             from pycuda.tools import mark_cuda_test
>           File
> "/usr/local/EPD/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/pycuda-2012.1-py2.7-linux-x86_64.egg/pycuda/tools.py",
>  line 30, in <module>
>             import pycuda.driver as cuda
>           File
> "/usr/local/EPD/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/pycuda-2012.1-py2.7-linux-x86_64.egg/pycuda/driver.py",
>  line 2, in <module>
>             from pycuda._driver import *
>         ImportError: /usr/lib/libboost_python-py32.so.1.46.1:
> undefined symbol: PyUnicodeUCS4_AsUTF8String
> 
> 

You have installed PyCUDA using Python 2.7; but your libraries try
to call Python 3.2 libraries. Can you send your system configuration:
1. Ypur Ubuntu version
2. Result of "dpkg -l | grep -i python"
3. Result of "dpkg -l | grep -i boost"
4. content of siteconf.py file; this file was created by configure.py

Basically (for now) PyCUDA does not work fully with Python 3.
I suspect you will need to call ./configure.py with arguments.
Try arguments I use to build Debian packages:
./configure.py --boost-python-libname=boost_python-py27 \
                --boost-thread-libname=boost_thread \
                --cuda-root=/usr --cuda-enable-gl

and let us know how it went.

Best regards.

-- 
Tomasz Rybak  GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to