[GH-ISSUE #8848] Loading 'google.cloud' library even when it is unnecessary #15287

Closed
opened 2026-04-19 21:32:59 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @daniporr on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8848

Bug Report

Installation Method

GitHub release

Environment

  • Open WebUI Version: v0.5.7

  • Operating System: Windows 11

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Open WebUI starts without errors, and without loading Google stuff since I disable that feature.

Actual Behavior:

When starting it, in the same exact way I used to start earlier versions, it gives me the error described below.
As far as I understand, due to the import of 'google.cloud', which is not required since I have not enabled that functionality.

Description

Bug Summary:

The latest version has the following problem:

     return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "...\backend\open_webui\main.py", line 52, in <module>
    from open_webui.routers import (
  File "...\backend\open_webui\routers\retrieval.py", line 33, in <module>
    from open_webui.storage.provider import Storage
  File "...\backend\open_webui\storage\provider.py", line 20, in <module>
    from google.cloud import storage
ImportError: cannot import name 'storage' from 'google.cloud' (unknown location)

Reproduction Details

Steps to Reproduce:

Start the latest version of Open WebUI in an environment without Google stuff (in particular without google.cloud)

Additional Information

Related to #8845

Originally created by @daniporr on GitHub (Jan 24, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/8848 # Bug Report ## Installation Method GitHub release ## Environment - **Open WebUI Version:** v0.5.7 - **Operating System:** Windows 11 **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Open WebUI starts without errors, and without loading Google stuff since I disable that feature. ## Actual Behavior: When starting it, in the same exact way I used to start earlier versions, it gives me the error described below. As far as I understand, due to the import of 'google.cloud', which is not required since I have not enabled that functionality. ## Description **Bug Summary:** The latest version has the following problem: ```py return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "...\backend\open_webui\main.py", line 52, in <module> from open_webui.routers import ( File "...\backend\open_webui\routers\retrieval.py", line 33, in <module> from open_webui.storage.provider import Storage File "...\backend\open_webui\storage\provider.py", line 20, in <module> from google.cloud import storage ImportError: cannot import name 'storage' from 'google.cloud' (unknown location) ``` ## Reproduction Details **Steps to Reproduce:** Start the latest version of Open WebUI in an environment without Google stuff (in particular without `google.cloud`) ## Additional Information Related to #8845
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15287