Bug 2483715 - python-fastapi: FTBFS in Fedora Rawhide: starlette's update caused errors in fastapi testsuite.
Summary: python-fastapi: FTBFS in Fedora Rawhide: starlette's update caused errors in ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fastapi
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-01 10:09 UTC by Karolina Surma
Modified: 2026-06-01 13:29 UTC (History)
3 users (show)

Fixed In Version: python-fastapi-0.136.3-4.fc45
Clone Of:
Environment:
Last Closed: 2026-06-01 13:29:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-06-01 10:09:18 UTC
Description of problem:
Package python-fastapi fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.136.3-3.fc45

Steps to Reproduce:
koji build --scratch f45 python-fastapi-0.136.3-3.fc45.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-fastapi

Reproducible: Always

Actual Results:
___________________ ERROR collecting tests/test_ws_router.py ___________________
/usr/lib/python3.14/site-packages/starlette/testclient.py:43: in <module>
    import httpx2 as httpx
E   ModuleNotFoundError: No module named 'httpx2'
During handling of the above exception, another exception occurred:
tests/test_ws_router.py:14: in <module>
    from fastapi.testclient import TestClient
fastapi/testclient.py:1: in <module>
    from starlette.testclient import TestClient as TestClient  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.14/site-packages/starlette/testclient.py:54: in <module>
    warnings.warn(
E   starlette.exceptions.StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.

Comment 1 Ben Beasley 2026-06-01 13:03:16 UTC
Thanks for reporting this. FastAPI upstream has already dealt with this by installing httpx2 for testing, https://github.com/fastapi/fastapi/pull/15603. We will probably have to package httpx2 (a maintained fork of httpx by the Pydantic people) sooner rather than later, but I’d like to put it off as long as possible, ideally long enough that someone else does it 😉. For now, I’ll plan to add a comment and ignore this particular deprecation warning downstream instead.

Comment 2 Fedora Update System 2026-06-01 13:24:48 UTC
FEDORA-2026-2447174939 (python-fastapi-0.136.3-4.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2447174939

Comment 3 Fedora Update System 2026-06-01 13:29:24 UTC
FEDORA-2026-2447174939 (python-fastapi-0.136.3-4.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.