On 03/10/10 Roberto Alsina said:

> Thanks to the generosity of a rst2pdf/sphinx user, I have been sponsored to  
> fix several problems related to rst2pdf and sphinx 1.0.x

My doc still doesn't build.

(sphinx)msoul...@kostya:...-tug/doc/engguide$ make pdf
sphinx-build -b pdf -d _build/doctrees   . _build/pdf
Running Sphinx v1.0.4
loading pickled environment... done
building [pdf]: targets for 12 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
processing mbg_engguide_6.0... index about usecases remote enterprise 
additional supported security clustering advanced solutions glossary 
resolving references...
done
writing mbg_engguide_6.0... [ERROR] createpdf.py:1105 Page 1 [1]
[ERROR] createpdf.py:1105 Page 2 [2]
[ERROR] createpdf.py:1105 Page 1 [3]
[ERROR] createpdf.py:1105 Page 2 [4]
[ERROR] createpdf.py:1105 Page 1 [5]
[ERROR] createpdf.py:1105 Page 2 [6]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/usecase-tw.png is too wide for 
the frame, rescaling
[ERROR] createpdf.py:1105 Page 3 [7]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/usecase-mics.png is too wide for 
the frame, rescaling
[ERROR] createpdf.py:1105 Page 4 [8]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/usecase-3600.png is too wide for 
the frame, rescaling
[ERROR] createpdf.py:1105 Page 5 [9]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/usecase-src.png is too wide for 
the frame, rescaling
[ERROR] createpdf.py:1105 Page 6 [10]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/mbg_usecase_src2.png is too wide 
for the frame, rescaling
[ERROR] createpdf.py:1105 Page 7 [11]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/mbg_usecase_siptrunk.png is too 
wide for the frame, rescaling
[ERROR] createpdf.py:1105 Page 8 [12]
[WARNING] image.py:470 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/mbg_usecase_siptrunk.png is too 
tall for the frame, rescaling
[ERROR] createpdf.py:1105 Page 9 [13]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/mbg_usecase_dc2.png is too wide 
for the frame, rescaling
[ERROR] createpdf.py:1105 Page 10 [14]
[ERROR] createpdf.py:1105 Page 11 [15]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/remote_site.png is too wide for 
the frame, rescaling
[ERROR] createpdf.py:1105 Page 12 [16]
[ERROR] createpdf.py:1105 Page 13 [17]
[ERROR] createpdf.py:1105 Page 14 [18]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/corporate_teleworker.png is too 
wide for the frame, rescaling
[ERROR] createpdf.py:1105 Page 15 [19]
[ERROR] createpdf.py:1105 Page 16 [20]
[ERROR] createpdf.py:1105 Page 17 [21]
[ERROR] createpdf.py:1105 Page 18 [22]
[ERROR] createpdf.py:1105 Page 19 [23]
[ERROR] createpdf.py:1105 Page 20 [24]
[ERROR] createpdf.py:1105 Page 21 [25]
[ERROR] createpdf.py:1105 Page 22 [26]
[ERROR] createpdf.py:1105 Page 23 [27]
[ERROR] createpdf.py:1105 Page 24 [28]
[ERROR] createpdf.py:1105 Page 25 [29]
[ERROR] createpdf.py:1105 Page 26 [30]
[ERROR] createpdf.py:1105 Page 27 [31]
[ERROR] createpdf.py:1105 Page 28 [32]
[ERROR] createpdf.py:1105 Page 29 [33]
[ERROR] createpdf.py:1105 Page 30 [34]
[ERROR] createpdf.py:1105 Page 31 [35]
[ERROR] createpdf.py:1105 Page 32 [36]
[WARNING] image.py:475 image 
/home/msoulier/work/mitel-msl-tug/doc/engguide/mbg_sg_mode1.png is too wide for 
the frame, rescaling
[ERROR] pdfbuilder.py:129 'NoneType' object has no attribute 'bands'
Traceback (most recent call last):
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/pdfbuilder.py",
 line 126, in write
    docwriter.write(doctree, destination)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/docutils/writers/__init__.py",
 line 76, in write
    self.translate()
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/pdfbuilder.py",
 line 619, in translate
    compressed=self.compressed)
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/createpdf.py",
 line 666, in createPdf
    pdfdoc.multiBuild(elements)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py",
 line 855, in multiBuild
    self.build(tempStory, filename, canvasmaker)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py",
 line 777, in build
    self.handle_flowable(flowables)
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/createpdf.py",
 line 774, in handle_flowable
    if frame.add(f, canv, trySplit=self.allowSplitting):
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/flowables.py",
 line 556, in add
    return Frame.add(self, flowable, canv, trySplit)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/frames.py",
 line 174, in _add
    flowable.drawOn(canv, self._x + self._leftExtraIndent, y, _sW=aW-w)
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/flowables.py",
 line 244, in drawOn
    self.t.drawOn(canvas, x, y, _sW)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/flowables.py",
 line 105, in drawOn
    self._drawOn(canvas)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/flowables.py",
 line 89, in _drawOn
    self.draw()#this is the bit you overload
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/tables.py",
 line 1283, in draw
    self._drawCell(cellval, cellstyle, (colpos, rowpos), (colwidth, rowheight))
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/tables.py",
 line 1390, in _drawCell
    v.drawOn(self.canv,x,y)
  File 
"/home/msoulier/envs/sphinx/lib/python2.6/site-packages/rst2pdf-0.16.dev_r2379-py2.6.egg/rst2pdf/image.py",
 line 481, in drawOn
    return self.image.drawOn(canv, x, y, _sW)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/flowables.py",
 line 105, in drawOn
    self._drawOn(canvas)
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/flowables.py",
 line 89, in _drawOn
    self.draw()#this is the bit you overload
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/platypus/flowables.py",
 line 396, in draw
    mask=self._mask,
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/pdfgen/canvas.py", 
line 673, in drawImage
    rawdata = image.getRGBData()
  File 
"/home/msoulier/python/lib/python2.6/site-packages/reportlab/lib/utils.py", 
line 651, in getRGBData
    self._dataA = ImageReader(im.split()[3])
  File "/home/msoulier/envs/sphinx/lib/python2.6/site-packages/PIL/Image.py", 
line 1497, in split
    if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'
FAILED
build succeeded.

Build finished. The PDF file is in _build/pdf.

It's truly amusing that sphinx thinks that the build succeeded.

Mike
-- 
Michael P. Soulier <msoul...@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein

Attachment: signature.asc
Description: Digital signature

Reply via email to