mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
Error importing "old" functions #3247
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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