mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-18 19:29:11 -05:00
[GH-ISSUE #8109] [ERROR: No module named 'open_webui.apps'] when importing a Function #134732
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 @madslyng on GitHub (Dec 26, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8109
Bug Report
Installation Method
docker run -d -p 127.0.0.1:3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainEnvironment
Open WebUI Version: Open WebUI Version
v0.5.1
(latest)
Ollama (if applicable):
0.5.4
Operating System: Windows 11 WSL 2
Browser (if applicable): Firefox 133.0.3 (64-bit)
Confirmation:
Expected Behavior:
Can install a Function that uses the
open_webuipython libraryActual Behavior:
Throws error in user interface, and fails to save Function
Description
Bug Summary:
When attempting to install a function that uses the
open_webuilibrary in the Functions code. The Open WebUI application fails to create the new function, because it cannot findopen_webuiReproduction Details
Steps to Reproduce:
Visual Treeand pick a Function, for instance https://openwebui.com/f/zzxc/mcts/GetSaveLogs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):

Additional notes
I tried to
docker execwith interactive mode, and manually installed open_webui:pip install open_webuiBut it did not have any effect.
@aiproductguy commented on GitHub (Dec 26, 2024):
I am getting the same error, but on a Mac.
@tjbck commented on GitHub (Dec 26, 2024):
Deprecated function, please read the changelogs and reach out to the author.
https://docs.openwebui.com/features/plugin/migration/
@MartianInGreen commented on GitHub (Dec 27, 2024):
Is there some guide on updating for devs? What exactly was changed? I can't find anything in the Changelog except for "Websocket support now mandatory"?
@encryptic12 commented on GitHub (Dec 28, 2024):
I have seen this response on a lot of threads. Less than helpful. Was that function replaced with something else? The following line of the changelog does not exactly provide any guidance on the issue:
Backend Overhaul for Performance: Major backend restructuring; a heads-up that some "Functions" using internal variables may face compatibility issues. Moving forward, websocket support is mandatory to ensure Open WebUI operates seamlessly.
Will the functions now have to call websockets to import the data they were getting from internal functions before? If so, doesn't this sort of negate a lot of the reason that functions exist in the first place: To take advantage of the fact that they run in OWUI and not in pipelines...?
@encryptic12 commented on GitHub (Dec 28, 2024):
Ahhhh, this is much more helpful. Check out the documentation updates here: https://docs.openwebui.com/features/plugin/migration/
@mdsa2 commented on GitHub (May 24, 2026):
bro i will give u soluation 100%100 that work u need go to open web ui docmenation page and then after that copy all page that in docs and put it in gemini the docs page to learn the rules he need follow up after that put your code and the problem will fixed the docs this is the easiest way
https://docs.openwebui.com/features/extensibility/plugin/functions/