[Tutor] PIL problem

Martin Walsh mwalsh at mwalsh.org
Fri May 7 18:37:34 CEST 2010


Jim Byrnes 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?
> 

Apparently, ImageTk is part of a separate ubuntu package called
python-imaging-tk.

HTH,
Marty


More information about the Tutor mailing list