[Tutor] PIL problem
Alex Clark
aclark at aclark.net
Fri May 7 18:40:58 CEST 2010
On 2010-05-07, Jim Byrnes <jf_byrnes at comcast.net> wrote:
> Running Unbuntu 9.10. The Synaptic Pkg Mgr reports python-imaging -
> 1.1.6-3ubuntu1 - Python Imaging Library is installed.
>
> But trying to import PhotoImage gives these results:
>
>
> >>> from ImageTk import PhotoImage
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named ImageTk
>
> What have I gotten wrong?
Try import PIL.ImageTk
(if you look inside the package, you will notice ImageTk is inside a directory called PIL)
>
> Thanks, Jim
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
Alex Clark · http://aclark.net
Author of Plone 3.3 Site Administration · http://aclark.net/plone-site-admin
More information about the Tutor
mailing list