#1143752 fastapi: FTBFS: E ModuleNotFoundError: No module named 'httpx2'

Package:
src:fastapi
Source:
src:fastapi
Submitter:
Santiago Vila
Date:
2026-09-02 19:45:02 UTC
Severity:
normal
Tags:
#1143752#5
Date:
2026-08-06 00:10:19 UTC
From:
To:
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/202608/

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:fastapi, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
	pybuild --clean -i python{version} -p "3.13 3.14" --parallel=2
	rm -rf .pybuild/
	find . -name \*.pyc -exec rm {} \;
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
	rm -f debian/debhelper-build-stamp
	rm -rf debian/.debhelper/
	rm -f -- debian/python3-fastapi.substvars debian/files
	rm -fr -- debian/python3-fastapi/ debian/tmp/
	find .  \( \( \
		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \

[... snipped ...]

ERROR tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py
ERROR tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
ERROR tests/test_security_oauth2_optional.py - starlette.exceptions.Starlette...
ERROR tests/test_security_oauth2_optional_description.py - starlette.exceptio...
ERROR tests/test_security_oauth2_password_bearer_optional.py - starlette.exce...
ERROR tests/test_security_oauth2_password_bearer_optional_description.py - st...
ERROR tests/test_security_openid_connect.py - starlette.exceptions.StarletteD...
ERROR tests/test_security_openid_connect_description.py - starlette.exception...
ERROR tests/test_security_openid_connect_optional.py - starlette.exceptions.S...
ERROR tests/test_security_scopes.py - starlette.exceptions.StarletteDeprecati...
ERROR tests/test_security_scopes_dont_propagate.py - starlette.exceptions.Sta...
ERROR tests/test_security_scopes_sub_dependency.py - starlette.exceptions.Sta...
ERROR tests/test_serialize_response.py - starlette.exceptions.StarletteDeprec...
ERROR tests/test_serialize_response_dataclass.py - starlette.exceptions.Starl...
ERROR tests/test_serialize_response_model.py - starlette.exceptions.Starlette...
ERROR tests/test_skip_defaults.py - starlette.exceptions.StarletteDeprecation...
ERROR tests/test_sse.py - starlette.exceptions.StarletteDeprecationWarning: U...
ERROR tests/test_starlette_exception.py - starlette.exceptions.StarletteDepre...
ERROR tests/test_starlette_urlconvertors.py - starlette.exceptions.StarletteD...
ERROR tests/test_stream_bare_type.py - starlette.exceptions.StarletteDeprecat...
ERROR tests/test_stream_json_validation_error.py - starlette.exceptions.Starl...
ERROR tests/test_strict_content_type_app_level.py - starlette.exceptions.Star...
ERROR tests/test_strict_content_type_nested.py - starlette.exceptions.Starlet...
ERROR tests/test_strict_content_type_router_level.py - starlette.exceptions.S...
ERROR tests/test_stringified_annotation_dependency.py - starlette.exceptions....
ERROR tests/test_stringified_annotation_dependency_py314.py - starlette.excep...
ERROR tests/test_stringified_annotations_simple.py - starlette.exceptions.Sta...
ERROR tests/test_sub_callbacks.py - starlette.exceptions.StarletteDeprecation...
ERROR tests/test_swagger_ui_init_oauth.py - starlette.exceptions.StarletteDep...
ERROR tests/test_top_level_security_scheme_in_openapi.py - starlette.exceptio...
ERROR tests/test_tuples.py - starlette.exceptions.StarletteDeprecationWarning...
ERROR tests/test_tutorial/test_additional_responses/test_tutorial001.py - sta...
ERROR tests/test_tutorial/test_additional_responses/test_tutorial002.py - sta...
ERROR tests/test_tutorial/test_additional_responses/test_tutorial003.py - sta...
ERROR tests/test_tutorial/test_additional_responses/test_tutorial004.py - sta...
ERROR tests/test_tutorial/test_additional_status_codes/test_tutorial001.py - ...
ERROR tests/test_tutorial/test_advanced_middleware/test_tutorial001.py - star...
ERROR tests/test_tutorial/test_advanced_middleware/test_tutorial002.py - star...
ERROR tests/test_tutorial/test_advanced_middleware/test_tutorial003.py - star...
ERROR tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py
ERROR tests/test_tutorial/test_background_tasks/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - starlet...
ERROR tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py - starlette...
ERROR tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py - starle...
ERROR tests/test_tutorial/test_behind_a_proxy/test_tutorial002.py - starlette...
ERROR tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py - starlette...
ERROR tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py - starlette...
ERROR tests/test_tutorial/test_bigger_applications/test_main.py - starlette.e...
ERROR tests/test_tutorial/test_body/test_tutorial001.py - starlette.exception...
ERROR tests/test_tutorial/test_body/test_tutorial002.py - starlette.exception...
ERROR tests/test_tutorial/test_body/test_tutorial003.py - starlette.exception...
ERROR tests/test_tutorial/test_body/test_tutorial004.py - starlette.exception...
ERROR tests/test_tutorial/test_body_fields/test_tutorial001.py - starlette.ex...
ERROR tests/test_tutorial/test_body_multiple_params/test_tutorial001.py - sta...
ERROR tests/test_tutorial/test_body_multiple_params/test_tutorial002.py - sta...
ERROR tests/test_tutorial/test_body_multiple_params/test_tutorial003.py - sta...
ERROR tests/test_tutorial/test_body_multiple_params/test_tutorial004.py - sta...
ERROR tests/test_tutorial/test_body_multiple_params/test_tutorial005.py - sta...
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial004.py - starl...
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial005.py - starl...
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial006.py - starl...
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial007.py - starl...
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial008.py - starl...
ERROR tests/test_tutorial/test_body_nested_models/test_tutorial009.py - starl...
ERROR tests/test_tutorial/test_body_updates/test_tutorial001.py - starlette.e...
ERROR tests/test_tutorial/test_body_updates/test_tutorial002.py - starlette.e...
ERROR tests/test_tutorial/test_conditional_openapi/test_tutorial001.py - star...
ERROR tests/test_tutorial/test_configure_swagger_ui/test_tutorial001.py - sta...
ERROR tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py - sta...
ERROR tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py - sta...
ERROR tests/test_tutorial/test_cookie_param_models/test_tutorial001.py - star...
ERROR tests/test_tutorial/test_cookie_param_models/test_tutorial002.py - star...
ERROR tests/test_tutorial/test_cookie_params/test_tutorial001.py - starlette....
ERROR tests/test_tutorial/test_cors/test_tutorial001.py - starlette.exception...
ERROR tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py - starlette...
ERROR tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py - starlette...
ERROR tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py
ERROR tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py
ERROR tests/test_tutorial/test_custom_request_and_route/test_tutorial003.py
ERROR tests/test_tutorial/test_custom_response/test_tutorial001.py - starlett...
ERROR tests/test_tutorial/test_custom_response/test_tutorial001b.py - starlet...
ERROR tests/test_tutorial/test_custom_response/test_tutorial002_tutorial003_tutorial004.py
ERROR tests/test_tutorial/test_custom_response/test_tutorial005.py - starlett...
ERROR tests/test_tutorial/test_custom_response/test_tutorial006.py - starlett...
ERROR tests/test_tutorial/test_custom_response/test_tutorial006b.py - starlet...
ERROR tests/test_tutorial/test_custom_response/test_tutorial006c.py - starlet...
ERROR tests/test_tutorial/test_custom_response/test_tutorial007.py - starlett...
ERROR tests/test_tutorial/test_custom_response/test_tutorial008.py - starlett...
ERROR tests/test_tutorial/test_custom_response/test_tutorial009.py - starlett...
ERROR tests/test_tutorial/test_custom_response/test_tutorial009b.py - starlet...
ERROR tests/test_tutorial/test_custom_response/test_tutorial009c.py - starlet...
ERROR tests/test_tutorial/test_custom_response/test_tutorial010.py - starlett...
ERROR tests/test_tutorial/test_dataclasses/test_tutorial001.py - starlette.ex...
ERROR tests/test_tutorial/test_dataclasses/test_tutorial002.py - starlette.ex...
ERROR tests/test_tutorial/test_dataclasses/test_tutorial003.py - starlette.ex...
ERROR tests/test_tutorial/test_debugging/test_tutorial001.py - starlette.exce...
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py
ERROR tests/test_tutorial/test_dependencies/test_tutorial002_tutorial003_tutorial004.py
ERROR tests/test_tutorial/test_dependencies/test_tutorial005.py - starlette.e...
ERROR tests/test_tutorial/test_dependencies/test_tutorial006.py - starlette.e...
ERROR tests/test_tutorial/test_dependencies/test_tutorial008.py - starlette.e...
ERROR tests/test_tutorial/test_dependencies/test_tutorial008b.py - starlette....
ERROR tests/test_tutorial/test_dependencies/test_tutorial008c.py - starlette....
ERROR tests/test_tutorial/test_dependencies/test_tutorial008d.py - starlette....
ERROR tests/test_tutorial/test_dependencies/test_tutorial008e.py - starlette....
ERROR tests/test_tutorial/test_dependencies/test_tutorial010.py - starlette.e...
ERROR tests/test_tutorial/test_dependencies/test_tutorial011.py - starlette.e...
ERROR tests/test_tutorial/test_dependencies/test_tutorial012.py - starlette.e...
ERROR tests/test_tutorial/test_encoder/test_tutorial001.py - starlette.except...
ERROR tests/test_tutorial/test_events/test_tutorial001.py - starlette.excepti...
ERROR tests/test_tutorial/test_events/test_tutorial002.py - starlette.excepti...
ERROR tests/test_tutorial/test_events/test_tutorial003.py - starlette.excepti...
ERROR tests/test_tutorial/test_extending_openapi/test_tutorial001.py - starle...
ERROR tests/test_tutorial/test_extra_data_types/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_extra_models/test_tutorial001_tutorial002.py
ERROR tests/test_tutorial/test_extra_models/test_tutorial003.py - starlette.e...
ERROR tests/test_tutorial/test_extra_models/test_tutorial004.py - starlette.e...
ERROR tests/test_tutorial/test_extra_models/test_tutorial005.py - starlette.e...
ERROR tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py
ERROR tests/test_tutorial/test_generate_clients/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_generate_clients/test_tutorial002.py - starlet...
ERROR tests/test_tutorial/test_generate_clients/test_tutorial003.py - starlet...
ERROR tests/test_tutorial/test_handling_errors/test_tutorial001.py - starlett...
ERROR tests/test_tutorial/test_handling_errors/test_tutorial002.py - starlett...
ERROR tests/test_tutorial/test_handling_errors/test_tutorial003.py - starlett...
ERROR tests/test_tutorial/test_handling_errors/test_tutorial004.py - starlett...
ERROR tests/test_tutorial/test_handling_errors/test_tutorial005.py - starlett...
ERROR tests/test_tutorial/test_handling_errors/test_tutorial006.py - starlett...
ERROR tests/test_tutorial/test_header_param_models/test_tutorial001.py - star...
ERROR tests/test_tutorial/test_header_param_models/test_tutorial002.py - star...
ERROR tests/test_tutorial/test_header_param_models/test_tutorial003.py - star...
ERROR tests/test_tutorial/test_header_params/test_tutorial001.py - starlette....
ERROR tests/test_tutorial/test_header_params/test_tutorial002.py - starlette....
ERROR tests/test_tutorial/test_header_params/test_tutorial003.py - starlette....
ERROR tests/test_tutorial/test_json_base64_bytes/test_tutorial001.py - starle...
ERROR tests/test_tutorial/test_metadata/test_tutorial001.py - starlette.excep...
ERROR tests/test_tutorial/test_metadata/test_tutorial001_1.py - starlette.exc...
ERROR tests/test_tutorial/test_metadata/test_tutorial002.py - starlette.excep...
ERROR tests/test_tutorial/test_metadata/test_tutorial003.py - starlette.excep...
ERROR tests/test_tutorial/test_metadata/test_tutorial004.py - starlette.excep...
ERROR tests/test_tutorial/test_middleware/test_tutorial001.py - starlette.exc...
ERROR tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py - starle...
ERROR tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial001.py
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial002.py
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial003.py
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial005.py
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial006.py
ERROR tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py
ERROR tests/test_tutorial/test_path_operation_configurations/test_tutorial001.py
ERROR tests/test_tutorial/test_path_operation_configurations/test_tutorial002.py
ERROR tests/test_tutorial/test_path_operation_configurations/test_tutorial002b.py
ERROR tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py
ERROR tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py
ERROR tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py
ERROR tests/test_tutorial/test_path_params/test_tutorial001.py - starlette.ex...
ERROR tests/test_tutorial/test_path_params/test_tutorial002.py - starlette.ex...
ERROR tests/test_tutorial/test_path_params/test_tutorial003.py - starlette.ex...
ERROR tests/test_tutorial/test_path_params/test_tutorial003b.py - starlette.e...
ERROR tests/test_tutorial/test_path_params/test_tutorial004.py - starlette.ex...
ERROR tests/test_tutorial/test_path_params/test_tutorial005.py - starlette.ex...
ERROR tests/test_tutorial/test_path_params_numeric_validations/test_tutorial001.py
ERROR tests/test_tutorial/test_path_params_numeric_validations/test_tutorial002_tutorial003.py
ERROR tests/test_tutorial/test_path_params_numeric_validations/test_tutorial004.py
ERROR tests/test_tutorial/test_path_params_numeric_validations/test_tutorial005.py
ERROR tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py
ERROR tests/test_tutorial/test_query_param_models/test_tutorial001.py - starl...
ERROR tests/test_tutorial/test_query_param_models/test_tutorial002.py - starl...
ERROR tests/test_tutorial/test_query_params/test_tutorial001.py - starlette.e...
ERROR tests/test_tutorial/test_query_params/test_tutorial002.py - starlette.e...
ERROR tests/test_tutorial/test_query_params/test_tutorial003.py - starlette.e...
ERROR tests/test_tutorial/test_query_params/test_tutorial004.py - starlette.e...
ERROR tests/test_tutorial/test_query_params/test_tutorial005.py - starlette.e...
ERROR tests/test_tutorial/test_query_params/test_tutorial006.py - starlette.e...
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial001.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial002.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial003.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial005.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial007.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial008.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial009.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py
ERROR tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py
ERROR tests/test_tutorial/test_request_files/test_tutorial001.py - starlette....
ERROR tests/test_tutorial/test_request_files/test_tutorial001_02.py - starlet...
ERROR tests/test_tutorial/test_request_files/test_tutorial001_03.py - starlet...
ERROR tests/test_tutorial/test_request_files/test_tutorial002.py - starlette....
ERROR tests/test_tutorial/test_request_files/test_tutorial003.py - starlette....
ERROR tests/test_tutorial/test_request_form_models/test_tutorial001.py - star...
ERROR tests/test_tutorial/test_request_form_models/test_tutorial002.py - star...
ERROR tests/test_tutorial/test_request_forms/test_tutorial001.py - starlette....
ERROR tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py - ...
ERROR tests/test_tutorial/test_response_change_status_code/test_tutorial001.py
ERROR tests/test_tutorial/test_response_cookies/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_response_cookies/test_tutorial002.py - starlet...
ERROR tests/test_tutorial/test_response_directly/test_tutorial001.py - starle...
ERROR tests/test_tutorial/test_response_directly/test_tutorial002.py - starle...
ERROR tests/test_tutorial/test_response_headers/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_response_headers/test_tutorial002.py - starlet...
ERROR tests/test_tutorial/test_response_model/test_tutorial001_tutorial001_01.py
ERROR tests/test_tutorial/test_response_model/test_tutorial002.py - starlette...
ERROR tests/test_tutorial/test_response_model/test_tutorial003.py - starlette...
ERROR tests/test_tutorial/test_response_model/test_tutorial003_01.py - starle...
ERROR tests/test_tutorial/test_response_model/test_tutorial003_02.py - starle...
ERROR tests/test_tutorial/test_response_model/test_tutorial003_03.py - starle...
ERROR tests/test_tutorial/test_response_model/test_tutorial003_05.py - starle...
ERROR tests/test_tutorial/test_response_model/test_tutorial004.py - starlette...
ERROR tests/test_tutorial/test_response_model/test_tutorial005.py - starlette...
ERROR tests/test_tutorial/test_response_model/test_tutorial006.py - starlette...
ERROR tests/test_tutorial/test_response_status_code/test_tutorial001_tutorial002.py
ERROR tests/test_tutorial/test_schema_extra_example/test_tutorial001.py - sta...
ERROR tests/test_tutorial/test_schema_extra_example/test_tutorial002.py - sta...
ERROR tests/test_tutorial/test_schema_extra_example/test_tutorial003.py - sta...
ERROR tests/test_tutorial/test_schema_extra_example/test_tutorial004.py - sta...
ERROR tests/test_tutorial/test_schema_extra_example/test_tutorial005.py - sta...
ERROR tests/test_tutorial/test_security/test_tutorial001.py - starlette.excep...
ERROR tests/test_tutorial/test_security/test_tutorial002.py - starlette.excep...
ERROR tests/test_tutorial/test_security/test_tutorial003.py - starlette.excep...
ERROR tests/test_tutorial/test_security/test_tutorial004.py - starlette.excep...
ERROR tests/test_tutorial/test_security/test_tutorial005.py - starlette.excep...
ERROR tests/test_tutorial/test_security/test_tutorial006.py - starlette.excep...
ERROR tests/test_tutorial/test_security/test_tutorial007.py - starlette.excep...
ERROR tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py
ERROR tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py
ERROR tests/test_tutorial/test_server_sent_events/test_tutorial001.py - starl...
ERROR tests/test_tutorial/test_server_sent_events/test_tutorial002.py - starl...
ERROR tests/test_tutorial/test_server_sent_events/test_tutorial003.py - starl...
ERROR tests/test_tutorial/test_server_sent_events/test_tutorial004.py - starl...
ERROR tests/test_tutorial/test_server_sent_events/test_tutorial005.py - starl...
ERROR tests/test_tutorial/test_settings/test_app01.py - starlette.exceptions....
ERROR tests/test_tutorial/test_settings/test_app03.py - starlette.exceptions....
ERROR tests/test_tutorial/test_settings/test_tutorial001.py - starlette.excep...
ERROR tests/test_tutorial/test_static_files/test_tutorial001.py - starlette.e...
ERROR tests/test_tutorial/test_stream_data/test_tutorial001.py - starlette.ex...
ERROR tests/test_tutorial/test_stream_data/test_tutorial002.py - starlette.ex...
ERROR tests/test_tutorial/test_stream_json_lines/test_tutorial001.py - starle...
ERROR tests/test_tutorial/test_strict_content_type/test_tutorial001.py - star...
ERROR tests/test_tutorial/test_sub_applications/test_tutorial001.py - starlet...
ERROR tests/test_tutorial/test_templates/test_tutorial001.py - starlette.exce...
ERROR tests/test_tutorial/test_testing/test_main_a.py - starlette.exceptions....
ERROR tests/test_tutorial/test_testing/test_tutorial001.py - starlette.except...
ERROR tests/test_tutorial/test_testing/test_tutorial002.py - starlette.except...
ERROR tests/test_tutorial/test_testing/test_tutorial004.py - starlette.except...
ERROR tests/test_tutorial/test_using_request_directly/test_tutorial001.py - s...
ERROR tests/test_tutorial/test_websockets/test_tutorial001.py - starlette.exc...
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - starlette.exc...
ERROR tests/test_tutorial/test_websockets/test_tutorial003.py - starlette.exc...
ERROR tests/test_tutorial/test_wsgi/test_tutorial001.py - starlette.exception...
ERROR tests/test_typing_python39.py - starlette.exceptions.StarletteDeprecati...
ERROR tests/test_union_body.py - starlette.exceptions.StarletteDeprecationWar...
ERROR tests/test_union_body_discriminator.py - starlette.exceptions.Starlette...
ERROR tests/test_union_body_discriminator_annotated.py - starlette.exceptions...
ERROR tests/test_union_forms.py - starlette.exceptions.StarletteDeprecationWa...
ERROR tests/test_union_inherited_body.py - starlette.exceptions.StarletteDepr...
ERROR tests/test_validate_response.py - starlette.exceptions.StarletteDepreca...
ERROR tests/test_validate_response_dataclass.py - starlette.exceptions.Starle...
ERROR tests/test_validate_response_recursive/test_validate_response_recursive.py
ERROR tests/test_validation_error_context.py - starlette.exceptions.Starlette...
ERROR tests/test_webhooks_security.py - starlette.exceptions.StarletteDepreca...
ERROR tests/test_wrapped_method_forward_reference.py - starlette.exceptions.S...
ERROR tests/test_ws_dependencies.py - starlette.exceptions.StarletteDeprecati...
ERROR tests/test_ws_router.py - starlette.exceptions.StarletteDeprecationWarn...
!!!!!!!!!!!!!!!!!! Interrupted: 437 errors during collection !!!!!!!!!!!!!!!!!!!
================= 1 skipped, 6 deselected, 437 errors in 8.64s =================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fastapi/build; python3.14 -m pytest -W ignore::DeprecationWarning -W ignore::ResourceWarning --ignore=docs_src/ --ignore-glob=tests/test_tutorial/test_sql_databases/test_tutorial* --ignore=tests/test_response_by_alias.py --ignore=tests/test_multipart_installation.py --ignore=tests/test_tutorial/test_graphql -k " not test_root and not test_async_testing and not test_dependency_gets_exception and not test_path_operation_img and not test_fastapi_cli "
	rm -fr -- /tmp/dh-xdg-rundir-scflz2bc
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.14" --parallel=2 returned exit code 13
make: *** [debian/rules:30: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1143752#10
Date:
2026-09-02 19:43:53 UTC
From:
To:
user debian-python@lists.debian.org
usertags 1143752 + python3.15
tags 1143752 + patch
thanks

Hi!

While rebuilding the python related packages against the Python 3.15rc1
version we found that fastapi fails to build from source [1].

To fix the error, I had to apply the upstream patch that adds httpx2
test dependency [2] and then add httpx2 as a build-dependency.

I applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on fastapi, please consider applying the patch to
support the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4545140/
[2]: https://github.com/fastapi/fastapi/commit/59d4a80fcf8a7b3a46b2560f75dc0d171e7ea8ff
[3]: https://debusine.debian.net/debian/r-python-python3.15/