-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unhandled exception: name '__file__' is not defined" #11
Comments
Facing same issue. |
Sorry about that. The fix needs to happen in Open WebUI first, not this tool. I have a fix for Open WebUI at EtiennePerot/open-webui@6477bf3 which I will send as a PR tomorrow and hope they accept it. In the meantime, as a workaround, you can use an older version of Open WebUI; basically any version older than open-webui/open-webui@cf86ba7. For example, if you are using the Open WebUI container image, I've verified that |
A PR to fix this was sent to Open WebUI here: open-webui/open-webui#5511 |
This was merged and available in Open WebUI v0.3.22. However the tool has not been updated to work with it yet. Will post here when the fix is released. |
This issue is fixed as of release 0.6.0. It will work with Open WebUI v0.3.22, but is also backwards compatible to work with previous Open WebUI versions as well. |
Open WebUI commit open-webui/open-webui@cf86ba7 breaks this tool due to tools and functions no longer being written to files on disk. The tool and function re-execute themselves as subprocesses in order to function, by using Python's special
__file__
global variable which is normally defined for modules when they are imported.This manifests in Open WebUI as an error saying:
Unhandled exception: name '__file__' is not defined
.The text was updated successfully, but these errors were encountered: