Your message dated Wed, 31 Jul 2019 23:07:13 +0800
with message-id <[email protected]>
and subject line Re: Bug#570127: xhtml2pdf throws exception on some URLs
has caused the Debian Bug report #570127,
regarding xhtml2pdf throws exception on some URLs
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
570127: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570127
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-pisa
Version: 3.0.32-1
Severity: normal
The first three work fine, the fourth doesn't:
$ for p in debian gnu linux gnome; do xhtml2pdf http://www.$p.org; done
Converting www.debian.org to /home/xxx/www.debian.org.pdf...
Converting www.gnu.org to /home/xxx/www.gnu.org.pdf...
Converting www.linux.org to /home/xxx/www.linux.org.pdf...
ERROR [ho.pisa] Document error
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/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/pymodules/python2.5/sx/pisa3/pisa_reportlab.py", line 564, in
draw
Paragraph.draw(self)
File "/usr/lib/pymodules/python2.5/sx/pisa3/reportlab_paragraph.py", line
1054, in draw
self.drawPara(self.debug)
File "/usr/lib/pymodules/python2.5/sx/pisa3/reportlab_paragraph.py", line
1540, in drawPara
dpl( tx, _offsets[i], f, noJustifyLast and i==lim)
File "/usr/lib/pymodules/python2.5/sx/pisa3/reportlab_paragraph.py", line
337, in _leftDrawParaLineX
_putFragLine(offset, tx, line)
File "/usr/lib/pymodules/python2.5/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/pymodules/python2.5/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'
Converting www.gnome.org to /home/xxx/www.gnome.org.pdf...
*** ERRORS OCCURED
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-pisa depends on:
ii python 2.5.4-9 An interactive high-level object-o
ii python-html5lib 0.90-1 HTML parser/tokenizer based on the
ii python-imaging 1.1.7-1+b1 Python Imaging Library
ii python-pypdf 1.12-2 PDF toolkit implemented solely in
ii python-reportlab 2.3-1 ReportLab library to create PDF do
ii python-support 1.0.6 automated rebuilding support for P
python-pisa recommends no packages.
python-pisa suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
xhtml2pdf no longer makes an error on www.gnome.org.
The error was in python-pil, not xhtml2pdf (python-pisa).
I presume it was fixed when PIL upgraded from python-imaging 1.1.7 to
pillow 2.2.1 in 2013.
Drew
--- End Message ---