Source: python-colorlog
Version: 6.8.2-1
Severity: normal
User: [email protected]
Usertags: python3.13
Forwarded: 
https://github.com/borntyping/python-colorlog/commit/607485def2d60b60c40c0d682574324b47fc30ba

python-mbed-ls 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:

======================================================================
ERROR: test_start_logging (test.base.CLISetup.test_start_logging)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/base.py", line 136, in test_start_logging
    cli.start_logging()
    ~~~~~~~~~~~~~~~~~^^
  File "/<<PKGBUILDDIR>>/mbed_lstools/main.py", line 229, in start_logging
    colorlog.basicConfig(
    ~~~~~~~~~~~~~~~~~~~~^
        format='%(log_color)s%(levelname)s%(reset)s:%(name)s:%(message)s')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/colorlog/wrappers.py", line 56, in 
basicConfig
    logging._acquireLock()  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'logging' has no attribute '_acquireLock'

----------------------------------------------------------------------
Ran 83 tests in 0.135s

FAILED (errors=1, skipped=4)

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

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