Skip to content

Httpx is deprecated since starlette 1.2.0 #245

Description

@woutdenolf
/usr/local/lib/python3.10/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:
/usr/local/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/usr/local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
/usr/local/lib/python3.10/site-packages/ewoksserver/tests/conftest.py:10: in <module>
    from fastapi.testclient import TestClient
/usr/local/lib/python3.10/site-packages/fastapi/testclient.py:1: in <module>
    from starlette.testclient import TestClient as TestClient  # noqa
/usr/local/lib/python3.10/site-packages/starlette/testclient.py:54: in <module>
    warnings.warn(
E   starlette.exceptions.StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.

https://starlette.dev/release-notes/#120-may-28-2026

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions