Hello,
Today I installed pisa and could finish all the test provided in
source code folder.
What I am going to do is to convert a wiki web-page to PDF. I saved
the page and images from
http://wiki.blender.org/index.php/Doc:Manual/Introduction
using firefox(File->Save file as), and in the corresponding folder, I
tried to use pisa in this way: "pisa Introduction.html", it returned
following error information:
---------
fish@debian:~/Desktop/pisa-3.0.32/blender$ pisa Introduction.html
Converting Introduction.html to /home/fish/Desktop/pisa-3.0.32/blender/
Introduction.pdf...
ERROR [ho.pisa] Document error
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/pisa_document.py", line 161, in pisaDocument
doc.build(c.story)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
doctemplate.py", line 777, in build
self.handle_flowable(flowables)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
doctemplate.py", line 665, in handle_flowable
if frame.add(f, canv, trySplit=self.allowSplitting):
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
frames.py", line 174, in _add
flowable.drawOn(canv, self._x + self._leftExtraIndent, y, _sW=aW-
w)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
flowables.py", line 105, in drawOn
self._drawOn(canvas)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
flowables.py", line 89, in _drawOn
self.draw()#this is the bit you overload
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/pisa_reportlab.py", line 564, in draw
Paragraph.draw(self)
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/reportlab_paragraph.py", line 1054, in draw
self.drawPara(self.debug)
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/reportlab_paragraph.py", line 1534, in drawPara
dpl( tx, offset, lines[0], noJustifyLast and nLines==1)
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/reportlab_paragraph.py", line 337, in _leftDrawParaLineX
_putFragLine(offset, tx, line)
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/reportlab_paragraph.py", line 217, in _putFragLine
tx._canvas.drawImage(cbDefn.image.getImage(),cur_x_s,cur_y
+iy0,w,h,mask='auto')
File "/usr/lib/python2.5/site-packages/reportlab/pdfgen/canvas.py",
line 690, in drawImage
imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/pdfdoc.py",
line 2033, in __init__
self.loadImageFromSRC(source) #it is already a PIL Image
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/pdfdoc.py",
line 2101, in loadImageFromSRC
raw = im.getRGBData()
File "/usr/lib/python2.5/site-packages/pisa-3.0.32-py2.5.egg/sx/
pisa3/pisa_reportlab.py", line 313, in getRGBData
self._dataA = PmlImageReader(im.split()[3])
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1497, in
split
if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'
*** ERRORS OCCURED
----------
Any help on this? I appreciate your support!
Cheers!
Dripstone