Source: python-reportlab, xhtml2pdf
Control: found -1 python-reportlab/3.6.7-1
Control: found -1 xhtml2pdf/0.2.4-1
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: breaks needs-update

Dear maintainer(s),

With a recent upload of python-reportlab the autopkgtest of xhtml2pdf fails in testing when that autopkgtest is run with the binary packages of python-reportlab from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python-reportlab       from testing    3.6.7-1
xhtml2pdf              from testing    0.2.4-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python-reportlab to testing [1]. Due to the nature of this issue, I filed this bug report against both packages. Can you please investigate the situation and reassign the bug to the right package?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python-reportlab

https://ci.debian.net/data/autopkgtest/testing/amd64/x/xhtml2pdf/19867209/log.gz

============================= test session starts ==============================
platform linux -- Python 3.9.10, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
rootdir: /tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src
collected 2 items / 7 errors

==================================== ERRORS ==================================== ___________________ ERROR collecting tests/test_document.py ____________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_document.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_document.py:12: in <module>
    from xhtml2pdf.document import pisaDocument
../xhtml2pdf/document.py:4: in <module>
    from xhtml2pdf.context import pisaContext
../xhtml2pdf/context.py:19: in <module>
    import xhtml2pdf.parser
../xhtml2pdf/parser.py:32: in <module>
    from xhtml2pdf.tables import *  # TODO: Kill wild import!
../xhtml2pdf/tables.py:8: in <module>
    from xhtml2pdf.tags import pisaTag
../xhtml2pdf/tags.py:10: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py) ____________________ ERROR collecting tests/test_parser.py _____________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_parser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_parser.py:3: in <module>
    from xhtml2pdf.parser import pisaParser
../xhtml2pdf/parser.py:32: in <module>
    from xhtml2pdf.tables import *  # TODO: Kill wild import!
../xhtml2pdf/tables.py:8: in <module>
    from xhtml2pdf.tags import pisaTag
../xhtml2pdf/tags.py:10: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py) ___________________ ERROR collecting tests/test_reportlab.py ___________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_reportlab.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_reportlab.py:2: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py) ___________________ ERROR collecting tests/test_table_css.py ___________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_table_css.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_table_css.py:6: in <module>
    from xhtml2pdf.document import pisaDocument
../xhtml2pdf/document.py:4: in <module>
    from xhtml2pdf.context import pisaContext
../xhtml2pdf/context.py:19: in <module>
    import xhtml2pdf.parser
../xhtml2pdf/parser.py:32: in <module>
    from xhtml2pdf.tables import *  # TODO: Kill wild import!
../xhtml2pdf/tables.py:8: in <module>
    from xhtml2pdf.tags import pisaTag
../xhtml2pdf/tags.py:10: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py) ____________________ ERROR collecting tests/test_tables.py _____________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_tables.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_tables.py:4: in <module>
    from xhtml2pdf import tables
../xhtml2pdf/tables.py:8: in <module>
    from xhtml2pdf.tags import pisaTag
../xhtml2pdf/tags.py:10: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py) _____________________ ERROR collecting tests/test_tags.py ______________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_tags.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_tags.py:4: in <module>
    from xhtml2pdf import tags
../xhtml2pdf/tags.py:10: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py) _____________________ ERROR collecting tests/test_utils.py _____________________ ImportError while importing test module '/tmp/autopkgtest-lxc.47d2kh2e/downtmp/build.qpK/src/tests/test_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_utils.py:6: in <module>
    from xhtml2pdf.tags import int_to_roman
../xhtml2pdf/tags.py:10: in <module>
    from xhtml2pdf import xhtml2pdf_reportlab
../xhtml2pdf/xhtml2pdf_reportlab.py:20: in <module>
    from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
E ImportError: cannot import name 'getStringIO' from 'reportlab.lib.utils' (/usr/lib/python3/dist-packages/reportlab/lib/utils.py)

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to