8000 Dependency Conflict with google-genai (1.21.1) and instructor[google-genai] (1.8.3) over tenacity Version · Issue #1623 · 567-labs/instructor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dependency Conflict with google-genai (1.21.1) and instructor[google-genai] (1.8.3) over tenacity Version #1623
Open
@syberkitten

Description

@syberkitten

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 version 1.21.1 requires tenacity versions >=8.2.3 but <9.0.0.
  • instructor[google-genai] version 1.8.3 (the latest available) requires tenacity 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency filequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0