Error importing "old" functions #3247

Closed
opened 2025-11-11 15:26:49 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @rgaricano on GitHub (Jan 11, 2025).

Bug Report

Error when importing/copying "olds" functions (from openwebui.com community plugins)

Installation Method

git clone

Environment

  • Open WebUI Version: [v0.5.4]

  • Ollama (if applicable): [v0.5.4]

  • Operating System: [Ubuntu 24.04]

  • Browser (if applicable): [Chromium]

Expected Behavior:

Import/create function correctly or give and advise of incompatiblily with actual version.

Actual Behavior:

It raise an error: [ERROR: No module named 'open_webui.apps']

Description

Bug Summary:

Error uploading, creating (coping) some functions from openwebui community plugins page

Which functions with old "apps" import involved it raise an error: "[ERROR: No module named 'open_webui.apps']"

It seems to be a remnant of the restructuring of the openwebui file system and its adaptation (replace old.new) from

["from apps": "from open_webui.apps",](4269df041f/backend/open_webui/utils/plugin.py (L60))

I solved adding an aditional line to plugin.py

59 "from utils": "from open_webui.utils",
"from apps.webui": "from open_webui",
60 "from apps": "from open_webui.apps",

but there are others functions, as https://openwebui.com/f/caplescrest/auto_memory/ with "from open_webui.apps.webui..." import in it which also generates errors (I haven't debugged the solution yet)
...

Reproduction Details

Steps to Reproduce:

importing functions with apps.webui import on its, e.g. autotools (https://openwebui.com/f/mhwhgm/auto_tool_v2/ )

Additional Information

Note

Originally created by @rgaricano on GitHub (Jan 11, 2025). # Bug Report Error when importing/copying "olds" functions (from openwebui.com community plugins) ## Installation Method git clone ## Environment - **Open WebUI Version:** [v0.5.4] - **Ollama (if applicable):** [v0.5.4] - **Operating System:** [Ubuntu 24.04] - **Browser (if applicable):** [Chromium] ## Expected Behavior: Import/create function correctly or give and advise of incompatiblily with actual version. ## Actual Behavior: It raise an error: [ERROR: No module named 'open_webui.apps'] ## Description **Bug Summary:** Error uploading, creating (coping) some functions from openwebui community plugins page Which functions with old "apps" import involved it raise an error: "[ERROR: No module named 'open_webui.apps']" It seems to be a remnant of the restructuring of the openwebui file system and its adaptation (replace old.new) from [["from apps": "from open_webui.apps",](https://github.com/open-webui/open-webui/blob/4269df041fef62208d59babe0faae866d2bfbc3c/backend/open_webui/utils/plugin.py#L60)](https://github.com/open-webui/open-webui/blob/4269df041fef62208d59babe0faae866d2bfbc3c/backend/open_webui/utils/plugin.py#L60) I solved adding an aditional line to plugin.py 59 "from utils": "from open_webui.utils", "from apps.webui": "from open_webui", 60 "from apps": "from open_webui.apps", but there are others functions, as https://openwebui.com/f/caplescrest/auto_memory/ with "from open_webui.apps.webui..." import in it which also generates errors (I haven't debugged the solution yet) ... ## Reproduction Details **Steps to Reproduce:** importing functions with apps.webui import on its, e.g. autotools (https://openwebui.com/f/mhwhgm/auto_tool_v2/ ) ## Additional Information ## Note
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3247