[MacPorts] #28265: py*-pil only builds the Tkinter module if py*-tkinter is installed
MacPorts
noreply at macports.org
Thu Feb 3 07:37:16 PST 2011
#28265: py*-pil only builds the Tkinter module if py*-tkinter is installed
----------------------------------+-----------------------------------------
Reporter: raphael@… | Owner: stechert@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py25-pil py26-pil py27-pil
----------------------------------+-----------------------------------------
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}}}.
--
Ticket URL: <https://trac.macports.org/ticket/28265>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list