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

win10 系统,运行core_server.py出现错误 #178

Open
jalihui opened this issue Dec 3, 2024 · 2 comments
Open

win10 系统,运行core_server.py出现错误 #178

jalihui opened this issue Dec 3, 2024 · 2 comments

Comments

@jalihui
Copy link

jalihui commented Dec 3, 2024

Traceback (most recent call last):
File "D:\anaconda3\envs\cW\lib\site-packages\websockets\asyncio\server.py", line 353, in conn_handler
await connection.handshake(
File "D:\anaconda3\envs\cW\lib\site-packages\websockets\asyncio\server.py", line 204, in handshake
raise self.protocol.handshake_exc
File "D:\anaconda3\envs\cW\lib\site-packages\websockets\server.py", line 134, in accept
) = self.process_request(request)
File "D:\anaconda3\envs\cW\lib\site-packages\websockets\server.py", line 279, in process_request
protocol_header = self.subprotocol = self.process_subprotocol(headers)
File "D:\anaconda3\envs\cW\lib\site-packages\websockets\server.py", line 419, in process_subprotocol
return self.select_subprotocol(subprotocols)
File "D:\anaconda3\envs\cW\lib\site-packages\websockets\server.py", line 467, in select_subprotocol
raise NegotiationError("missing subprotocol")
websockets.exceptions.NegotiationError: missing subprotocol
opening handshake failed

@BigYty
Copy link

BigYty commented Dec 6, 2024

我在ubutu22.0上同样出现了这个问题,没有找到解决办法

@RyanShaw-3083
Copy link

Downgrade the version of the Websockets package to 13.0 with pip install websockets==13.0.

  • 降级 Websockets 包的版本为 13.0 pip install websockets==13.0

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