mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #11954] issue: Google PSE - 'NoneType' object has no attribute 'encode' #31942
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 @cech12 on GitHub (Mar 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11954
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Proxmox LXC container
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The Web Search feature with Google PSE should work.
Actual Behavior
The Web Search feature does not work with Google PSE. It shows error messages in the dialog:
And no information of the search result is used in the response.
I also tried to re-download the embedding model, but it also shows errors. (see below)
Steps to Reproduce
Logs & Screenshots
In the service logs I could find this message:
fullest log I could get: https://pastebin.com/35CMmixh
Errors when trying to download the embedding model:
https://pastebin.com/8aUyYKUS
Additional Information
If I activate the "Embedding and Retrieval" option, the errors don't pop up, but the search result cannot be interepreted as well
@Classic298 commented on GitHub (Mar 22, 2025):
Yeah that's an issue of the RAG it seems, not of the web search or google PSE.
Try installing OpenWebUI completely fresh with one of the official installation methods and not a random script that fetches the github repo.
Not sure why this script you linked to doesn't just use pip to install openwebui. That'd be the safe choice to make sure you only use pip released versions.
Make sure the script also installs all the correct dependencies that OpenWebUI demands, since it looks like the script does install other dependencies too. This might be the issue since it could install dependencies with breaking versions that OpenWebUI doesn't support.
After you did that, try to download the embedding model from the admin panel by pressing the little download button. If you do not get any errors that'd be a good sign.
And look out for all the other duplicate issues that reported RAG issues with the transformers library. I think you created a duplicate issue. You can check the existing issues for some fixes that worked for other people.
Also if you have any global settings of sorts that start python programs in an optimized mode (-OO or the equivalent environment variable) then delete that. This fixed it for me fyi.