[Image-SIG] importing _imagingtk

fukuda fukuda at computer.org
Sat Nov 13 22:55:51 CET 2004


Hello,

I have been struggling with Tkinter/PIL "version conflict."  I started 
with Python-2.4b2
and Tcl/Tk-8.4.x, but now falled back to rpm packages of Python-2.3.4 
and Tcl/Tk-8.3.5.
With PIL (1.1.4) reinstalled, version conflicts have disappeared, but 
still Python
complains that
fukuda at goliath:~% /usr/bin/python2.3 ~/scrapbook.py             
Traceback (most recent call last):
  File "/home/fukuda/scrapbook.py", line 34, in ?
    scrapbook = Scrapbook(root)
  File "/home/fukuda/scrapbook.py", line 23, in __init__
    self.getImg(0)
  File "/home/fukuda/scrapbook.py", line 28, in getImg
    self.img = ImageTk.PhotoImage(self.masterImg)
  File "/usr/lib/python2.3/site-packages/PIL/ImageTk.py", line 114, in 
__init__
    self.paste(image)
  File "/usr/lib/python2.3/site-packages/PIL/ImageTk.py", line 179, in paste
    import _imagingtk
ImportError: /usr/lib/python2.3/site-packages/PIL/_imagingtk.so: 
undefined symbol: Tk_PhotoPutBlock_NoComposite

"scrapbook.py" is an example in Grayson's book.

Have I missed anything?

Taka Fukuda


More information about the Image-SIG mailing list