01 icon indicating copy to clipboard operation
01 copied to clipboard

Cannot call "receive" once a disconnect message has been received.

Open JayTing511 opened this issue 11 months ago • 16 comments

(base) zhouxl@jiangliuerdeMacBook-Pro software % poetry run 01

Starting...

INFO: Started server process [60460] INFO: Waiting for application startup.

Ready.

INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:10001 (Press CTRL+C to quit) INFO: ('127.0.0.1', 56406) - "WebSocket /" [accepted] INFO: connection open

Press the spacebar to start/stop recording. Press CTRL-C to exit. Cannot call "receive" once a disconnect message has been received. Recording started... Recording stopped.

seems nobody make this bug, only me, at least , i do not find any same bug in the upload issues. someone knows how to solve it.

JayTing511 avatar Mar 23 '24 10:03 JayTing511

seems nobody make this bug, only me

I have the same behavior.

oderwat avatar Mar 23 '24 13:03 oderwat

Me too

DongTin avatar Mar 23 '24 13:03 DongTin

I found a webpage like this . It seems that the error message comes from fastapi.

DongTin avatar Mar 23 '24 15:03 DongTin

I have the same error. Does 01 work with the error for you? I can record something but don't get any response. I also checked my Openai token and it is never used. So I am sure it is not sending anything to openAI.

jacobrvl avatar Mar 23 '24 15:03 jacobrvl

I have the same error. Does 01 work with the error for you? I can record something but don't get any response. I also checked my Openai token and it is never used. So I am sure it is not sending anything to openAI.

Yeah,record function is useful,but nothing happen when recording completed.

DongTin avatar Mar 23 '24 15:03 DongTin

By the way, I have this problem when using openai api, ollama and llmstudio.

DongTin avatar Mar 23 '24 15:03 DongTin

I have the same error. Does 01 work with the error for you? I can record something but don't get any response. I also checked my Openai token and it is never used. So I am sure it is not sending anything to openAI.

hh, i even can't record voice, Always looping between record started and record stopped.I am very confused and when i reset environment, it just repeat the looping. and have some other bugs.

JayTing511 avatar Mar 23 '24 19:03 JayTing511

Same issue my side, unable to proceed after holding and releasing space bar to record audio

kieran-cr avatar Mar 23 '24 22:03 kieran-cr

Same error msg

ennis-ma avatar Mar 23 '24 23:03 ennis-ma

just want to chime in and i'm having this issue as well. m1 mac running --local flag

keldenl avatar Mar 24 '24 02:03 keldenl

For me, when O1 is done performing a task, it can't do follow ups because of similar issue. First instruction works well.

nischalj10 avatar Mar 25 '24 08:03 nischalj10

I solved my problem by switching from python version 3.9.2 to 3.11.8

jacobrvl avatar Mar 25 '24 09:03 jacobrvl

I solved my problem by switching from python version 3.9.2 to 3.11.8

How did you switch? Just update it?

logimox avatar Mar 25 '24 09:03 logimox

I solved my problem by switching from python version 3.9.2 to 3.11.8

How did you switch? Just update it?

I use pyenv to switch between different Python versions.

jacobrvl avatar Mar 25 '24 09:03 jacobrvl

I used poetry env use 3.11 and poetry install. it worked after I created a dummy REAME.md file. Not sure why this is missing in my current setup.

oderwat avatar Mar 25 '24 09:03 oderwat

Issue appears linked with /Library/Caches/pypoetry/virtualenvs/01os-w_P9xt9H-py3.9/lib/python3.9/site-packages/urllib3/init.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn(

kieran-cr avatar Mar 25 '24 22:03 kieran-cr

thank you @oderwat !!!! i didn't have to create a readme file but here's what i did on my m1 pro

  1. create a new conda env with python version 11.8, arm based
CONDA_SUBDIR=osx-arm64 conda create -n 01 python python=3.11.8
  1. conda activate 01
  2. poetry install

and that was it! now works :)

edit: actually i lied, i actually did this after poetry install due to (this issue: https://github.com/OpenInterpreter/01/issues/68)

pip uninstall pyaudio
pip install --global-option='build_ext' --global-option="-I$(brew --prefix)/include" --global-option="-L$(brew --prefix)/lib" pyaudio

but works after that :)

keldenl avatar Mar 26 '24 04:03 keldenl

Did upgrading to python 3.11 fix this issue for folks?

tyfiero avatar Mar 26 '24 23:03 tyfiero

I used poetry env use 3.11 and poetry install. it worked after I created a dummy REAME.md file. Not sure why this is missing in my current setup.

This worked a treat on M1 Pro

kieran-cr avatar Mar 27 '24 11:03 kieran-cr

Did upgrading to python 3.11 fix this issue for folks?

Oderwats instructions fixed my issue

kieran-cr avatar Mar 27 '24 11:03 kieran-cr

I'm glad this solved the problem! If this issue arises again for anyone feel free to create a new issue

tyfiero avatar Mar 28 '24 21:03 tyfiero

It has to do with the websockets.connect call and it's ping_timeout argument. PR forthcoming.

rbrisita avatar Apr 18 '24 01:04 rbrisita