[Image-SIG] problem with PIDDLE and PIL

Piers Lauder piers@cs.su.oz.au
Sat, 05 Feb 2000 08:03:46 +1100

Hi! Thanks for your reply:

On Fri, 04 Feb 2000 12:53:34 -0600, Jeffrey Kunce wrote:
  > >When installing PIDDLE and running its built-in test suite, I encountered
  > >an error Traceback from within PIL (VERSION=1.0):
  > The below is from the piddle mailing list archives 
  > (http://www.egroups.com/group/pythonpiddle). 
  > I think it will fix your problem.
  > ...
  > I hope this is the right place to put this.. If not, sorry. :)
  > I've got a *very* minor patch to piddlePIL.py... starting line 246:
  > 			if Image.VERSION <= "1.0":
  > 				self._pen.line( ((x1,y1), (x2,y2)) )	
  > 			elif Image.VERSION <= "1.0b1":
  > 				self._pen.line( (x1,y1), (x2,y2) )
  > 			else:
  > 				self._pen.line(x1,y1,x2,y2)

I'd already searched the PIDDLE mailing lists archives and applied this
patch (and you'll see it in use in the trace I supplied, at the line
``File "piddlePIL.py", line 247, in drawLine'' below).

	Traceback (innermost last):
	  File "piddletest.py", line 273, in ?
	  File "piddletest.py", line 268, in mainLoop
	    runtest(backends[backend], tests[test])
	  File "piddletest.py", line 210, in runtest
	    canvas = testfunc(canvasClass)
	  File "piddletest.py", line 22, in minimal
	  File "piddlePIL.py", line 247, in drawLine
	    self._pen.line( (x1,y1), (x2,y2) )
	  File "/local/usr/lib/python1.5/site-packages/PIL/ImageDraw.py", line 107, in line
	    ink, fill = self._getink(fill)
	  File "/local/usr/lib/python1.5/site-packages/PIL/ImageDraw.py", line 73, in _getink
	    ink = self.im.draw_ink(ink)
	TypeError: illegal argument type for built-in operation

So am I right in assuming this is a different problem?