OpenInterpreter / 01

The #1 open-source voice interface for desktop, mobile, and ESP32 chips.
https://01.openinterpreter.com/
GNU Affero General Public License v3.0
4.91k stars 512 forks source link

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

Closed JayTing511 closed 5 months ago

JayTing511 commented 6 months ago

(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 commented 6 months ago

seems nobody make this bug, only me

I have the same behavior.

DongTin commented 6 months ago

Me too

DongTin commented 6 months ago

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

jacobrvl commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

JayTing511 commented 6 months ago

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 commented 6 months ago

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

ennis-ma commented 6 months ago

Same error msg

keldenl commented 6 months ago

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

nischalj10 commented 5 months ago

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

jacobrvl commented 5 months ago

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

logimox commented 5 months ago

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

How did you switch? Just update it?

jacobrvl commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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(

keldenl commented 5 months ago

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
  2. conda activate 01
  3. 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 :)

tyfiero commented 5 months ago

Did upgrading to python 3.11 fix this issue for folks?

kieran-cr commented 5 months ago

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 commented 5 months ago

Did upgrading to python 3.11 fix this issue for folks?

Oderwats instructions fixed my issue

tyfiero commented 5 months ago

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

rbrisita commented 5 months ago

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