Dear Andreas,

I have found the reason. It is something related to the unicode string used in 
the newer versions of python.
In order to use python3.3 and python 2.7 at the same time, I add the following 
line in my python code,

from __future__ import absolute_import, division, print_function, 
unicode_literals

however, the compile_options in cl.Program().build(compile_options)
can not be unicode strings for python version 2.7.6 and 2.7.8

I have fixed the bug by just remove unicode_literals from preamble such that 
the code can
run under both python 2.7 and 3.3. Thanks a lot!

Best regards,
LongGang

> On Oct 12, 2015, at 7:23 PM, Andreas Kloeckner <[email protected]> wrote:
> 
> Longgang Pang <[email protected]> writes:
>> I have problem when run the most recent PyOpenCL2015 with python2.7.6
>> and 2.7.8
>> The full output is as following, looks like 'ArgumentError' has no
>> attribute 'what' for python version 2.7.6 and 2.7.8?
>> There is no problem when I run pyopencl with python/3.3.6 or python/2.7.10.
>> 
>> Do you know how to fix it in the code without modifying pyopencl?
> 
> Can you submit some code that reproduces this? ArgumentError should not
> be caught by this handler.
> 
> Andreas

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

Reply via email to