Red Hat Bugzilla – Bug 247171
ImageTk is missing
Last modified: 2007-11-30 17:12:09 EST
Description of problem: The module ImageTk is missing from PIL
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ python
2. >>> import ImageTk
3. >>> from PIL import ImageTk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named ImageTk
(once after step 2, once again after step 3)
Steps to reproduce:
1. $ cd /usr/lib/python2.5/site-packages/PIL
2. $ ls ImageTk*
ls: cannot access ImageTk*: No such file or directory
ImageTk.py ImageTk.pyo ImageTk.pyc
Install python-imaging-tk. We have separated the package to avoid having to
drag all tcl/tk dependencies if you are only interested in python part.
Notice that we have also a new subpackage called python-imaging-sane.
Probably referring that the tkinter is placed under a different subpackage may
avoid this problem, no?
Thank you -- both for your prompt attention and for a solution that works just fine.
I did not understand the last sentence in comment #1 -- "Probably referring ...
no?" Perhaps it's meant to say the same thing as my next paragraph:
Separating the package seems like a good move in principle, but such changes
should be better publicized. I found no mention of this in the Fedora 7 package
release notes, nor in python-imaging's CHANGES file. A simple statement about
the package split, in the text shown by "rpm -qi python-imaging", could also
have been helpful.
This kind of problem will be reduced with the new build system (koji+bodhi).
There is possible to add a note for each release. That would have helped in
Nevertheless I intend to add this to %description:
Notice that in order to reduce the package dependencies there are
three subpackages: devel (for development); tk (to interact with the
tk interface) and sane (scanning devices interface).
Is that OK with you?
That would be excellent -- thank you!