encode / httpx

A next generation HTTP client for Python. 🦋
https://www.python-httpx.org/
BSD 3-Clause "New" or "Revised" License
13.37k stars 854 forks source link

from httpx._types import AuthTypes, CertTypes, CookieTypes, HeaderTypes, VerifyTypes ImportError: cannot import name 'VerifyTypes' from 'httpx._types' (/usr/local/lib/python3.11/site-packages/httpx/_types.py) #3443

Closed maryam123errami closed 16 hours ago

maryam123errami commented 16 hours ago

I get an error when I try to build a Docker image. Can someone please help me? from langserve import add_routes File "/usr/local/lib/python3.11/site-packages/langserve/init.py", line 8, in from langserve.client import RemoteRunnable File "/usr/local/lib/python3.11/site-packages/langserve/client.py", line 24, in from httpx._types import AuthTypes, CertTypes, CookieTypes, HeaderTypes, VerifyTypes ImportError: cannot import name 'VerifyTypes' from 'httpx._types' (/usr/local/lib/python3.11/site-packages/httpx/_types.py)

langchain-community psycopg2-binary tenacity scikit-learn pydantic fastapi langchain_google_genai httpx==0.27.2 langgraph langserve uvicorn langchain langchain-cli langchain-core langchain-openai==0.2.10

tomchristie commented 16 hours ago

Hiya... could you follow this up with the langserve team? Thanks.

There're using a private import there, which isn't in the codebase in 0.28.0. They can either switch that annotation to bool | str | ssl.SSLContext, or pin their httpx dependency.

maryam123errami commented 15 hours ago

So should I contact langserve team

tomchristie commented 15 hours ago

Yes