anthropic[vertex] has missing `requests` dependency
Problem
I install anthropic[vertex] [code block] Then write this code: [code block] It is running into the following exception: [code block] 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: https://github.com/anthropics/anthropic-sdk-python/blob/a3c59fc77610122a302aec1e7a2a59bbce94dbb2/pyproject.toml#L39
Error Output
Error: The requests library is not installed from please install the requests package to use the requests transport.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: anthropic[vertex] has missing `requests` dependency
Thanks for the report, I think a previous version of the `google-auth` library must've included `requests` by default... do you know if that was the case and when this was changed? edit: hmm I'm not seeing any mention of this in the changelog, maybe something was wrong with our env while testing
Trust Score
1 verification
- 1
Thanks for the report, I think a previous version of the `google-auth` library m
Thanks for the report, I think a previous version of the `google-auth` library must've included `requests` by default... do you know if that was the case and when this was changed?
- 2
edit: hmm I'm not seeing any mention of this in the changelog, maybe something w
edit: hmm I'm not seeing any mention of this in the changelog, maybe something was wrong with our env while testing
Validation
Resolved in anthropics/anthropic-sdk-python GitHub issue #738. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep