[GH-ISSUE #20177] issue: google-generativeai package is in deprecation and cause uv installation failure #34642

Closed
opened 2026-04-25 08:43:27 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @bloodeagle40234 on GitHub (Dec 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20177

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

v0.6.43

Ollama Version (if applicable)

No response

Operating System

macOS Sonoma

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Install successfully open-webui 0.6.43 (newest) package via uv command like this:

uv add "open-webui==0.6.43"

Actual Behavior

uv add "open-webui==0.6.43"

is failed by package conflict.

Steps to Reproduce

  1. start clean environment with mac console
  2. install python 3.12 and uv via homebrew
  3. run uv init -p 3.12 in an arbitrary directory
  4. run uv add "open-webui==0.6.43"

Logs & Screenshots

  × No solution found when resolving dependencies for split (python_full_version >= '3.14'):
  ╰─▶ Because google-api-core[grpc]>=2.27.0 depends on grpcio-status{python_full_version >= '3.14'}>=1.75.1 and
      grpcio-status{python_full_version >= '3.14'}>=1.75.1, we can conclude that google-api-core[grpc]>=2.27.0,<=2.28.0 depends on
      grpcio-status{python_full_version >= '3.14'}>=1.75.1.
      And because only the following versions of grpcio-status{python_full_version >= '3.14'} are available:
          grpcio-status{python_full_version >= '3.14'}<=1.75.1
          grpcio-status{python_full_version >= '3.14'}==1.76.0
      and grpcio-status>=1.74.0 depends on protobuf>=6.31.1, we can conclude that google-api-core[grpc]>=2.27.0,<=2.28.0 depends on
      protobuf>=6.31.1. (1)

      Because only the following versions of grpcio-status{python_full_version >= '3.14'} are available:
          grpcio-status{python_full_version >= '3.14'}<=1.75.1
          grpcio-status{python_full_version >= '3.14'}==1.76.0
      and grpcio-status>=1.74.0 depends on protobuf>=6.31.1, we can conclude that grpcio-status{python_full_version >= '3.14'}>=1.75.1
      depends on protobuf>=6.31.1.
      And because google-api-core[grpc]==2.28.1 depends on grpcio-status{python_full_version >= '3.14'}>=1.75.1, we can conclude that
      google-api-core[grpc]==2.28.1 depends on protobuf>=6.31.1.
      And because we know from (1) that google-api-core[grpc]>=2.27.0,<=2.28.0 depends on protobuf>=6.31.1, we can conclude that
      google-api-core[grpc]>=2.27.0 depends on protobuf>=6.31.1.
      And because only the following versions of google-api-core[grpc] are available:
          google-api-core[grpc]<2.11.dev0
          google-api-core[grpc]==2.11.0
          google-api-core[grpc]==2.11.1
          google-api-core[grpc]==2.12.0
          google-api-core[grpc]>=2.13.0,<=2.14.0
          google-api-core[grpc]==2.15.0
          google-api-core[grpc]>=2.16.0,<=2.16.2
          google-api-core[grpc]==2.17.0
          google-api-core[grpc]==2.17.1
          google-api-core[grpc]==2.18.0
          google-api-core[grpc]==2.19.0
          google-api-core[grpc]>=2.19.1,<=2.19.2
          google-api-core[grpc]==2.20.0
          google-api-core[grpc]==2.21.0
          google-api-core[grpc]==2.22.0
          google-api-core[grpc]>=2.23.0,<=2.24.0
          google-api-core[grpc]>=2.24.1,<=2.24.2
          google-api-core[grpc]==2.25.0
          google-api-core[grpc]>=2.25.1
      and google-ai-generativelanguage==0.6.15 depends on one of:
          google-api-core[grpc]>=1.34.1,<2.0.dev0
          google-api-core[grpc]>=2.11.dev0
      we can conclude that google-ai-generativelanguage==0.6.15, all of:
          google-api-core<1.34.1
          google-api-core>1.34.1,<2.11.0
          google-api-core>2.26.0
      , protobuf<6.31.1 are incompatible.
      And because google-ai-generativelanguage==0.6.15 depends on one of:
          protobuf>=3.20.2,<4.21.0
          protobuf>4.21.5,<6.0.0.dev0
      and google-generativeai==0.8.6 depends on google-ai-generativelanguage==0.6.15, we can conclude that google-generativeai==0.8.6
      depends on one of:
          google-api-core==1.34.1
          google-api-core>=2.11.0,<=2.26.0

      And because google-cloud-storage==3.7.0 depends on google-api-core>=2.27.0 and open-webui==0.6.43 depends on
      google-cloud-storage==3.7.0, we can conclude that google-generativeai==0.8.6 and open-webui==0.6.43 are incompatible.
      And because open-webui==0.6.43 depends on google-generativeai==0.8.6 and your project depends on open-webui==0.6.43, we can
      conclude that your project's requirements are unsatisfiable.

      hint: Pre-releases are available for `grpcio-status` in the requested range (e.g., 1.76.0rc1), but pre-releases weren't enabled
      (try: `--prerelease=allow`)

      hint: `google-api-core` was requested with a pre-release marker (e.g., all of:
          google-api-core>=2.11.dev0,<2.11.0
          google-api-core>2.11.0,<2.11.1
          google-api-core>2.11.1,<2.12.0
          google-api-core>2.12.0,<2.13.0
          google-api-core>2.14.0,<2.15.0
          google-api-core>2.15.0,<2.16.0
          google-api-core>2.16.2,<2.17.0
          google-api-core>2.17.0,<2.17.1
          google-api-core>2.17.1,<2.18.0
          google-api-core>2.18.0,<2.19.0
          google-api-core>2.19.0,<2.19.1
          google-api-core>2.19.2,<2.20.0
          google-api-core>2.20.0,<2.21.0
          google-api-core>2.21.0,<2.22.0
          google-api-core>2.22.0,<2.23.0
          google-api-core>2.24.0,<2.24.1
          google-api-core>2.24.2,<2.25.0
          google-api-core>2.25.0,<2.25.1
      ), but pre-releases weren't enabled (try: `--prerelease=allow`)

      hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your project. Consider
      limiting your project's supported Python versions using `requires-python`.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing.

Additional Information

After a quick investigation, I found that the error is caused by a conflict in the protobuf package requirements: the google-generativeai package requires <6.0.0dev, while other dependencies require >=6.0.0.
Even though google-generativeai==0.8.6—which is pinned in Open WebUI—is the latest version on PyPI, the google-generativeai library has already been deprecated and is no longer maintained.

It appears that Open WebUI now depends on the newer SDK google-genai, as suggested by the deprecation notice, but I’m not entirely sure if we can simply remove google-generativeai from Open WebUI’s dependencies.
When I tested Open WebUI without the google-generativeai package, it seemed to run successfully with a local Ollama setup.

Originally created by @bloodeagle40234 on GitHub (Dec 26, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20177 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version v0.6.43 ### Ollama Version (if applicable) _No response_ ### Operating System macOS Sonoma ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Install successfully open-webui 0.6.43 (newest) package via uv command like this: ``` uv add "open-webui==0.6.43" ``` ### Actual Behavior ``` uv add "open-webui==0.6.43" ``` is failed by package conflict. ### Steps to Reproduce 1. start clean environment with mac console 2. install python 3.12 and uv via homebrew 3. run `uv init -p 3.12` in an arbitrary directory 4. run `uv add "open-webui==0.6.43"` ### Logs & Screenshots ``` × No solution found when resolving dependencies for split (python_full_version >= '3.14'): ╰─▶ Because google-api-core[grpc]>=2.27.0 depends on grpcio-status{python_full_version >= '3.14'}>=1.75.1 and grpcio-status{python_full_version >= '3.14'}>=1.75.1, we can conclude that google-api-core[grpc]>=2.27.0,<=2.28.0 depends on grpcio-status{python_full_version >= '3.14'}>=1.75.1. And because only the following versions of grpcio-status{python_full_version >= '3.14'} are available: grpcio-status{python_full_version >= '3.14'}<=1.75.1 grpcio-status{python_full_version >= '3.14'}==1.76.0 and grpcio-status>=1.74.0 depends on protobuf>=6.31.1, we can conclude that google-api-core[grpc]>=2.27.0,<=2.28.0 depends on protobuf>=6.31.1. (1) Because only the following versions of grpcio-status{python_full_version >= '3.14'} are available: grpcio-status{python_full_version >= '3.14'}<=1.75.1 grpcio-status{python_full_version >= '3.14'}==1.76.0 and grpcio-status>=1.74.0 depends on protobuf>=6.31.1, we can conclude that grpcio-status{python_full_version >= '3.14'}>=1.75.1 depends on protobuf>=6.31.1. And because google-api-core[grpc]==2.28.1 depends on grpcio-status{python_full_version >= '3.14'}>=1.75.1, we can conclude that google-api-core[grpc]==2.28.1 depends on protobuf>=6.31.1. And because we know from (1) that google-api-core[grpc]>=2.27.0,<=2.28.0 depends on protobuf>=6.31.1, we can conclude that google-api-core[grpc]>=2.27.0 depends on protobuf>=6.31.1. And because only the following versions of google-api-core[grpc] are available: google-api-core[grpc]<2.11.dev0 google-api-core[grpc]==2.11.0 google-api-core[grpc]==2.11.1 google-api-core[grpc]==2.12.0 google-api-core[grpc]>=2.13.0,<=2.14.0 google-api-core[grpc]==2.15.0 google-api-core[grpc]>=2.16.0,<=2.16.2 google-api-core[grpc]==2.17.0 google-api-core[grpc]==2.17.1 google-api-core[grpc]==2.18.0 google-api-core[grpc]==2.19.0 google-api-core[grpc]>=2.19.1,<=2.19.2 google-api-core[grpc]==2.20.0 google-api-core[grpc]==2.21.0 google-api-core[grpc]==2.22.0 google-api-core[grpc]>=2.23.0,<=2.24.0 google-api-core[grpc]>=2.24.1,<=2.24.2 google-api-core[grpc]==2.25.0 google-api-core[grpc]>=2.25.1 and google-ai-generativelanguage==0.6.15 depends on one of: google-api-core[grpc]>=1.34.1,<2.0.dev0 google-api-core[grpc]>=2.11.dev0 we can conclude that google-ai-generativelanguage==0.6.15, all of: google-api-core<1.34.1 google-api-core>1.34.1,<2.11.0 google-api-core>2.26.0 , protobuf<6.31.1 are incompatible. And because google-ai-generativelanguage==0.6.15 depends on one of: protobuf>=3.20.2,<4.21.0 protobuf>4.21.5,<6.0.0.dev0 and google-generativeai==0.8.6 depends on google-ai-generativelanguage==0.6.15, we can conclude that google-generativeai==0.8.6 depends on one of: google-api-core==1.34.1 google-api-core>=2.11.0,<=2.26.0 And because google-cloud-storage==3.7.0 depends on google-api-core>=2.27.0 and open-webui==0.6.43 depends on google-cloud-storage==3.7.0, we can conclude that google-generativeai==0.8.6 and open-webui==0.6.43 are incompatible. And because open-webui==0.6.43 depends on google-generativeai==0.8.6 and your project depends on open-webui==0.6.43, we can conclude that your project's requirements are unsatisfiable. hint: Pre-releases are available for `grpcio-status` in the requested range (e.g., 1.76.0rc1), but pre-releases weren't enabled (try: `--prerelease=allow`) hint: `google-api-core` was requested with a pre-release marker (e.g., all of: google-api-core>=2.11.dev0,<2.11.0 google-api-core>2.11.0,<2.11.1 google-api-core>2.11.1,<2.12.0 google-api-core>2.12.0,<2.13.0 google-api-core>2.14.0,<2.15.0 google-api-core>2.15.0,<2.16.0 google-api-core>2.16.2,<2.17.0 google-api-core>2.17.0,<2.17.1 google-api-core>2.17.1,<2.18.0 google-api-core>2.18.0,<2.19.0 google-api-core>2.19.0,<2.19.1 google-api-core>2.19.2,<2.20.0 google-api-core>2.20.0,<2.21.0 google-api-core>2.21.0,<2.22.0 google-api-core>2.22.0,<2.23.0 google-api-core>2.24.0,<2.24.1 google-api-core>2.24.2,<2.25.0 google-api-core>2.25.0,<2.25.1 ), but pre-releases weren't enabled (try: `--prerelease=allow`) hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python versions using `requires-python`. help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing. ``` ### Additional Information After a quick investigation, I found that the error is caused by a conflict in the protobuf package requirements: the google-generativeai package requires `<6.0.0dev`, while other dependencies require `>=6.0.0`. Even though google-generativeai==0.8.6—which is pinned in Open WebUI—is the latest version on [PyPI](https://pypi.org/project/google-generativeai/), the google-generativeai library has already been deprecated and is no longer maintained. It appears that Open WebUI now depends on the newer SDK [google-genai](https://github.com/open-webui/open-webui/blob/main/pyproject.toml#L52), as suggested by the deprecation notice, but I’m not entirely sure if we can simply remove `google-generativeai` from Open WebUI’s dependencies. When I tested Open WebUI without the google-generativeai package, it seemed to run successfully with a local Ollama setup.
GiteaMirror added the bug label 2026-04-25 08:43:27 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Dec 26, 2025):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #19861 issue:
    by QuitHub • Dec 10, 2025 • bug

  2. #20046 issue:
    by pierrelouisbescond • Dec 19, 2025 • bug

  3. #19877 issue:
    by dotmobo • Dec 11, 2025 • bug

  4. #19864 issue:
    by Haervwe • Dec 10, 2025 • bug

  5. #20092 issue:
    by VideoRyan • Dec 22, 2025 • bug

Show 5 more related issues
  1. #19777 issue:
    by Yaute7 • Dec 05, 2025 • bug

  2. #20019 issue:
    by j63440490 • Dec 17, 2025 • bug

  3. #14490 issue: The v0.6.12 update broke Google AI API support
    by PixelGames987 • May 29, 2025 • bug

  4. #19438 issue: Icon loading regression
    by JoelShepard • Nov 24, 2025 • bug

  5. #19563 issue:
    by naruto7g • Nov 28, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3692308376 --> @owui-terminator[bot] commented on GitHub (Dec 26, 2025): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#19861](https://github.com/open-webui/open-webui/issues/19861) **issue:** *by QuitHub • Dec 10, 2025 • `bug`* 2. [#20046](https://github.com/open-webui/open-webui/issues/20046) **issue:** *by pierrelouisbescond • Dec 19, 2025 • `bug`* 3. [#19877](https://github.com/open-webui/open-webui/issues/19877) **issue:** *by dotmobo • Dec 11, 2025 • `bug`* 4. [#19864](https://github.com/open-webui/open-webui/issues/19864) **issue:** *by Haervwe • Dec 10, 2025 • `bug`* 5. [#20092](https://github.com/open-webui/open-webui/issues/20092) **issue:** *by VideoRyan • Dec 22, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#19777](https://github.com/open-webui/open-webui/issues/19777) **issue:** *by Yaute7 • Dec 05, 2025 • `bug`* 7. [#20019](https://github.com/open-webui/open-webui/issues/20019) **issue:** *by j63440490 • Dec 17, 2025 • `bug`* 8. [#14490](https://github.com/open-webui/open-webui/issues/14490) **issue: The v0.6.12 update broke Google AI API support** *by PixelGames987 • May 29, 2025 • `bug`* 9. [#19438](https://github.com/open-webui/open-webui/issues/19438) **issue: Icon loading regression** *by JoelShepard • Nov 24, 2025 • `bug`* 10. [#19563](https://github.com/open-webui/open-webui/issues/19563) **issue:** *by naruto7g • Nov 28, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@okamototk commented on GitHub (Dec 26, 2025):

@tjbck I found following your commit add google-generativeai package:

c8631660c7

But actually, there are no code modification and no reason why added google-generativeai package.
Can we simply remove google-generativeai package to fix this?

I also can't find any google.generativeai dependency in all of open-webui projects:
https://github.com/search?q=org%3Aopen-webui%20google.generativeai&type=code

new google.genai package is only used in google_manifold_pipeline.py
https://github.com/search?q=org%3Aopen-webui+google.genai&type=code

In this case, I think we can safely delete google.generativeai dependency.

<!-- gh-comment-id:3693098344 --> @okamototk commented on GitHub (Dec 26, 2025): @tjbck I found following your commit add google-generativeai package: https://github.com/open-webui/open-webui/commit/c8631660c7c998c58bca006c24c321a1c3f4419e But actually, there are no code modification and no reason why added google-generativeai package. Can we simply remove google-generativeai package to fix this? I also can't find any google.generativeai dependency in all of open-webui projects: https://github.com/search?q=org%3Aopen-webui%20google.generativeai&type=code new google.genai package is only used in [google_manifold_pipeline.py](https://github.com/open-webui/pipelines/blob/039f9c54f8e9f9bcbabde02c2c853e80d25c79e4/examples/pipelines/providers/google_manifold_pipeline.py#L18) https://github.com/search?q=org%3Aopen-webui+google.genai&type=code In this case, I think we can safely delete google.generativeai dependency.
Author
Owner

@Classic298 commented on GitHub (Dec 30, 2025):

(fixed in dev)

<!-- gh-comment-id:3698976093 --> @Classic298 commented on GitHub (Dec 30, 2025): (fixed in dev)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34642