Hi Dominic,

On Tue, 6 Dec 2011 10:47:10 -0600, "Pazzula, Dominic J " 
<[email protected]> wrote:
> Let me preface by saying I am still relatively new to Python.
> 
> 
> 
> I recently installed PyOpenCL on my Red Hat desktop.  I thought I got all the 
> right versions, but when I ran the examples I got errors.  I traced it down 
> to a function and you can see the error below:
> 
> 
> 
> dp35382@ibshouengxw406:/storage $ python
> 
> Python 2.4.3 (#1, Aug 29 2011, 10:55:55)
> 
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
> 
> Type "help", "copyright", "credits" or "license" for more information.
> 
> >>> import pyopencl
> 
> >>> from pyopencl.cache import create_built_program_from_source_cached
> 
> Traceback (most recent call last):
> 
>   File "<stdin>", line 1, in ?
> 
>   File 
> "/usr/lib64/python2.4/site-packages/pyopencl-2011.2-py2.4-linux-x86_64.egg/pyopencl/cache.py",
>  line 265
> 
>     finally:
> 
>           ^
> 
> SyntaxError: invalid syntax
> 
> As you can see, I am running Python 2.4.3 and downloaded the 2.4
> version of PyOpenCL.  The error would make me think that I have a
> version mismatch.  Can anyone confirm and maybe tell me what I did
> wrong?

Can you try the git version? I think I've fixed Python 2.4 compatibility
at least for as far as your report goes.

Andreas

Attachment: pgpOfu4iyuIWg.pgp
Description: PGP signature

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

Reply via email to