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.
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
anyiothere is this dependency rule:So
typing_extensionsis 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-useandbrowser-usedeclare supported Python versions as >= 3.11, so I think it is safe to drop the dependency ontyping_extensions.TypedDictandLiteralare available in the standard library since Python 3.8, andNotRequiredsince Python 3.11.So importing them directly from
typingshould work fine, and removingtyping_extensionsshould not cause any issues.