Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#28265 closed defect (fixed)

py*-pil only builds the Tkinter module if py*-tkinter is installed

Reported by: raphael-st (Raphael Straub) Owned by: jmroot (Joshua Root)
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 (2)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from stechert@… to jmr@…
Port: py-pil added; py25-pil removed

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

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.