-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anthropic[vertex] has missing requests
dependency
#738
Comments
Thanks for the report, I think a previous version of the edit: hmm I'm not seeing any mention of this in the changelog, maybe something was wrong with our env while testing |
The latest anthropic release broke the notebook tests. More details in anthropics/anthropic-sdk-python#738.
Yeah there isn't a change in their dependencies in last 3 months https://github.com/googleapis/google-auth-library-python/commits/3fae8f8368d4651cd11d4af3d80f687eab033175/setup.py |
FWIW, I worked around by doing |
* test: add `requests` dependecy to the anthropic remote function The latest anthropic release broke the notebook tests. More details in anthropics/anthropic-sdk-python#738. * fix tupo
I install anthropic[vertex]
Then write this code:
It is running into the following exception:
Looks like google-auth needs requests library:
https://github.com/googleapis/google-auth-library-python/blob/3fae8f8368d4651cd11d4af3d80f687eab033175/google/auth/transport/requests.py#L28
google-auth defined "requests" extra:
https://github.com/googleapis/google-auth-library-python/blob/3fae8f8368d4651cd11d4af3d80f687eab033175/setup.py#L33
But anthropic[vertex] uses plain google-auth dependency:
anthropic-sdk-python/pyproject.toml
Line 39 in a3c59fc
The text was updated successfully, but these errors were encountered: