Package: src:python-datamodel-code-generator Version: 0.35.0-1 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202512/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:python-datamodel-code-generator, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14 * Building wheel... Successfully built datamodel_code_generator-0.35.0-py3-none-any.whl [... snipped ...] tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-1/test_main_graphql_use_standard0') @freeze_time("2019-07-26") @pytest.mark.skipif( black.__version__.split(".")[0] == "19", reason="Installed black doesn't support the old style", ) def test_main_graphql_use_standard_collections(tmp_path: Path) -> None: output_file: Path = tmp_path / "output.py" return_code: Exit = main([ "--input", str(GRAPHQL_DATA_PATH / "use-standard-collections.graphql"), "--output", str(output_file), "--input-file-type", "graphql", "--use-standard-collections", ]) > assert return_code == Exit.OK E assert <Exit.ERROR: 1> == <Exit.OK: 0> E + where <Exit.OK: 0> = Exit.OK tests/main/graphql/test_main_graphql.py:273: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__main__.py", line 512, in main generate( ~~~~~~~~^ input_=config.url or config.input or sys.stdin.read(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<73 lines>... disable_future_imports=config.disable_future_imports, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__init__.py", line 338, in generate from datamodel_code_generator.parser.graphql import GraphQLParser # noqa: PLC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/parser/graphql.py", line 46, in <module> graphql_resolver = graphql.type.introspection.TypeResolvers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'graphql.type.introspection' has no attribute 'TypeResolvers' _____________________ test_main_graphql_use_union_operator _____________________ tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-1/test_main_graphql_use_union_op0') @freeze_time("2019-07-26") @pytest.mark.skipif( black.__version__.split(".")[0] == "19", reason="Installed black doesn't support the old style", ) def test_main_graphql_use_union_operator(tmp_path: Path) -> None: output_file: Path = tmp_path / "output.py" return_code: Exit = main([ "--input", str(GRAPHQL_DATA_PATH / "use-union-operator.graphql"), "--output", str(output_file), "--input-file-type", "graphql", "--use-union-operator", ]) > assert return_code == Exit.OK E assert <Exit.ERROR: 1> == <Exit.OK: 0> E + where <Exit.OK: 0> = Exit.OK tests/main/graphql/test_main_graphql.py:295: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__main__.py", line 512, in main generate( ~~~~~~~~^ input_=config.url or config.input or sys.stdin.read(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<73 lines>... disable_future_imports=config.disable_future_imports, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__init__.py", line 338, in generate from datamodel_code_generator.parser.graphql import GraphQLParser # noqa: PLC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/parser/graphql.py", line 46, in <module> graphql_resolver = graphql.type.introspection.TypeResolvers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'graphql.type.introspection' has no attribute 'TypeResolvers' _____________________ test_main_graphql_extra_fields_allow _____________________ tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-1/test_main_graphql_extra_fields0') @freeze_time("2019-07-26") def test_main_graphql_extra_fields_allow(tmp_path: Path) -> None: output_file: Path = tmp_path / "output.py" return_code: Exit = main([ "--input", str(GRAPHQL_DATA_PATH / "simple-star-wars.graphql"), "--output", str(output_file), "--input-file-type", "graphql", "--extra-fields", "allow", ]) > assert return_code == Exit.OK E assert <Exit.ERROR: 1> == <Exit.OK: 0> E + where <Exit.OK: 0> = Exit.OK tests/main/graphql/test_main_graphql.py:312: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__main__.py", line 512, in main generate( ~~~~~~~~^ input_=config.url or config.input or sys.stdin.read(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<73 lines>... disable_future_imports=config.disable_future_imports, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__init__.py", line 338, in generate from datamodel_code_generator.parser.graphql import GraphQLParser # noqa: PLC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/parser/graphql.py", line 46, in <module> graphql_resolver = graphql.type.introspection.TypeResolvers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'graphql.type.introspection' has no attribute 'TypeResolvers' ___________________________ test_graphql_field_enum ____________________________ tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-1/test_graphql_field_enum0') @freeze_time("2019-07-26") def test_graphql_field_enum(tmp_path: Path) -> None: output_file: Path = tmp_path / "output.py" return_code: Exit = main([ "--input", str(GRAPHQL_DATA_PATH / "field-default-enum.graphql"), "--output", str(output_file), "--input-file-type", "graphql", "--set-default-enum-member", ]) > assert return_code == Exit.OK E assert <Exit.ERROR: 1> == <Exit.OK: 0> E + where <Exit.OK: 0> = Exit.OK tests/parser/test_graphql.py:29: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__main__.py", line 512, in main generate( ~~~~~~~~^ input_=config.url or config.input or sys.stdin.read(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<73 lines>... disable_future_imports=config.disable_future_imports, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__init__.py", line 338, in generate from datamodel_code_generator.parser.graphql import GraphQLParser # noqa: PLC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/parser/graphql.py", line 46, in <module> graphql_resolver = graphql.type.introspection.TypeResolvers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'graphql.type.introspection' has no attribute 'TypeResolvers' ________________________ test_graphql_union_aliased_bug ________________________ tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-1/test_graphql_union_aliased_bug0') @freeze_time("2019-07-26") def test_graphql_union_aliased_bug(tmp_path: Path) -> None: output_file: Path = tmp_path / "output.py" return_code: Exit = main([ "--input", str(GRAPHQL_DATA_PATH / "union-aliased-bug.graphql"), "--output", str(output_file), "--input-file-type", "graphql", ]) > assert return_code == Exit.OK E assert <Exit.ERROR: 1> == <Exit.OK: 0> E + where <Exit.OK: 0> = Exit.OK tests/parser/test_graphql.py:44: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__main__.py", line 512, in main generate( ~~~~~~~~^ input_=config.url or config.input or sys.stdin.read(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<73 lines>... disable_future_imports=config.disable_future_imports, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__init__.py", line 338, in generate from datamodel_code_generator.parser.graphql import GraphQLParser # noqa: PLC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/parser/graphql.py", line 46, in <module> graphql_resolver = graphql.type.introspection.TypeResolvers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'graphql.type.introspection' has no attribute 'TypeResolvers' _________________________ test_graphql_union_commented _________________________ tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-1/test_graphql_union_commented0') @freeze_time("2019-07-26") def test_graphql_union_commented(tmp_path: Path) -> None: output_file: Path = tmp_path / "output.py" return_code: Exit = main([ "--input", str(GRAPHQL_DATA_PATH / "union-commented.graphql"), "--output", str(output_file), "--input-file-type", "graphql", ]) > assert return_code == Exit.OK E assert <Exit.ERROR: 1> == <Exit.OK: 0> E + where <Exit.OK: 0> = Exit.OK tests/parser/test_graphql.py:63: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__main__.py", line 512, in main generate( ~~~~~~~~^ input_=config.url or config.input or sys.stdin.read(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<73 lines>... disable_future_imports=config.disable_future_imports, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/__init__.py", line 338, in generate from datamodel_code_generator.parser.graphql import GraphQLParser # noqa: PLC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/datamodel_code_generator/parser/graphql.py", line 46, in <module> graphql_resolver = graphql.type.introspection.TypeResolvers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'graphql.type.introspection' has no attribute 'TypeResolvers' =========================== short test summary info ============================ FAILED tests/main/graphql/test_annotated.py::test_annotated - assert <Exit.ER... FAILED tests/main/graphql/test_annotated.py::test_annotated_use_standard_collections FAILED tests/main/graphql/test_annotated.py::test_annotated_use_standard_collections_use_union_operator FAILED tests/main/graphql/test_annotated.py::test_annotated_use_union_operator FAILED tests/main/graphql/test_annotated.py::test_annotated_field_aliases - a... FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_simple_star_wars[pydantic.BaseModel-simple_star_wars.py] FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_simple_star_wars[dataclasses.dataclass-simple_star_wars_dataclass.py] FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_different_types_of_fields FAILED tests/main/graphql/test_main_graphql.py::test_main_use_default_kwarg FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_custom_scalar_types FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_field_aliases FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_enums - ass... FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_union - ass... FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_additional_imports_isort_not_4 FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_custom_formatters FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_use_standard_collections FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_use_union_operator FAILED tests/main/graphql/test_main_graphql.py::test_main_graphql_extra_fields_allow FAILED tests/parser/test_graphql.py::test_graphql_field_enum - assert <Exit.E... FAILED tests/parser/test_graphql.py::test_graphql_union_aliased_bug - assert ... FAILED tests/parser/test_graphql.py::test_graphql_union_commented - assert <E... ========== 21 failed, 716 passed, 15 skipped, 1 deselected in 11.42s =========== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -k 'not test_openapi_parser_parse_remote_ref' dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

