[Python-modules-team] Bug#1008336: xhtml2pdf: FTBFS: dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.10 3.9" returned exit code 13

Lucas Nussbaum lucas at debian.org
Sat Mar 26 20:41:07 GMT 2022


Source: xhtml2pdf
Version: 0.2.4-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220326 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  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:237: python3.10 setup.py config 
> running config
> I: pybuild base:237: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3.10 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/paragraph.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/xhtml2pdf_reportlab.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/parser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/default.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/tables.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/tags.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/wsgi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/reportlab_paragraph.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/context.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/pisa.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/pdf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/document.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/cssDOMElementInterface.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/cssSpecial.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/cssParser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/css.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/w3c
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/config
> copying xhtml2pdf/config/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/config
> copying xhtml2pdf/config/httpconfig.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_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'
> adding license file 'LICENSE.txt'
> adding license file 'AUTHORS.rst'
> writing manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
> I: pybuild base:237: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/paragraph.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/xhtml2pdf_reportlab.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/parser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/default.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/tables.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/tags.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/wsgi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/reportlab_paragraph.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/context.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/pisa.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/pdf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> copying xhtml2pdf/document.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/cssDOMElementInterface.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/cssSpecial.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/cssParser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/w3c
> copying xhtml2pdf/w3c/css.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/w3c
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/config
> copying xhtml2pdf/config/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/config
> copying xhtml2pdf/config/httpconfig.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_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'
> adding license file 'LICENSE.txt'
> adding license file 'AUTHORS.rst'
> writing manifest file 'xhtml2pdf.egg-info/SOURCES.txt'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build; python3.10 -m nose -v test
> Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)) ... ERROR
> Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)) ... ERROR
> 
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
>     module = self.importer.importFromPath(
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.10/imp.py", line 235, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.10/imp.py", line 172, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 719, in _load
>   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
>   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/test/testBackground.py", line 17, in <module>
>     from cookbook import html2pdf
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/test/cookbook.py", line 29, in <module>
>     from xhtml2pdf import pisa
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/pisa.py", line 19, in <module>
>     from xhtml2pdf.document import pisaDocument
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/document.py", line 4, in <module>
>     from xhtml2pdf.context import pisaContext
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/context.py", line 19, in <module>
>     import xhtml2pdf.parser
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/parser.py", line 32, in <module>
>     from xhtml2pdf.tables import *  # TODO: Kill wild import!
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/tables.py", line 8, in <module>
>     from xhtml2pdf.tags import pisaTag
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/tags.py", line 10, in <module>
>     from xhtml2pdf import xhtml2pdf_reportlab
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 20, in <module>
>     from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
> ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)
> 
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
>     module = self.importer.importFromPath(
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.10/imp.py", line 235, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.10/imp.py", line 172, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 719, in _load
>   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
>   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/test/testEvenOddPage.py", line 16, in <module>
>     from cookbook import html2pdf
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/test/cookbook.py", line 29, in <module>
>     from xhtml2pdf import pisa
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/pisa.py", line 19, in <module>
>     from xhtml2pdf.document import pisaDocument
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/document.py", line 4, in <module>
>     from xhtml2pdf.context import pisaContext
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/context.py", line 19, in <module>
>     import xhtml2pdf.parser
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/parser.py", line 32, in <module>
>     from xhtml2pdf.tables import *  # TODO: Kill wild import!
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/tables.py", line 8, in <module>
>     from xhtml2pdf.tags import pisaTag
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/tags.py", line 10, in <module>
>     from xhtml2pdf import xhtml2pdf_reportlab
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 20, in <module>
>     from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
> ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)
> 
> ----------------------------------------------------------------------
> Ran 2 tests in 0.164s
> 
> FAILED (errors=2)
> E: pybuild pybuild:367: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xhtml2pdf/build; python3.10 -m nose -v test
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build; python3.9 -m nose -v test
> Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)) ... ERROR
> Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)) ... ERROR
> 
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
>     module = self.importer.importFromPath(
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.9/imp.py", line 234, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.9/imp.py", line 171, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 711, in _load
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/test/testBackground.py", line 17, in <module>
>     from cookbook import html2pdf
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/test/cookbook.py", line 29, in <module>
>     from xhtml2pdf import pisa
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/pisa.py", line 19, in <module>
>     from xhtml2pdf.document import pisaDocument
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/document.py", line 4, in <module>
>     from xhtml2pdf.context import pisaContext
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/context.py", line 19, in <module>
>     import xhtml2pdf.parser
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/parser.py", line 32, in <module>
>     from xhtml2pdf.tables import *  # TODO: Kill wild import!
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/tables.py", line 8, in <module>
>     from xhtml2pdf.tags import pisaTag
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/tags.py", line 10, in <module>
>     from xhtml2pdf import xhtml2pdf_reportlab
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 20, in <module>
>     from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
> ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)
> 
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
>     module = self.importer.importFromPath(
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.9/imp.py", line 234, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.9/imp.py", line 171, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 711, in _load
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/test/testEvenOddPage.py", line 16, in <module>
>     from cookbook import html2pdf
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/test/cookbook.py", line 29, in <module>
>     from xhtml2pdf import pisa
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/pisa.py", line 19, in <module>
>     from xhtml2pdf.document import pisaDocument
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/document.py", line 4, in <module>
>     from xhtml2pdf.context import pisaContext
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/context.py", line 19, in <module>
>     import xhtml2pdf.parser
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/parser.py", line 32, in <module>
>     from xhtml2pdf.tables import *  # TODO: Kill wild import!
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/tables.py", line 8, in <module>
>     from xhtml2pdf.tags import pisaTag
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/tags.py", line 10, in <module>
>     from xhtml2pdf import xhtml2pdf_reportlab
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build/xhtml2pdf/xhtml2pdf_reportlab.py", line 20, in <module>
>     from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
> ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)
> 
> ----------------------------------------------------------------------
> Ran 2 tests in 0.178s
> 
> FAILED (errors=2)
> E: pybuild pybuild:367: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_xhtml2pdf/build; python3.9 -m nose -v test
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.10 3.9" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/03/26/xhtml2pdf_0.2.4-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Python-modules-team mailing list