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) #241

Closed
opened 2026-02-16 00:19:45 -05:00 by yindo · 2 comments
Owner

Originally created by @maryam123errami on GitHub (Dec 3, 2024).

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

Originally created by @maryam123errami on GitHub (Dec 3, 2024). 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
yindo closed this issue 2026-02-16 00:19:45 -05:00
Author
Owner

@xxsl commented on GitHub (Dec 5, 2024):

Same as #796 , solution there
PR already exist #798

@xxsl commented on GitHub (Dec 5, 2024): Same as #796 , solution there PR already exist #798
Author
Owner

@eyurtsev commented on GitHub (Dec 19, 2024):

should be resolved in 0.3.1

@eyurtsev commented on GitHub (Dec 19, 2024): should be resolved in 0.3.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langserve#241