[reportlab-users] Errors with runALL.py
Peter Nye
reportlab-users@reportlab.com
Tue, 24 Jun 2003 15:27:52 -0700
======================================================================
ERROR: Make a platypus document
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\reportlab\test\test_platypus_general.py", line 495, in test0
run()
File "E:\reportlab\test\test_platypus_general.py", line 487, in run
doc.build(commentary,examples)
File "E:\reportlab\test\test_platypus_general.py", line 473, in build
self.fillFrame(flowables2)
File "E:\reportlab\test\test_platypus_general.py", line 464, in fillFrame
self.handle_flowable(flowables)
File "E:\reportlab\platypus\doctemplate.py", line 521, in handle_flowable
if self.frame.add(f, self.canv, trySplit=self.allowSplitting):
File "E:\reportlab\platypus\frames.py", line 138, in _add
flowable.drawOn(canv, self._x + self._leftExtraIndent, y, _sW=self._getAvailableWidth()-w)
File "E:\reportlab\platypus\flowables.py", line 84, in drawOn
self._drawOn(canvas)
File "E:\reportlab\platypus\flowables.py", line 69, in _drawOn
self.draw()#this is the bit you overload
File "E:\reportlab\platypus\flowables.py", line 317, in draw
mask=self._mask,
File "E:\reportlab\pdfgen\canvas.py", line 591, in drawImage
imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)
File "E:\reportlab\pdfbase\pdfdoc.py", line 1752, in __init__
self.loadImageFromPIL(source)
File "E:\reportlab\pdfbase\pdfdoc.py", line 1807, in loadImageFromPIL
self._checkTransparency(PILImage)
File "E:\reportlab\pdfbase\pdfdoc.py", line 1785, in _checkTransparency
(tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3])
AttributeError: ImagePalette instance has no attribute 'data'
======================================================================
ERROR: This makes one long multi-page paragraph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\reportlab\test\test_platypus_paragraphs.py", line 90, in test0
doc.multiBuild(story)
File "E:\reportlab\platypus\doctemplate.py", line 663, in multiBuild
self.build(tempStory, filename, canvasmaker)
File "E:\reportlab\platypus\doctemplate.py", line 607, in build
self.handle_flowable(flowables)
File "E:\reportlab\platypus\doctemplate.py", line 521, in handle_flowable
if self.frame.add(f, self.canv, trySplit=self.allowSplitting):
File "E:\reportlab\platypus\frames.py", line 138, in _add
flowable.drawOn(canv, self._x + self._leftExtraIndent, y, _sW=self._getAvailableWidth()-w)
File "E:\reportlab\platypus\flowables.py", line 84, in drawOn
self._drawOn(canvas)
File "E:\reportlab\platypus\flowables.py", line 69, in _drawOn
self.draw()#this is the bit you overload
File "E:\reportlab\platypus\flowables.py", line 456, in draw
self.I.drawOn(canv,self.width-self.wI-self.xpad,self.height-self.hI)
File "E:\reportlab\platypus\flowables.py", line 84, in drawOn
self._drawOn(canvas)
File "E:\reportlab\platypus\flowables.py", line 69, in _drawOn
self.draw()#this is the bit you overload
File "E:\reportlab\platypus\flowables.py", line 317, in draw
mask=self._mask,
File "E:\reportlab\pdfgen\canvas.py", line 591, in drawImage
imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)
File "E:\reportlab\pdfbase\pdfdoc.py", line 1752, in __init__
self.loadImageFromPIL(source)
File "E:\reportlab\pdfbase\pdfdoc.py", line 1807, in loadImageFromPIL
self._checkTransparency(PILImage)
File "E:\reportlab\pdfbase\pdfdoc.py", line 1785, in _checkTransparency
(tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3])
AttributeError: ImagePalette instance has no attribute 'data'
----------------------------------------------------------------------
Ran 113 tests in 206.246s
FAILED (errors=2)
What might the problem be?
Thank you for the help