socketio.exceptions.ConnectionError: OPEN packet not returned by server

socketio.exceptions.ConnectionError: OPEN packet not returned by server,第1张

socketio.exceptions.ConnectionError: OPEN packet not returned by server

报错信息
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/home/comz/anaconda3/envs/arcface/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/home/comz/anaconda3/envs/arcface/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "usb_camera.py", line 140, in 
    Process(target=lambda: asyncio.run(upload_loop())).start()
  File "/home/comz/anaconda3/envs/arcface/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/home/comz/anaconda3/envs/arcface/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
    return future.result()
  File "usb_camera.py", line 51, in upload_loop
    await sio.connect(url)
  File "/home/comz/anaconda3/envs/arcface/lib/python3.7/site-packages/socketio/asyncio_client.py", line 117, in connect
    raise exceptions.ConnectionError(exc.args[0]) from None
socketio.exceptions.ConnectionError: OPEN packet not returned by server

解决办法:

pip install python-engineio==3.14.2 python-socketio==4.6.0

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5680227.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存