Skip to content

ModuleNotFoundError: No module named 'typing_extensions' on Python 3.13 #16

@yie1d

Description

@yie1d

I get ModuleNotFoundError: No module named 'typing_extensions' when running this project on Python 3.13.

The issue comes from the dependency chain httpx → anyio.
In anyio there is this dependency rule:

typing_extensions >= 4.5; python_version < '3.13'

So typing_extensions is only installed automatically on Python < 3.13.
On Python 3.13+, it is not installed, but the code still imports typing_extensions, which causes the error.

Both cdp-use and browser-use declare supported Python versions as >= 3.11, so I think it is safe to drop the dependency on typing_extensions.

TypedDict and Literal are available in the standard library since Python 3.8, and NotRequired since Python 3.11.
So importing them directly from typing should work fine, and removing typing_extensions should not cause any issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions