Hi Andreas,

On 30/11/15 04:43, Andreas Kloeckner wrote:
> I believe I've just fixed building against CL 1.1 in git master. It'd be
> great if you could try and let me know how it goes.

Using e12f38a and inside of a Python 3.4 virtualenv and doing:

$ ./configure.py --cl-pretend-version=1.1
$ python setup.py build
$ python setup.py install

gives in the install phase:

byte-compiling
build/bdist.linux-x86_64/egg/pyopencl/compyte/ndarray/gen_elemwise.py to
gen_elemwise.cpython-34.pyc
  File
"build/bdist.linux-x86_64/egg/pyopencl/compyte/ndarray/gen_elemwise.py",
line 955
    print sio.getvalue()
            ^
SyntaxError: invalid syntax

[snip]

byte-compiling
build/bdist.linux-x86_64/egg/pyopencl/compyte/ndarray/gen_elemwise.py to
gen_elemwise.cpython-34.pyc
  File
"build/bdist.linux-x86_64/egg/pyopencl/compyte/ndarray/gen_elemwise.py",
line 955
    print sio.getvalue()
            ^
SyntaxError: invalid syntax

[snip]

Extracting pyopencl-2015.2.1-py3.4-linux-x86_64.egg to
/home/freddie/Programming/pyfr-venv/lib/python3.4/site-packages
  File
"/home/freddie/Programming/pyfr-venv/lib/python3.4/site-packages/pyopencl-2015.2.1-py3.4-linux-x86_64.egg/pyopencl/compyte/ndarray/gen_elemwise.py",
line 955
    print sio.getvalue()
            ^
SyntaxError: invalid syntax

  File
"[snip]/pyfr-venv/lib/python3.4/site-packages/pyopencl-2015.2.1-py3.4-linux-x86_64.egg/pyopencl/compyte/ndarray/test_gpu_ndarray.py",
line 314
    print shp, dtype, offseted, order1, order2
            ^
SyntaxError: Missing parentheses in call to 'print'

Despite these errors it does appear to install.  However, upon importing:

>>> import pyopencl as cl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"[snip]/pyfr-venv/lib/python3.4/site-packages/pyopencl-2015.2.1-py3.4-linux-x86_64.egg/pyopencl/__init__.py",
line 35, in <module>
    import pyopencl.cffi_cl as _cl
  File
"[snip]/pyfr-venv/lib/python3.4/site-packages/pyopencl-2015.2.1-py3.4-linux-x86_64.egg/pyopencl/cffi_cl.py",
line 36, in <module>
    from pyopencl._cffi import ffi as _ffi
ImportError:
[snip]/pyfr-venv/lib/python3.4/site-packages/pyopencl-2015.2.1-py3.4-linux-x86_64.egg/pyopencl/_cffi.cpython-34.so:
undefined symbol: create_image_from_desc


Regards, Freddie.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to