[Python-modules-team] Bug#948788: xhtml2pdf: FTBFS with libxslt 1.1.34

Mattia Rizzolo mattia at debian.org
Mon Jan 13 10:37:16 GMT 2020


Source: xhtml2pdf
Version: 0.2.2-4
Severity: important
Tags: ftbfs
User: libxslt at packages.debian.org
Usertags: ftbfs-34

Dear maintainer,

During a rebuild for the 1.1.34 update, your package failed to build
when using libxslt1.1 1.1.34-1, currently in experimental.

Full log attached.

======================================================================
ERROR: Test that a transparent PNG image is rendered properly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 95, in test_document_with_transparent_image
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f398b483670>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
xhtml2pdf: DEBUG: FileObject '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/samples/img/denker-transparent.png', Basepath: '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests'
xhtml2pdf: DEBUG: URLParts: (ParseResult(scheme='', netloc='', path='/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests', params='', query='', fragment=''), '')
xhtml2pdf: DEBUG: Unrecognized scheme, assuming local file path
xhtml2pdf: DEBUG: Parsing img tag, src: <xhtml2pdf.util.pisaFileObject object at 0x7f398b2fb550>
xhtml2pdf: DEBUG: Attrs: {'src': <xhtml2pdf.util.pisaFileObject object at 0x7f398b2fb550>, 'width': None, 'height': None, 'align': None, 'id': None}
PIL.PngImagePlugin: DEBUG: STREAM b'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM b'PLTE' 41 48
PIL.PngImagePlugin: DEBUG: STREAM b'tRNS' 101 1
PIL.PngImagePlugin: DEBUG: STREAM b'bKGD' 114 1
PIL.PngImagePlugin: DEBUG: b'bKGD' 114 1 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'pHYs' 127 9
PIL.PngImagePlugin: DEBUG: STREAM b'tIME' 148 7
PIL.PngImagePlugin: DEBUG: b'tIME' 148 7 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'IDAT' 167 2997
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test that a transparent PNG image is rendered properly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 120, in test_document_background_image
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f398b4ba8b0>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
xhtml2pdf: DEBUG: FileObject '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/samples/img/denker-transparent.png', Basepath: '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests'
xhtml2pdf: DEBUG: URLParts: (ParseResult(scheme='', netloc='', path='/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests', params='', query='', fragment=''), '')
xhtml2pdf: DEBUG: Unrecognized scheme, assuming local file path
xhtml2pdf: WARNING: missing explicit frame definition for content or just static frames

PIL.PngImagePlugin: DEBUG: STREAM b'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM b'PLTE' 41 48
PIL.PngImagePlugin: DEBUG: STREAM b'tRNS' 101 1
PIL.PngImagePlugin: DEBUG: STREAM b'bKGD' 114 1
PIL.PngImagePlugin: DEBUG: b'bKGD' 114 1 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'pHYs' 127 9
PIL.PngImagePlugin: DEBUG: STREAM b'tIME' 148 7
PIL.PngImagePlugin: DEBUG: b'tIME' 148 7 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'IDAT' 167 2997
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_document_creation_without_metadata
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 138, in test_document_creation_without_metadata
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f398b2d5ca0>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_document_creation_with_metadata
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 148, in test_document_creation_with_metadata
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f398b4bad30>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = {'author': 'MyCorp Ltd.', 'title': 'My Document Title', 'subject': 'My Document Subject', 'keywords': 'pdf, documents'}
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_document_creation_with_css_metadata
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 160, in test_document_creation_with_css_metadata
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f398b3aa310>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = {'author': 'MyCorp Ltd.', 'title': 'My Document Title', 'subject': 'My Document Subject', 'keywords': 'pdf, documents'}
xhtml2pdf: WARNING: missing explicit frame definition for content or just static frames

--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_destination_is_none
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 169, in test_destination_is_none
    context = pisaDocument(HTML_CONTENT.format(head="", extra_html=""))
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = '<!DOCTYPE html>\n<html>\n<head>\n\n</head>\n<body>\n    <div>\n        <h1> Hello, world! </div>\n\n        <p>\n            The quick red fox jumps over the lazy brown dog.\n        </p>\n        \n    </div>\n</body>\n</html>'
  dest = None
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_in_memory_document
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 175, in test_in_memory_document
    pisaDocument(HTML_CONTENT.format(head="", extra_html=""), dest=in_memory_file)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = '<!DOCTYPE html>\n<html>\n<head>\n\n</head>\n<body>\n    <div>\n        <h1> Hello, world! </div>\n\n        <p>\n            The quick red fox jumps over the lazy brown dog.\n        </p>\n        \n    </div>\n</body>\n</html>'
  dest = <_io.BytesIO object at 0x7f398b3a5630>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 98 tests in 0.208s

