Source: cherrypy3
Version: 18.9.0-2
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13
Tags: fixed-upstream
Forwarded: https://github.com/cherrypy/cherrypy/issues/2014

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
cgi was removed in 3.13. cherrypy has fixed this in 18.10.0.

Log snippet:

   dh_auto_test -O--buildsystem=pybuild
I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/test 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ws4py/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ws4py/build; 
python3.13 -m pytest test
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.3.0
collected 120 items / 1 error

==================================== ERRORS ====================================
__ ERROR collecting .pybuild/cpython3_3.13_ws4py/build/test/test_cherrypy.py ___
ImportError while importing test module 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ws4py/build/test/test_cherrypy.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)
test/test_cherrypy.py:9: in <module>
    import cherrypy
/usr/lib/python3/dist-packages/cherrypy/__init__.py:66: in <module>
    from ._cperror import (
/usr/lib/python3/dist-packages/cherrypy/_cperror.py:135: in <module>
    from cherrypy.lib import httputil as _httputil
/usr/lib/python3/dist-packages/cherrypy/lib/httputil.py:15: in <module>
    from cgi import parse_header
E   ModuleNotFoundError: No module named 'cgi'
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/cherrypy/__init__.py:60
  /usr/lib/python3/dist-packages/cherrypy/__init__.py:60: DeprecationWarning: 
pkg_resources is deprecated as an API. See 
https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154
  /usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154: 
DeprecationWarning: Deprecated call to 
`pkg_resources.declare_namespace('sphinxcontrib')`.
  Implementing implicit namespace packages (as specified in PEP 420) is 
preferred to `pkg_resources.declare_namespace`. See 
https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154
  /usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154: 
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`.
  Implementing implicit namespace packages (as specified in PEP 420) is 
preferred to `pkg_resources.declare_namespace`. See 
https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR test/test_cherrypy.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 3 warnings, 1 error in 0.26s =========================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ws4py/build; python3.13 -m pytest test
I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/test 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ws4py/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ws4py/build; 
python3.12 -m pytest test
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.3.0
collected 121 items

test/test_cherrypy.py .                                                  [  0%]
test/test_client.py .................                                    [ 14%]
test/test_frame.py .........................                             [ 35%]
test/test_logger.py ....                                                 [ 38%]
test/test_manager.py .................                                   [ 52%]
test/test_messaging.py ........                                          [ 59%]
test/test_stream.py ................................                     [ 85%]
test/test_utils.py .                                                     [ 86%]
test/test_websocket.py ................                                  [100%]

=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/cherrypy/__init__.py:60
  /usr/lib/python3/dist-packages/cherrypy/__init__.py:60: DeprecationWarning: 
pkg_resources is deprecated as an API. See 
https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154
  /usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154: 
DeprecationWarning: Deprecated call to 
`pkg_resources.declare_namespace('sphinxcontrib')`.
  Implementing implicit namespace packages (as specified in PEP 420) is 
preferred to `pkg_resources.declare_namespace`. See 
https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154
  /usr/lib/python3/dist-packages/pkg_resources/__init__.py:3154: 
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`.
  Implementing implicit namespace packages (as specified in PEP 420) is 
preferred to `pkg_resources.declare_namespace`. See 
https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../../../usr/lib/python3/dist-packages/cherrypy/lib/httputil.py:15
  /usr/lib/python3/dist-packages/cherrypy/lib/httputil.py:15: 
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    from cgi import parse_header

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================= 121 passed, 4 warnings in 4.53s ========================
I: pybuild pybuild:334: rm 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ws4py/build/my.log
dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned 
exit code 13
make: *** [debian/rules:12: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-19T09:44:20Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/791251/

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

Reply via email to