[reportlab-users] Error reporting: please say what image is failing
Roberto Alsina
ralsina at netmanagers.com.ar
Wed Mar 17 13:35:58 EDT 2010
I got this reported as an Issue in rst2pdf:
http://code.google.com/p/rst2pdf/issues/detail?id=287
The real problem is (I think) fixed already, the error was this:
File "/Library/Python/2.6/site-packages/reportlab/pdfgen/canvas.py", line
673, in drawImage
rawdata = image.getRGBData()
File "/Library/Python/2.6/site-packages/reportlab/lib/utils.py", line
651, in getRGBData
self._dataA = ImageReader(im.split()[3])
File "/Library/Python/2.6/site-packages/PIL/Image.py", line 1497, in split
if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'
But anyway, what the user says, which is reasonable, is that maybe if RL fails
when processing an image it could report what image is causing the problem?
More information about the reportlab-users
mailing list