FAILED (errors=7)
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build; python3.8 -m nose -v tests
dh_auto_test: pybuild --test --test-nose -i python{version} -p "3.8 3.7" returned exit code 13
make: *** [debian/rules:12: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
I: Using pkgname logfile
I: Current time: Mon Jan 13 10:14:39 UTC 2020
I: pbuilder-time-stamp: 1578910479
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [pkgs/xhtml2pdf_0.2.2-4.dsc]
I: copying [pkgs/xhtml2pdf_0.2.2.orig.tar.gz]
I: copying [pkgs/xhtml2pdf_0.2.2-4.debian.tar.xz]
I: Extracting source
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/home/mattia/.gnupg/trustedkeys.kbx': General error
gpgv: Signature made Sat Jan  4 18:34:45 2020 UTC
gpgv:                using RSA key B9FAD3192AF3E4A5309D9D39879F3C993801A94F
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./xhtml2pdf_0.2.2-4.dsc
dpkg-source: info: extracting xhtml2pdf in xhtml2pdf-0.2.2
dpkg-source: info: unpacking xhtml2pdf_0.2.2.orig.tar.gz
dpkg-source: info: unpacking xhtml2pdf_0.2.2-4.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying Fix-path-to-interpreter.patch
dpkg-source: info: applying Fix-interpreter-path-to-please-lintian.patch
I: using fakeroot in build.
I: Installing the build-deps
I: -> Attempting to satisfy build-dependencies
Note, using file '/build/xhtml2pdf_0.2.2-4.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  autoconf automake autopoint autotools-dev bsdmainutils debhelper
  dh-autoreconf dh-python dh-strip-nondeterminism docbook-xsl dwz file gettext
  gettext-base groff-base intltool-debian libarchive-zip-perl libbsd0
  libcroco3 libdebhelper-perl libelf1 libfile-stripnondeterminism-perl
  libfreetype6 libglib2.0-0 libimagequant0 libjbig0 libjpeg62-turbo liblcms2-2
  libmagic-mgc libmagic1 libmpdec2 libpipeline1 libpng16-16 libpython3-stdlib
  libpython3.7-minimal libpython3.7-stdlib libpython3.8-minimal
  libpython3.8-stdlib libsigsegv2 libsub-override-perl libtiff5 libtool
  libuchardet0 libwebp6 libwebpdemux2 libwebpmux3 m4 man-db po-debconf python3
  python3-all python3-cherrypy3 python3-distutils python3-html5lib
  python3-lib2to3 python3-minimal python3-nose python3-pil
  python3-pkg-resources python3-pypdf2 python3-reportlab
  python3-reportlab-accel python3-setuptools python3-six python3-webencodings
  python3.7 python3.7-minimal python3.8 python3.8-minimal sensible-utils
  sgml-base xml-core
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 72 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/25.1 MB of archives.
After this operation, 110 MB of additional disk space will be used.
Selecting previously unselected package libbsd0:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 13523 files and directories currently installed.)
Preparing to unpack .../0-libbsd0_0.10.0-1_amd64.deb ...
Unpacking libbsd0:amd64 (0.10.0-1) ...
Selecting previously unselected package bsdmainutils.
Preparing to unpack .../1-bsdmainutils_11.1.2+b1_amd64.deb ...
Unpacking bsdmainutils (11.1.2+b1) ...
Selecting previously unselected package libuchardet0:amd64.
Preparing to unpack .../2-libuchardet0_0.0.6-3_amd64.deb ...
Unpacking libuchardet0:amd64 (0.0.6-3) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../3-groff-base_1.22.4-4_amd64.deb ...
Unpacking groff-base (1.22.4-4) ...
Selecting previously unselected package libpipeline1:amd64.
Preparing to unpack .../4-libpipeline1_1.5.2-2_amd64.deb ...
Unpacking libpipeline1:amd64 (1.5.2-2) ...
Selecting previously unselected package man-db.
Preparing to unpack .../5-man-db_2.9.0-2_amd64.deb ...
Unpacking man-db (2.9.0-2) ...
Selecting previously unselected package libpython3.7-minimal:amd64.
Preparing to unpack .../6-libpython3.7-minimal_3.7.6-1_amd64.deb ...
Unpacking libpython3.7-minimal:amd64 (3.7.6-1) ...
Selecting previously unselected package python3.7-minimal.
Preparing to unpack .../7-python3.7-minimal_3.7.6-1_amd64.deb ...
Unpacking python3.7-minimal (3.7.6-1) ...
Setting up libpython3.7-minimal:amd64 (3.7.6-1) ...
Setting up python3.7-minimal (3.7.6-1) ...
Selecting previously unselected package python3-minimal.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 14415 files and directories currently installed.)
Preparing to unpack .../python3-minimal_3.7.5-3_amd64.deb ...
Unpacking python3-minimal (3.7.5-3) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../libmpdec2_2.4.2-2_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.2-2) ...
Selecting previously unselected package libpython3.7-stdlib:amd64.
Preparing to unpack .../libpython3.7-stdlib_3.7.6-1_amd64.deb ...
Unpacking libpython3.7-stdlib:amd64 (3.7.6-1) ...
Selecting previously unselected package python3.7.
Preparing to unpack .../python3.7_3.7.6-1_amd64.deb ...
Unpacking python3.7 (3.7.6-1) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../libpython3-stdlib_3.7.5-3_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.7.5-3) ...
Setting up python3-minimal (3.7.5-3) ...
Selecting previously unselected package python3.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 14828 files and directories currently installed.)
Preparing to unpack .../00-python3_3.7.5-3_amd64.deb ...
Unpacking python3 (3.7.5-3) ...
Selecting previously unselected package libpython3.8-minimal:amd64.
Preparing to unpack .../01-libpython3.8-minimal_3.8.1-2_amd64.deb ...
Unpacking libpython3.8-minimal:amd64 (3.8.1-2) ...
Selecting previously unselected package python3.8-minimal.
Preparing to unpack .../02-python3.8-minimal_3.8.1-2_amd64.deb ...
Unpacking python3.8-minimal (3.8.1-2) ...
Selecting previously unselected package sgml-base.
Preparing to unpack .../03-sgml-base_1.29.1_all.deb ...
Unpacking sgml-base (1.29.1) ...
Selecting previously unselected package sensible-utils.
Preparing to unpack .../04-sensible-utils_0.0.12+nmu1_all.deb ...
Unpacking sensible-utils (0.0.12+nmu1) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../05-libmagic-mgc_1%3a5.38-3_amd64.deb ...
Unpacking libmagic-mgc (1:5.38-3) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../06-libmagic1_1%3a5.38-3_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.38-3) ...
Selecting previously unselected package file.
Preparing to unpack .../07-file_1%3a5.38-3_amd64.deb ...
Unpacking file (1:5.38-3) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../08-gettext-base_0.19.8.1-10_amd64.deb ...
Unpacking gettext-base (0.19.8.1-10) ...
Selecting previously unselected package libsigsegv2:amd64.
Preparing to unpack .../09-libsigsegv2_2.12-2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../10-m4_1.4.18-4_amd64.deb ...
Unpacking m4 (1.4.18-4) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../11-autoconf_2.69-11_all.deb ...
Unpacking autoconf (2.69-11) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../12-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../13-automake_1%3a1.16.1-4_all.deb ...
Unpacking automake (1:1.16.1-4) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../14-autopoint_0.19.8.1-10_all.deb ...
Unpacking autopoint (0.19.8.1-10) ...
Selecting previously unselected package libtool.
Preparing to unpack .../15-libtool_2.4.6-11_all.deb ...
Unpacking libtool (2.4.6-11) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../16-dh-autoreconf_19_all.deb ...
Unpacking dh-autoreconf (19) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../17-libdebhelper-perl_12.7.3_all.deb ...
Unpacking libdebhelper-perl (12.7.3) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../18-libarchive-zip-perl_1.67-1_all.deb ...
Unpacking libarchive-zip-perl (1.67-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../19-libsub-override-perl_0.09-2_all.deb ...
Unpacking libsub-override-perl (0.09-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.6.3-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.6.3-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../21-dh-strip-nondeterminism_1.6.3-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.6.3-1) ...
Selecting previously unselected package libelf1:amd64.
Preparing to unpack .../22-libelf1_0.176-1.1_amd64.deb ...
Unpacking libelf1:amd64 (0.176-1.1) ...
Selecting previously unselected package dwz.
Preparing to unpack .../23-dwz_0.13-5_amd64.deb ...
Unpacking dwz (0.13-5) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../24-libglib2.0-0_2.62.4-1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.62.4-1) ...
Selecting previously unselected package libcroco3:amd64.
Preparing to unpack .../25-libcroco3_0.6.13-1_amd64.deb ...
Unpacking libcroco3:amd64 (0.6.13-1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../26-gettext_0.19.8.1-10_amd64.deb ...
Unpacking gettext (0.19.8.1-10) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../27-intltool-debian_0.35.0+20060710.5_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.5) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../28-po-debconf_1.0.21_all.deb ...
Unpacking po-debconf (1.0.21) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../29-debhelper_12.7.3_all.deb ...
Unpacking debhelper (12.7.3) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../30-python3-lib2to3_3.8.0-1_all.deb ...
Unpacking python3-lib2to3 (3.8.0-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../31-python3-distutils_3.8.0-1_all.deb ...
Unpacking python3-distutils (3.8.0-1) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../32-dh-python_4.20191017_all.deb ...
Unpacking dh-python (4.20191017) ...
Selecting previously unselected package xml-core.
Preparing to unpack .../33-xml-core_0.18+nmu1_all.deb ...
Unpacking xml-core (0.18+nmu1) ...
Selecting previously unselected package docbook-xsl.
Preparing to unpack .../34-docbook-xsl_1.79.1+dfsg-2_all.deb ...
Unpacking docbook-xsl (1.79.1+dfsg-2) ...
Selecting previously unselected package libpng16-16:amd64.
Preparing to unpack .../35-libpng16-16_1.6.37-1_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.37-1) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../36-libfreetype6_2.10.1-2_amd64.deb ...
Unpacking libfreetype6:amd64 (2.10.1-2) ...
Selecting previously unselected package libimagequant0:amd64.
Preparing to unpack .../37-libimagequant0_2.12.2-1.1_amd64.deb ...
Unpacking libimagequant0:amd64 (2.12.2-1.1) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../38-libjbig0_2.1-3.1+b2_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1+b2) ...
Selecting previously unselected package libjpeg62-turbo:amd64.
Preparing to unpack .../39-libjpeg62-turbo_1%3a1.5.2-2+b1_amd64.deb ...
Unpacking libjpeg62-turbo:amd64 (1:1.5.2-2+b1) ...
Selecting previously unselected package liblcms2-2:amd64.
Preparing to unpack .../40-liblcms2-2_2.9-4_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.9-4) ...
Selecting previously unselected package libpython3.8-stdlib:amd64.
Preparing to unpack .../41-libpython3.8-stdlib_3.8.1-2_amd64.deb ...
Unpacking libpython3.8-stdlib:amd64 (3.8.1-2) ...
Selecting previously unselected package libwebp6:amd64.
Preparing to unpack .../42-libwebp6_0.6.1-2+b1_amd64.deb ...
Unpacking libwebp6:amd64 (0.6.1-2+b1) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../43-libtiff5_4.1.0+git191117-2_amd64.deb ...
Unpacking libtiff5:amd64 (4.1.0+git191117-2) ...
Selecting previously unselected package libwebpdemux2:amd64.
Preparing to unpack .../44-libwebpdemux2_0.6.1-2+b1_amd64.deb ...
Unpacking libwebpdemux2:amd64 (0.6.1-2+b1) ...
Selecting previously unselected package libwebpmux3:amd64.
Preparing to unpack .../45-libwebpmux3_0.6.1-2+b1_amd64.deb ...
Unpacking libwebpmux3:amd64 (0.6.1-2+b1) ...
Selecting previously unselected package python3.8.
Preparing to unpack .../46-python3.8_3.8.1-2_amd64.deb ...
Unpacking python3.8 (3.8.1-2) ...
Selecting previously unselected package python3-all.
Preparing to unpack .../47-python3-all_3.7.5-3_amd64.deb ...
Unpacking python3-all (3.7.5-3) ...
Selecting previously unselected package python3-six.
Preparing to unpack .../48-python3-six_1.13.0-1_all.deb ...
Unpacking python3-six (1.13.0-1) ...
Selecting previously unselected package python3-cherrypy3.
Preparing to unpack .../49-python3-cherrypy3_8.9.1-5_all.deb ...
Unpacking python3-cherrypy3 (8.9.1-5) ...
Selecting previously unselected package python3-webencodings.
Preparing to unpack .../50-python3-webencodings_0.5.1-1_all.deb ...
Unpacking python3-webencodings (0.5.1-1) ...
Selecting previously unselected package python3-html5lib.
Preparing to unpack .../51-python3-html5lib_1.0.1-1_all.deb ...
Unpacking python3-html5lib (1.0.1-1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../52-python3-pkg-resources_44.0.0-1_all.deb ...
Unpacking python3-pkg-resources (44.0.0-1) ...
Selecting previously unselected package python3-nose.
Preparing to unpack .../53-python3-nose_1.3.7-4_all.deb ...
Unpacking python3-nose (1.3.7-4) ...
Selecting previously unselected package python3-pil:amd64.
Preparing to unpack .../54-python3-pil_7.0.0-3_amd64.deb ...
Unpacking python3-pil:amd64 (7.0.0-3) ...
Selecting previously unselected package python3-pypdf2.
Preparing to unpack .../55-python3-pypdf2_1.26.0-3_all.deb ...
Unpacking python3-pypdf2 (1.26.0-3) ...
Selecting previously unselected package python3-reportlab-accel:amd64.
Preparing to unpack .../56-python3-reportlab-accel_3.5.31-1+b1_amd64.deb ...
Unpacking python3-reportlab-accel:amd64 (3.5.31-1+b1) ...
Selecting previously unselected package python3-reportlab.
Preparing to unpack .../57-python3-reportlab_3.5.31-1_all.deb ...
Unpacking python3-reportlab (3.5.31-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../58-python3-setuptools_44.0.0-1_all.deb ...
Unpacking python3-setuptools (44.0.0-1) ...
Setting up libpipeline1:amd64 (1.5.2-2) ...
Setting up liblcms2-2:amd64 (2.9-4) ...
Setting up libpython3.8-minimal:amd64 (3.8.1-2) ...
Setting up libmagic-mgc (1:5.38-3) ...
Setting up libarchive-zip-perl (1.67-1) ...
Setting up libglib2.0-0:amd64 (2.62.4-1) ...
No schema files found: doing nothing.
Setting up libdebhelper-perl (12.7.3) ...
Setting up libmagic1:amd64 (1:5.38-3) ...
Setting up gettext-base (0.19.8.1-10) ...
Setting up file (1:5.38-3) ...
Setting up libjbig0:amd64 (2.1-3.1+b2) ...
Setting up autotools-dev (20180224.1) ...
Setting up libjpeg62-turbo:amd64 (1:1.5.2-2+b1) ...
Setting up libsigsegv2:amd64 (2.12-2) ...
Setting up libimagequant0:amd64 (2.12.2-1.1) ...
Setting up libpng16-16:amd64 (1.6.37-1) ...
Setting up autopoint (0.19.8.1-10) ...
Setting up libwebp6:amd64 (0.6.1-2+b1) ...
Setting up libcroco3:amd64 (0.6.13-1) ...
Setting up python3.8-minimal (3.8.1-2) ...
Setting up sensible-utils (0.0.12+nmu1) ...
Setting up libuchardet0:amd64 (0.0.6-3) ...
Setting up libsub-override-perl (0.09-2) ...
Setting up sgml-base (1.29.1) ...
Setting up libtiff5:amd64 (4.1.0+git191117-2) ...
Setting up libmpdec2:amd64 (2.4.2-2) ...
Setting up libpython3.8-stdlib:amd64 (3.8.1-2) ...
Setting up python3.8 (3.8.1-2) ...
Setting up libwebpmux3:amd64 (0.6.1-2+b1) ...
Setting up libbsd0:amd64 (0.10.0-1) ...
Setting up libelf1:amd64 (0.176-1.1) ...
Setting up libfile-stripnondeterminism-perl (1.6.3-1) ...
Setting up libpython3.7-stdlib:amd64 (3.7.6-1) ...
Setting up gettext (0.19.8.1-10) ...
Setting up libtool (2.4.6-11) ...
Setting up libwebpdemux2:amd64 (0.6.1-2+b1) ...
Setting up m4 (1.4.18-4) ...
Setting up intltool-debian (0.35.0+20060710.5) ...
Setting up libfreetype6:amd64 (2.10.1-2) ...
Setting up bsdmainutils (11.1.2+b1) ...
update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode
update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode
Setting up autoconf (2.69-11) ...
Setting up dh-strip-nondeterminism (1.6.3-1) ...
Setting up dwz (0.13-5) ...
Setting up groff-base (1.22.4-4) ...
Setting up xml-core (0.18+nmu1) ...
Setting up libpython3-stdlib:amd64 (3.7.5-3) ...
Setting up automake (1:1.16.1-4) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up python3.7 (3.7.6-1) ...
Setting up po-debconf (1.0.21) ...
Setting up python3 (3.7.5-3) ...
Setting up man-db (2.9.0-2) ...
Not building database; man-db/auto-update is not 'true'.
Setting up python3-webencodings (0.5.1-1) ...
Setting up python3-six (1.13.0-1) ...
Setting up python3-pil:amd64 (7.0.0-3) ...
Setting up python3-pypdf2 (1.26.0-3) ...
Setting up python3-reportlab-accel:amd64 (3.5.31-1+b1) ...
Setting up python3-html5lib (1.0.1-1) ...
Setting up python3-reportlab (3.5.31-1) ...
Setting up python3-lib2to3 (3.8.0-1) ...
Setting up python3-cherrypy3 (8.9.1-5) ...
Setting up python3-pkg-resources (44.0.0-1) ...
Setting up python3-distutils (3.8.0-1) ...
Setting up dh-python (4.20191017) ...
Setting up python3-setuptools (44.0.0-1) ...
Setting up python3-all (3.7.5-3) ...
Setting up python3-nose (1.3.7-4) ...
Setting up dh-autoreconf (19) ...
Setting up debhelper (12.7.3) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for libc-bin (2.29-9) ...
Processing triggers for sgml-base (1.29.1) ...
Setting up docbook-xsl (1.79.1+dfsg-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libfakeroot
The following NEW packages will be installed:
  fakeroot libfakeroot
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/132 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Selecting previously unselected package libfakeroot:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18875 files and directories currently installed.)
Preparing to unpack .../libfakeroot_1.24-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.24-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.24-1_amd64.deb ...
Unpacking fakeroot (1.24-1) ...
Setting up libfakeroot:amd64 (1.24-1) ...
Setting up fakeroot (1.24-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Processing triggers for man-db (2.9.0-2) ...
Not building database; man-db/auto-update is not 'true'.
Processing triggers for libc-bin (2.29-9) ...
I: Copying back the cached apt archive contents
I: Building the package
I: Running cd /build/xhtml2pdf-0.2.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us -uc 
dpkg-buildpackage: info: source package xhtml2pdf
dpkg-buildpackage: info: source version 0.2.2-4
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Sandro Tosi <morph at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from xhtml2pdf-0.2.2/debian/source/options: --extend-diff-ignore=\.egg-info
 fakeroot debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python3.8 setup.py clean 
running clean
removing '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build' (and everything under it)
'build/bdist.linux-amd64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
I: pybuild base:217: python3.7 setup.py clean 
running clean
removing '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build' (and everything under it)
'build/bdist.linux-amd64' does not exist -- can't clean it
'build/scripts-3.7' does not exist -- can't clean it
   dh_autoreconf_clean -O--buildsystem=pybuild
   debian/rules override_dh_clean
make[1]: Entering directory '/build/xhtml2pdf-0.2.2'
rm xhtml2pdf.1  xhtml2pdf3.1
rm: cannot remove 'xhtml2pdf.1': No such file or directory
rm: cannot remove 'xhtml2pdf3.1': No such file or directory
make[1]: [debian/rules:28: override_dh_clean] Error 1 (ignored)
dh_clean
make[1]: Leaving directory '/build/xhtml2pdf-0.2.2'
 dpkg-source -b .
dpkg-source: info: using options from xhtml2pdf-0.2.2/debian/source/options: --extend-diff-ignore=\.egg-info
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building xhtml2pdf using existing ./xhtml2pdf_0.2.2.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building xhtml2pdf in xhtml2pdf_0.2.2-4.debian.tar.xz
dpkg-source: info: building xhtml2pdf in xhtml2pdf_0.2.2-4.dsc
 debian/rules build
dh build --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:217: python3.8 setup.py config 
running config
I: pybuild base:217: python3.7 setup.py config 
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3.8 setup.py build 
running build
running build_py
creating /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/xhtml2pdf_reportlab.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/paragraph.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/__init__.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/document.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/pdf.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/wsgi.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/pisa.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/parser.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/context.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/tables.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/default.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/reportlab_paragraph.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/util.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/tags.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf
creating /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/cssDOMElementInterface.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/__init__.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/cssSpecial.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/css.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/cssParser.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/w3c
creating /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/config
copying xhtml2pdf/config/__init__.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/config
copying xhtml2pdf/config/httpconfig.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/config
running egg_info
creating xhtml2pdf.egg-info
writing xhtml2pdf.egg-info/PKG-INFO
writing dependency_links to xhtml2pdf.egg-info/dependency_links.txt
writing entry points to xhtml2pdf.egg-info/entry_points.txt
writing requirements to xhtml2pdf.egg-info/requires.txt
writing top-level names to xhtml2pdf.egg-info/top_level.txt
writing manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
reading manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
I: pybuild base:217: /usr/bin/python3 setup.py build 
running build
running build_py
creating /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/xhtml2pdf_reportlab.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/paragraph.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/__init__.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/document.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/pdf.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/wsgi.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/pisa.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/parser.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/context.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/tables.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/default.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/reportlab_paragraph.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/util.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
copying xhtml2pdf/tags.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf
creating /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/cssDOMElementInterface.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/__init__.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/cssSpecial.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/css.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/w3c
copying xhtml2pdf/w3c/cssParser.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/w3c
creating /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/config
copying xhtml2pdf/config/__init__.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/config
copying xhtml2pdf/config/httpconfig.py -> /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.7_xhtml2pdf/build/xhtml2pdf/config
running egg_info
writing xhtml2pdf.egg-info/PKG-INFO
writing dependency_links to xhtml2pdf.egg-info/dependency_links.txt
writing entry points to xhtml2pdf.egg-info/entry_points.txt
writing requirements to xhtml2pdf.egg-info/requires.txt
writing top-level names to xhtml2pdf.egg-info/top_level.txt
reading manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:217: cd /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build; python3.8 -m nose -v tests
Test that a transparent PNG image is rendered properly. ... ERROR
Test that a transparent PNG image is rendered properly. ... ERROR
tests.test_document.test_document_creation_without_metadata ... ERROR
tests.test_document.test_document_creation_with_metadata ... ERROR
tests.test_document.test_document_creation_with_css_metadata ... ERROR
tests.test_document.test_destination_is_none ... ERROR
tests.test_document.test_in_memory_document ... ERROR
Test function coming from paragraph.__main__ ... ok
testParser (tests.test_parser.TestCase) ... ok
test_getFile (tests.test_parser.TestCase) ... ok
Asserts attributes like 'height: 10px !important" are parsed ... ok
test_image_base64 (tests.test_parser.TestCase) ... ok
test_image_os_path (tests.test_parser.TestCase) ... ok
test_cyclicIterator (tests.test_reportlab.PTCycleTest) ... ok
test_init (tests.test_reportlab.PTCycleTest) ... ok
test_getMaxHeight (tests.test_reportlab.PmlMaxHeightMixInTest) ... ok
test_setMaxHeight_height_gte_70000 (tests.test_reportlab.PmlMaxHeightMixInTest) ... ok
test_setMaxHeight_height_lt_70000 (tests.test_reportlab.PmlMaxHeightMixInTest) ... ok
test_start_will_add_borders_if_border_and_border_color_set_in_attrs (tests.test_tables.PisaTagTableTestCase) ... ok
test_will_set_attrs_on_tabledata (tests.test_tables.PisaTagTableTestCase) ... ok
test_add_cell_styles_will_add_all_line_styles_if_all_border_attrs_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_add_background_style_if_context_frag_has_backcolor_set_and_mode_is_not_tr (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_add_lineabove_style_if_bordertop_attrs_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_add_lineafter_style_if_borderright_attrs_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_add_linebefore_style_if_borderleft_attrs_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_add_linebelow_style_if_borderbottom_attrs_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_add_padding_styles_based_on_frag_padding_attrs (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_background_style_if_context_frag_has_backcolor_set_and_mode_is_tr (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_lineabove_style_if_bordertop_color_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_lineabove_style_if_bordertop_style_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_lineabove_style_if_bordertop_width_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_lineafter_style_if_borderright_color_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_lineafter_style_if_borderright_style_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_lineafter_style_if_borderright_width_set_to_zero_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_linebefore_style_if_borderleft_style_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_linebefore_style_if_borderleft_width_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_linebefore_style_if_borderleft_width_set_to_zero_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_linebelow_style_if_borderbottom_color_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_linebelow_style_if_borderbottom_style_not_set_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_styles_will_not_add_linebelow_style_if_borderbottom_width_set_to_zero_on_context_frag (tests.test_tables.TableDataTestCase) ... ok
test_add_cell_will_increment_col_and_append_data_to_instance_data (tests.test_tables.TableDataTestCase) ... ok
test_add_empty_will_add_tuple_of_args_to_span_instance_variable (tests.test_tables.TableDataTestCase) ... ok
test_add_style_will_append_shallow_copy_of_passed_in_data (tests.test_tables.TableDataTestCase) ... ok
test_get_data_will_add_empty_strings_where_they_have_been_defined_by_add_empty (tests.test_tables.TableDataTestCase) ... ok
test_get_data_will_fail_silently_if_invalid_empty_cell_found (tests.test_tables.TableDataTestCase) ... ok
test_get_data_will_return_data_instance_variable_if_no_styles (tests.test_tables.TableDataTestCase) ... ok
test_init_defines_variables (tests.test_tables.TableDataTestCase) ... ok
test_width_returns_X_if_string (tests.test_tables.TablesHeightTestCase) ... ok
test_width_returns_none_if_value_passed_is_none (tests.test_tables.TablesHeightTestCase) ... ok
test_width_returns_values_passed_if_string_and_ends_with_percent (tests.test_tables.TablesHeightTestCase) ... ok
test_width_will_convert_string_to_float_if_string_passed_in_doesnt_end_with_percent (tests.test_tables.TablesHeightTestCase) ... ok
test_width_returns_float_if_string_contains_string_of_number (tests.test_tables.TablesWidthTestCase) ... ok
test_width_returns_none_if_value_passed_is_none (tests.test_tables.TablesWidthTestCase) ... ok
test_width_returns_values_passed_if_string_and_ends_with_percent (tests.test_tables.TablesWidthTestCase) ... ok
test_width_will_convert_string_to_float_if_string_passed_in_doesnt_end_with_percent (tests.test_tables.TablesWidthTestCase) ... ok
test_pisa_tag_will_set_attrs_on_init (tests.test_tags.PisaTagTestCase) ... ok
test_copy_attrs (tests.test_utils.CopyUtils) ... ok
test_set_value (tests.test_utils.CopyUtils) ... ok
test_transform_attrs (tests.test_utils.CopyUtils) ... ok
test_will_return_default_if_passed_value_is_non_case_sensitive_hidden (tests.test_utils.GetBorderStyleTestCase) ... ok
test_will_return_default_if_passed_value_is_non_case_sensitive_none (tests.test_utils.GetBorderStyleTestCase) ... ok
test_will_return_value_if_passed_value_is_not_none_or_hidden (tests.test_utils.GetBorderStyleTestCase) ... ok
test_get_pos_raising (tests.test_utils.GetPosTestCase) ... ok
test_get_pos_simple (tests.test_utils.GetPosTestCase) ... ok
test_FrameDimensions_bottom_right_width_height (tests.test_utils.PisaDimensionTestCase) ... ok
test_FrameDimensions_bottom_right_width_height_with_margin (tests.test_utils.PisaDimensionTestCase) ... ok
test_FrameDimensions_left_top_bottom_right (tests.test_utils.PisaDimensionTestCase) ... ok
test_FrameDimensions_left_top_width_height (tests.test_utils.PisaDimensionTestCase) ... ok
test_FrameDimensions_left_top_width_height_with_margin (tests.test_utils.PisaDimensionTestCase) ... ok
test_frame_dimensions_for_box_len_eq_4 (tests.test_utils.PisaDimensionTestCase) ... ok
test_trame_dimentions_for_height_without_top_or_bottom (tests.test_utils.PisaDimensionTestCase) ... ok
test_trame_dimentions_for_width_without_left_or_right (tests.test_utils.PisaDimensionTestCase) ... ok
Asserts bytes generated by reportlab are returned ... ok
test_roman_numeral_conversion (tests.test_utils.TestTagUtils) ... ok
test_get_color_for_CSS_RGB_function (tests.test_utils.UtilsColorTestCase) ... ok
test_get_color_for_RGB (tests.test_utils.UtilsColorTestCase) ... ok
test_get_color_for_RGB_with_len_4 (tests.test_utils.UtilsColorTestCase) ... ok
test_get_color_for_none (tests.test_utils.UtilsColorTestCase) ... ok
test_get_color_from_color (tests.test_utils.UtilsColorTestCase) ... ok
test_get_color_simple (tests.test_utils.UtilsColorTestCase) ... ok
test_get_transparent_color (tests.test_utils.UtilsColorTestCase) ... ok
test_getCoords_h_lt_0 (tests.test_utils.UtilsCoordTestCase) ... ok
test_getCoords_simple (tests.test_utils.UtilsCoordTestCase) ... ok
test_getCoords_w_and_h_none (tests.test_utils.UtilsCoordTestCase) ... ok
test_getCoords_w_lt_0 (tests.test_utils.UtilsCoordTestCase) ... ok
test_getCoords_x_lt_0 (tests.test_utils.UtilsCoordTestCase) ... ok
test_getCoords_y_lt_0 (tests.test_utils.UtilsCoordTestCase) ... ok
test_get_size_for_cm (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_float (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_i (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_in (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_inch (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_mm (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_none (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_none_str (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_pc (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_for_tuple (tests.test_utils.UtilsGetSizeTestCase) ... ok
test_get_size_simple (tests.test_utils.UtilsGetSizeTestCase) ... ok

======================================================================
ERROR: Test that a transparent PNG image is rendered properly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 95, in test_document_with_transparent_image
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f3eee5b8670>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
xhtml2pdf: DEBUG: FileObject '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/samples/img/denker-transparent.png', Basepath: '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests'
xhtml2pdf: DEBUG: URLParts: (ParseResult(scheme='', netloc='', path='/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests', params='', query='', fragment=''), '')
xhtml2pdf: DEBUG: Unrecognized scheme, assuming local file path
xhtml2pdf: DEBUG: Parsing img tag, src: <xhtml2pdf.util.pisaFileObject object at 0x7f3eee6b4af0>
xhtml2pdf: DEBUG: Attrs: {'src': <xhtml2pdf.util.pisaFileObject object at 0x7f3eee6b4af0>, 'width': None, 'height': None, 'align': None, 'id': None}
PIL.PngImagePlugin: DEBUG: STREAM b'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM b'PLTE' 41 48
PIL.PngImagePlugin: DEBUG: STREAM b'tRNS' 101 1
PIL.PngImagePlugin: DEBUG: STREAM b'bKGD' 114 1
PIL.PngImagePlugin: DEBUG: b'bKGD' 114 1 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'pHYs' 127 9
PIL.PngImagePlugin: DEBUG: STREAM b'tIME' 148 7
PIL.PngImagePlugin: DEBUG: b'tIME' 148 7 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'IDAT' 167 2997
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test that a transparent PNG image is rendered properly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 120, in test_document_background_image
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f3eee6f58b0>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
xhtml2pdf: DEBUG: FileObject '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/samples/img/denker-transparent.png', Basepath: '/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests'
xhtml2pdf: DEBUG: URLParts: (ParseResult(scheme='', netloc='', path='/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests', params='', query='', fragment=''), '')
xhtml2pdf: DEBUG: Unrecognized scheme, assuming local file path
xhtml2pdf: WARNING: missing explicit frame definition for content or just static frames

PIL.PngImagePlugin: DEBUG: STREAM b'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM b'PLTE' 41 48
PIL.PngImagePlugin: DEBUG: STREAM b'tRNS' 101 1
PIL.PngImagePlugin: DEBUG: STREAM b'bKGD' 114 1
PIL.PngImagePlugin: DEBUG: b'bKGD' 114 1 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'pHYs' 127 9
PIL.PngImagePlugin: DEBUG: STREAM b'tIME' 148 7
PIL.PngImagePlugin: DEBUG: b'tIME' 148 7 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM b'IDAT' 167 2997
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_document_creation_without_metadata
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 138, in test_document_creation_without_metadata
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f3eee689ca0>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_document_creation_with_metadata
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 148, in test_document_creation_with_metadata
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f3eee6f5d30>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = {'author': 'MyCorp Ltd.', 'title': 'My Document Title', 'subject': 'My Document Subject', 'keywords': 'pdf, documents'}
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_document_creation_with_css_metadata
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 160, in test_document_creation_with_css_metadata
    pisaDocument(
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = <_io.StringIO object at 0x7f3eee5dc310>
  dest = <_io.BufferedRandom name=3>
  path = None
  link_callback = None
  xhtml = False
  context_meta = {'author': 'MyCorp Ltd.', 'title': 'My Document Title', 'subject': 'My Document Subject', 'keywords': 'pdf, documents'}
xhtml2pdf: WARNING: missing explicit frame definition for content or just static frames

--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_destination_is_none
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 169, in test_destination_is_none
    context = pisaDocument(HTML_CONTENT.format(head="", extra_html=""))
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = '<!DOCTYPE html>\n<html>\n<head>\n\n</head>\n<body>\n    <div>\n        <h1> Hello, world! </div>\n\n        <p>\n            The quick red fox jumps over the lazy brown dog.\n        </p>\n        \n    </div>\n</body>\n</html>'
  dest = None
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: tests.test_document.test_in_memory_document
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/tests/test_document.py", line 175, in test_in_memory_document
    pisaDocument(HTML_CONTENT.format(head="", extra_html=""), dest=in_memory_file)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/document.py", line 136, in pisaDocument
    doc.build(context.story)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 1056, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python3/dist-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable
    self.afterFlowable(f)
  File "/build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable
    cgi.escape(copy.deepcopy(flowable.text), 1),
AttributeError: module 'cgi' has no attribute 'escape'
-------------------- >> begin captured logging << --------------------
xhtml2pdf: DEBUG: pisaDocument options:
  src = '<!DOCTYPE html>\n<html>\n<head>\n\n</head>\n<body>\n    <div>\n        <h1> Hello, world! </div>\n\n        <p>\n            The quick red fox jumps over the lazy brown dog.\n        </p>\n        \n    </div>\n</body>\n</html>'
  dest = <_io.BytesIO object at 0x7f3eee5de590>
  path = None
  link_callback = None
  xhtml = False
  context_meta = None
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 98 tests in 0.309s

FAILED (errors=7)
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /build/xhtml2pdf-0.2.2/.pybuild/cpython3_3.8_xhtml2pdf/build; python3.8 -m nose -v tests
dh_auto_test: pybuild --test --test-nose -i python{version} -p "3.8 3.7" returned exit code 13
make: *** [debian/rules:12: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
I: copying local configuration
E: Failed autobuilding of package
I: unmounting /home/mattia/pbuilder/repository/ filesystem
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build/19909 and its subdirectories
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200113/a52305cd/attachment-0001.sig>


More information about the Python-modules-team mailing list