Negative.
Traceback (most recent call last):
File "main.py", line 61, in <module>
dst = g.blur(convo_kernel, srcRGBA)
File "/mnt/hgfs/prg/opencl/convolution/gaussianblurcl.py", line 41, in
blur
dst = self._blur_impl(convo_kernel, convo_radius, src)
File "/mnt/hgfs/prg/opencl/convolution/gaussianblurcl.py", line 69, in
_blur_impl
src_buf = cl.Image(self.ctx, mf.READ_ONLY | mf.USE_HOST_PTR,
format=fmt, shape=src.size, hostbuf=src)
File
"/usr/local/lib/python3.3/dist-packages/pyopencl-2013.3-py3.3-linux-x86_64.egg/pyopencl/__init__.py",
line 678, in image_init
image_old_init(self, context, flags, format, desc, hostbuf)
TypeError: expected an object with a writable buffer interface
pyopencl from git on ubuntu, python 3.3, and pillow 2.3.1
On 31 March 2014 14:41, Andreas Kloeckner <[email protected]> wrote:
> "CRV§ADER//KY" <[email protected]> writes:
>
> > src = Image.open("test.jpg")
> > src.load()
> > src = src.convert('RGBA')
> >
> > src_buf = cl.Image(self.ctx,
> > flags=mf.READ_ONLY | mf.USE_HOST_PTR,
> > format=fmt,
> > shape=src.size,
> > hostbuf=src
> > )
> >
> > TypeError: expected an object with a writable buffer interface
>
> Can you try the latest git version? I believe this was fixed there a
> while ago.
>
> Andreas
>
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl