Source: python-webob Version: 1:1.8.7-1 Severity: normal User: debian-pyt...@lists.debian.org Usertags: python3.13 Forwarded: https://github.com/Pylons/webob/issues/437
This package failed build from source when test-built against a version of python3-defaults that includes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: debian/rules override_dh_auto_test make[1]: Entering directory '/<<PKGBUILDDIR>>' # enable network, tests.test_in_wsgiref.test_request_reading needs it set -e ; for vers in `py3versions -vr` ; do \ http_proxy='' PYTHONPATH=.:/<<PKGBUILDDIR>>/src python$vers -m pytest tests ; \ done py3versions: no X-Python3-Version in control file, using supported versions ============================= test session starts ============================== platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> configfile: setup.cfg plugins: typeguard-4.3.0 collected 44 items / 21 errors ==================================== ERRORS ==================================== __________________ ERROR collecting tests/test_acceptparse.py __________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_acceptparse.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_acceptparse.py:5: in <module> from webob.acceptparse import ( src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ___________________ ERROR collecting tests/test_byterange.py ___________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_byterange.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_byterange.py:3: in <module> from webob.byterange import Range src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' _______________ ERROR collecting tests/test_client_functional.py _______________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_client_functional.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_client_functional.py:5: in <module> from webob import Request, Response src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ____________________ ERROR collecting tests/test_compat.py _____________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_compat.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_compat.py:7: in <module> from webob.compat import text_type src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ____________________ ERROR collecting tests/test_cookies.py ____________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_cookies.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_cookies.py:5: in <module> from webob import cookies src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' __________________ ERROR collecting tests/test_cookies_bw.py ___________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_cookies_bw.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_cookies_bw.py:3: in <module> from webob import cookies src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ________________ ERROR collecting tests/test_datetime_utils.py _________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_datetime_utils.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_datetime_utils.py:6: in <module> from webob import datetime_utils src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ______________________ ERROR collecting tests/test_dec.py ______________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_dec.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_dec.py:2: in <module> from webob.request import Request src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' __________________ ERROR collecting tests/test_descriptors.py __________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_descriptors.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_descriptors.py:6: in <module> from webob.compat import ( src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' _____________________ ERROR collecting tests/test_etag.py ______________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_etag.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_etag.py:3: in <module> from webob.etag import ETagMatcher, IfRange, etag_property src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ___________________ ERROR collecting tests/test_etag_nose.py ___________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_etag_nose.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_etag_nose.py:3: in <module> from webob.etag import IfRange, ETagMatcher src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ______________________ ERROR collecting tests/test_exc.py ______________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_exc.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_exc.py:5: in <module> from webob.request import Request src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ____________________ ERROR collecting tests/test_headers.py ____________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_headers.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_headers.py:3: in <module> from webob import headers src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' __________________ ERROR collecting tests/test_in_wsgiref.py ___________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_in_wsgiref.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_in_wsgiref.py:4: in <module> import cgi E ModuleNotFoundError: No module named 'cgi' _____________________ ERROR collecting tests/test_misc.py ______________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_misc.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_misc.py:3: in <module> from webob.util import html_escape src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ___________________ ERROR collecting tests/test_multidict.py ___________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_multidict.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_multidict.py:4: in <module> from webob import multidict src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ____________________ ERROR collecting tests/test_request.py ____________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_request.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_request.py:13: in <module> from webob.acceptparse import ( src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ___________________ ERROR collecting tests/test_response.py ____________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_response.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_response.py:7: in <module> from webob.request import BaseRequest src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ____________________ ERROR collecting tests/test_static.py _____________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_static.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_static.py:9: in <module> from webob import static src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' ___________________ ERROR collecting tests/test_transcode.py ___________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_transcode.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_transcode.py:1: in <module> from webob.request import Request, Transcoder src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' _____________________ ERROR collecting tests/test_util.py ______________________ ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_util.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_util.py:2: in <module> from webob.response import Response src/webob/__init__.py:1: in <module> from webob.datetime_utils import ( # noqa: F401 src/webob/datetime_utils.py:18: in <module> from webob.compat import ( src/webob/compat.py:5: in <module> from cgi import parse_header E ModuleNotFoundError: No module named 'cgi' =========================== short test summary info ============================ ERROR tests/test_acceptparse.py ERROR tests/test_byterange.py ERROR tests/test_client_functional.py ERROR tests/test_compat.py ERROR tests/test_cookies.py ERROR tests/test_cookies_bw.py ERROR tests/test_datetime_utils.py ERROR tests/test_dec.py ERROR tests/test_descriptors.py ERROR tests/test_etag.py ERROR tests/test_etag_nose.py ERROR tests/test_exc.py ERROR tests/test_headers.py ERROR tests/test_in_wsgiref.py ERROR tests/test_misc.py ERROR tests/test_multidict.py ERROR tests/test_request.py ERROR tests/test_response.py ERROR tests/test_static.py ERROR tests/test_transcode.py ERROR tests/test_util.py !!!!!!!!!!!!!!!!!!! Interrupted: 21 errors during collection !!!!!!!!!!!!!!!!!!! ============================== 21 errors in 2.18s ============================== make[1]: *** [debian/rules:12: override_dh_auto_test] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:8: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T09:38:19Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/791158/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano