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

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

Closed
JayTing511 opened this issue Mar 23, 2024 · 22 comments · May be fixed by #250
Closed

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

JayTing511 opened this issue Mar 23, 2024 · 22 comments · May be fixed by #250

Comments

@JayTing511
Copy link

(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.

@oderwat
Copy link

oderwat commented Mar 23, 2024

seems nobody make this bug, only me

I have the same behavior.

@DongTin
Copy link

DongTin commented Mar 23, 2024

Me too

@DongTin
Copy link

DongTin commented Mar 23, 2024

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

@jacobrvl
Copy link

jacobrvl commented Mar 23, 2024

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.

@DongTin
Copy link

DongTin commented Mar 23, 2024

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
Copy link

DongTin commented Mar 23, 2024

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

@JayTing511
Copy link
Author

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.

@kieran-cr
Copy link

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

@ennis-ma
Copy link

Same error msg

@keldenl
Copy link

keldenl commented Mar 24, 2024

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

@nischalj10
Copy link

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

@jacobrvl
Copy link

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

@logimox
Copy link

logimox commented Mar 25, 2024

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

How did you switch? Just update it?

@jacobrvl
Copy link

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.

@oderwat
Copy link

oderwat commented Mar 25, 2024

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.

@kieran-cr
Copy link

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: urllib3/urllib3#3020
warnings.warn(

@keldenl
Copy link

keldenl commented Mar 26, 2024

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: #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 :)

@tyfiero
Copy link
Collaborator

tyfiero commented Mar 26, 2024

Did upgrading to python 3.11 fix this issue for folks?

@kieran-cr
Copy link

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
Copy link

Did upgrading to python 3.11 fix this issue for folks?

Oderwats instructions fixed my issue

@tyfiero
Copy link
Collaborator

tyfiero commented Mar 28, 2024

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

@tyfiero tyfiero closed this as completed Mar 28, 2024
@rbrisita
Copy link
Contributor

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

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

Successfully merging a pull request may close this issue.