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



I should note, Andreas asked if I could import pycuda, and it seems I can.

    >>> import pycuda
    >>> pycuda.__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/__init__.pyc'


But I'm not sure everything is working 100%. I tried running a test script
from the docs and get:

    ImportError: /usr/lib/libboost_python-py32.so.1.46.1: undefined symbol:
PyUnicodeUCS4_AsUTF8String


Thanks for all the help!



-- 
Jason Wirth
    213.675.5294
    [email protected]


On Sun, Feb 24, 2013 at 5:19 PM, Andreas Kloeckner
<[email protected]>wrote:

> Jason Wirth <[email protected]> writes:
>
> > Hey guys, I have a trouble installing PyCuda. I'm running Enthought
> Python
> > Distribution on Ubuntu 12.04.
> >
> > My installation seems to go fine. Here's my `configure.py` command.
> >
> >     ./configure.py \
> >         --python-exe=/usr/local/EPD/epd-7.3-2-rh5-x86_64/bin/python \
> >         --cuda-root=/usr/local/cuda-5.0 \
> >         --cudadrv-lib-dir=/usr/lib \
> >         --boost-inc-dir=/usr/include \
> >         --boost-lib-dir=/usr/lib \
> >         --boost-python-libname=boost_python-mt-py32 \
> >         --boost-thread-libname=boost_thread-mt \
> >         --no-use-shipped-boost
> >
> >
> > But when I run `python test_driver.py` I get an error.
> >
> >
> >     [115]
> >
> [/usr/local/EPD/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/pycuda/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
> >     ImportError: No module named pycuda.tools
> >
> >
> > Any thoughts?
>
> Can you "import pycuda"? If so, try "pycuda.__file__" and go from there.
>
> Andreas
>
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to