Description
Dependency Conflict: instructor[google-genai]
(1.8.3) clashes with google-genai
(1.21.1) over tenacity
Version
Description:
When attempting to use the latest versions of both instructor
(with the google-genai
extra) and google-genai
, a dependency conflict arises due to incompatible tenacity
version requirements. This prevents successful installation and simultaneous use of both libraries.
Problem:
Upon attempting to install or run a project with both instructor[google-genai]
and google-genai
in a clean environment, the following dependency conflict error occurs:
Because no versions of google-genai match >1.21.1,<2.0.0
and google-genai (1.21.1) depends on tenacity (>=8.2.3,<9.0.0), google-genai (>=1.21.1,<2.0.0) requires tenacity (>=8.2.3,<9.0.0).
And because instructor[google-genai] (1.8.3) depends on tenacity (>=9.0.0,<10.0.0)
and no versions of instructor match >1.8.3,<2.0.0, google-genai (>=1.21.1,<2.0.0) is incompatible with instructor[google-genai] (>=1.8.3,<2.0.0).
This error clearly indicates the core of the problem:
google-genai
version1.21.1
requirestenacity
versions>=8.2.3
but<9.0.0
.instructor[google-genai]
version1.8.3
(the latest available) requirestenacity
versions>=9.0.0
but<10.0.0
.
These two ranges for tenacity
are mutually exclusive, leading to a package resolution failure.
Expected Behavior:
The latest stable versions of instructor
(specifically with the google-genai
extra) and google-genai
should be compatible and installable together without dependency conflicts.
Environment:
- Operating System: MacOS Monterey
- Python Version: 3.10.11
google-genai
Version: 1.21.1 (latest at time of testing)instructor
Version: 1.8.3 (latest at time of testing)tenacity
Version: (Installation fails, so N/A or specified by the conflict message)
Please advise, which version of instructor should be safe to use?
Or Alternatively which version of google-genai should work with Instructor.