Source: python-pythonjsonlogger
Version: 2.0.1-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20231212 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> dh binary --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:310: python3.12 setup.py config
> running config
> I: pybuild base:310: python3.11 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build
> running build
> running build_py
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pythonjsonlogger/build/pythonjsonlogger
> copying src/pythonjsonlogger/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pythonjsonlogger/build/pythonjsonlogger
> copying src/pythonjsonlogger/jsonlogger.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pythonjsonlogger/build/pythonjsonlogger
> I: pybuild base:310: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pythonjsonlogger/build/pythonjsonlogger
> copying src/pythonjsonlogger/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pythonjsonlogger/build/pythonjsonlogger
> copying src/pythonjsonlogger/jsonlogger.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pythonjsonlogger/build/pythonjsonlogger
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a
> future version. Users looking for a generic test entry point independent of
> test runner are encouraged to use tox.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:193:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> ir_d = dist.fetch_build_eggs(dist.install_requires)
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:194:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> tr_d = dist.fetch_build_eggs(dist.tests_require or [])
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:195:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> er_d = dist.fetch_build_eggs(
> WARNING: The wheel package is not available.
> running egg_info
> creating src/python_json_logger.egg-info
> writing src/python_json_logger.egg-info/PKG-INFO
> writing dependency_links to
> src/python_json_logger.egg-info/dependency_links.txt
> writing top-level names to src/python_json_logger.egg-info/top_level.txt
> writing manifest file 'src/python_json_logger.egg-info/SOURCES.txt'
> reading manifest file 'src/python_json_logger.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'src/python_json_logger.egg-info/SOURCES.txt'
> running build_ext
> testCustomObjectSerialization
> (tests.tests.TestJsonLogger.testCustomObjectSerialization) ... message
> FAIL
> testDefaultFormat (tests.tests.TestJsonLogger.testDefaultFormat) ... testing
> logging format
> ok
> testEnsureAsciiFalse (tests.tests.TestJsonLogger.testEnsureAsciiFalse) ...
> Привет
> ok
> testEnsureAsciiTrue (tests.tests.TestJsonLogger.testEnsureAsciiTrue) ...
> Привет
> ok
> testExcInfo (tests.tests.TestJsonLogger.testExcInfo) ... hello
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/tests.py", line 187, in testExcInfo
> raise Exception('test')
> Exception: test
> ok
> testFormatKeys (tests.tests.TestJsonLogger.testFormatKeys) ... testing
> logging format
> ok
> testJsonCustomDefault (tests.tests.TestJsonLogger.testJsonCustomDefault) ...
> {'adate': datetime.datetime(1999, 12, 31, 23, 59), 'normal': 'value'}
> ok
> testJsonCustomLogicAddsField
> (tests.tests.TestJsonLogger.testJsonCustomLogicAddsField) ... message
> ok
> testJsonDefaultEncoder (tests.tests.TestJsonLogger.testJsonDefaultEncoder)
> ... {'adate': datetime.datetime(1999, 12, 31, 23, 59), 'otherdate':
> datetime.date(1789, 7, 14), 'otherdatetime': datetime.datetime(1789, 7, 14,
> 23, 59), 'otherdatetimeagain': datetime.datetime(1900, 1, 1, 0, 0)}
> ok
> testJsonDefaultEncoderWithTimestamp
> (tests.tests.TestJsonLogger.testJsonDefaultEncoderWithTimestamp) ... Hello
> ok
> testLogADict (tests.tests.TestJsonLogger.testLogADict) ... {'text': 'testing
> logging', 'num': 1, 5: '9', 'nested': {'more': 'data'}}
> ok
> testLogExtra (tests.tests.TestJsonLogger.testLogExtra) ... hello
> ok
> testRenameBaseField (tests.tests.TestJsonLogger.testRenameBaseField) ...
> testing logging format
> ok
> testUnknownFormatKey (tests.tests.TestJsonLogger.testUnknownFormatKey) ...
> testing unknown logging format
> ok
>
> ======================================================================
> FAIL: testCustomObjectSerialization
> (tests.tests.TestJsonLogger.testCustomObjectSerialization)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/tests.py", line 232, in
> testCustomObjectSerialization
> self.assertEqual(msg, "{\"message\": \" message\", \"special\": [3.0,
> 8.0]}\n")
> AssertionError: '{"message": " message", "taskName": null, "special": [3.0,
> 8.0]}\n' != '{"message": " message", "special": [3.0, 8.0]}\n'
> - {"message": " message", "taskName": null, "special": [3.0, 8.0]}
> ? ------------------
> + {"message": " message", "special": [3.0, 8.0]}
>
>
> ----------------------------------------------------------------------
> Ran 14 tests in 0.004s
>
> FAILED (failures=1)
> Test failed: <unittest.runner.TextTestResult run=14 errors=0 failures=1>
> error: Test failed: <unittest.runner.TextTestResult run=14 errors=0
> failures=1>
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1:
> python3.12 setup.py test
> I: pybuild base:310: python3.11 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a
> future version. Users looking for a generic test entry point independent of
> test runner are encouraged to use tox.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:193:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> ir_d = dist.fetch_build_eggs(dist.install_requires)
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:194:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> tr_d = dist.fetch_build_eggs(dist.tests_require or [])
> WARNING: The wheel package is not available.
> /usr/lib/python3/dist-packages/setuptools/command/test.py:195:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> er_d = dist.fetch_build_eggs(
> WARNING: The wheel package is not available.
> running egg_info
> writing src/python_json_logger.egg-info/PKG-INFO
> writing dependency_links to
> src/python_json_logger.egg-info/dependency_links.txt
> writing top-level names to src/python_json_logger.egg-info/top_level.txt
> reading manifest file 'src/python_json_logger.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'src/python_json_logger.egg-info/SOURCES.txt'
> running build_ext
> testCustomObjectSerialization
> (tests.tests.TestJsonLogger.testCustomObjectSerialization) ... message
> ok
> testDefaultFormat (tests.tests.TestJsonLogger.testDefaultFormat) ... testing
> logging format
> ok
> testEnsureAsciiFalse (tests.tests.TestJsonLogger.testEnsureAsciiFalse) ...
> Привет
> ok
> testEnsureAsciiTrue (tests.tests.TestJsonLogger.testEnsureAsciiTrue) ...
> Привет
> ok
> testExcInfo (tests.tests.TestJsonLogger.testExcInfo) ... hello
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/tests.py", line 187, in testExcInfo
> raise Exception('test')
> Exception: test
> ok
> testFormatKeys (tests.tests.TestJsonLogger.testFormatKeys) ... testing
> logging format
> ok
> testJsonCustomDefault (tests.tests.TestJsonLogger.testJsonCustomDefault) ...
> {'adate': datetime.datetime(1999, 12, 31, 23, 59), 'normal': 'value'}
> ok
> testJsonCustomLogicAddsField
> (tests.tests.TestJsonLogger.testJsonCustomLogicAddsField) ... message
> ok
> testJsonDefaultEncoder (tests.tests.TestJsonLogger.testJsonDefaultEncoder)
> ... {'adate': datetime.datetime(1999, 12, 31, 23, 59), 'otherdate':
> datetime.date(1789, 7, 14), 'otherdatetime': datetime.datetime(1789, 7, 14,
> 23, 59), 'otherdatetimeagain': datetime.datetime(1900, 1, 1, 0, 0)}
> ok
> testJsonDefaultEncoderWithTimestamp
> (tests.tests.TestJsonLogger.testJsonDefaultEncoderWithTimestamp) ... Hello
> ok
> testLogADict (tests.tests.TestJsonLogger.testLogADict) ... {'text': 'testing
> logging', 'num': 1, 5: '9', 'nested': {'more': 'data'}}
> ok
> testLogExtra (tests.tests.TestJsonLogger.testLogExtra) ... hello
> ok
> testRenameBaseField (tests.tests.TestJsonLogger.testRenameBaseField) ...
> testing logging format
> ok
> testUnknownFormatKey (tests.tests.TestJsonLogger.testUnknownFormatKey) ...
> testing unknown logging format
> ok
>
> ----------------------------------------------------------------------
> Ran 14 tests in 0.007s
>
> OK
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11"
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-pythonjsonlogger_2.0.1-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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 mark 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.