Ticket #28265 (closed defect: fixed)
py*-pil only builds the Tkinter module if py*-tkinter is installed
| Reported by: | raphael@… | Owned by: | jmr@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ||
| Port: | py-pil py26-pil py27-pil |
Description
The asymptote port needs the Tkinter module of py*-pil. If py*-pil was installed before py*-tkinter then the creation of a label in xasy fails with the following error:
Exception in Tkinter callback
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1410, in __call__
return self.func(*args)
File "/opt/local/share/asymptote/GUI/xasyMainWin.py", line 1447, in canvLeftDown
self.startDraw(event)
File "/opt/local/share/asymptote/GUI/xasyMainWin.py", line 1360, in startDraw
theItem.drawOnCanvas(self.mainCanvas,self.magnification)
File "/opt/local/share/asymptote/GUI/xasy2asy.py", line 707, in drawOnCanvas
self.asyfy(mag)
File "/opt/local/share/asymptote/GUI/xasy2asy.py", line 460, in asyfy
self.handleImageReception(*item)
File "/opt/local/share/asymptote/GUI/xasy2asy.py", line 439, in handleImageReception
self.imageList[-1].itk = ImageTk.PhotoImage(image)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageTk.py", line 116, in __init__
self.paste(image)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageTk.py", line 181, in paste
import _imagingtk
ImportError: No module named _imagingtk
I would suggest to add py*-tkinter as a library dependency of py*-pil.
Change History
Note: See
TracTickets for help on using
tickets.


Having multiple addresses in the owner field doesn't work; only one of them receives email.