Skip to content
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

No supported WebSocket library detected. #458

Open
nolandubeau opened this issue May 1, 2024 · 3 comments
Open

No supported WebSocket library detected. #458

nolandubeau opened this issue May 1, 2024 · 3 comments

Comments

@nolandubeau
Copy link

I followed the instructions to run the app using Docker. The app starts up correctly, however, fails when I ask it to research something. All requirements for uvicorn[standard], websockets, and wsproto are satisfied. The error is:

] Running 0/1
⠋ Container gpt-researcher-gpt-researcher-1 Recreated 0.1s
Attaching to gpt-researcher-1
gpt-researcher-1 | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
gpt-researcher-1 | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
gpt-researcher-1 | warnings.warn(
gpt-researcher-1 | INFO: Started server process [1]
gpt-researcher-1 | INFO: Waiting for application startup.
gpt-researcher-1 | INFO: Application startup complete.
gpt-researcher-1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
gpt-researcher-1 | INFO: 192.168.65.1:26965 - "GET / HTTP/1.1" 200 OK
gpt-researcher-1 | WARNING: Unsupported upgrade request.
gpt-researcher-1 | WARNING: No supported WebSocket library detected. Please use "pip install 'uvicorn[standard]'", or install 'websockets' or 'wsproto' manually.
gpt-researcher-1 | INFO: 192.168.65.1:26983 - "GET /ws HTTP/1.1" 404 Not Found

@assafelovic
Copy link
Owner

@ElishaKay maybe related to the issue you discussed?

@assafelovic
Copy link
Owner

@ElishaKay 👆🏻

@ElishaKay
Copy link
Contributor

Thanks for the heads up @nolandubeau

Correct this error was fixed in this commit which made it into Master 2 weeks ago

The fix was to add the websockets library to requirements.txt

Safe to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants