[Image-SIG] Bus Error

Fredrik Lundh fredrik@pythonware.com
Wed, 16 Oct 2002 09:24:12 +0200


denis wrote:

> I have installed Python Imaging Library into my sun's work station. To
> make sure that PIL is working properly, I have run the "test.py"
> within the package and seems to get all the tests right.
>=20
> I can also imported Image and ImageTk successfully in Python, but when =
I
> tried to do the task below, problem came:
>=20
> im =3D Image.open(photo.gif)
> photo =3D ImageTk.PhotoImage(im)
> ----> in the process of creating photo ... Bus Error (core dumped)
> appear ....
>=20
> even though I tried
> im =3D Image.open(photo.gif)
> tkim =3D ImageTk.PhotoImage(im.mode, im.size)
> tkim.paste(ImageEnhance.Contrast(im).enhance(2.67))
> ----> in the process  ... Bus Error (core dumped) appear ....
>=20
> why? Did I do something wrong with the installation?

what Tk version are you using?

do you get a stack trace if you run this under a debugger?

</F>