Find answers from the community

Updated 3 months ago

is anyone else gettign thsi error:

is anyone else gettign thsi error:

Plain Text
...
_get_async_stream_ai_response
    await chat_stream_response._is_function_false_event.wait()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StreamingAgentChatResponse' object has no attribute '_is_function_false_event'. Did you mean: 'is_function_false_event'?
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
L
t
22 comments
try updating, pretty sure I fixed that
pip install -U llama-index-core
oh do i have to install core separately?
Its already installed
i've been on llama-index v10.19
llama-index is a wrapper on several sub-packages
it worked fine till this morning
plz try the update above
pip install -U llama-index works too
@Logan M i'm now getting:

Plain Text
E   ModuleNotFoundError: No module named 'llama_index'


my tests are failing too. only thing that changed is updating to llama-index==0.10.35 in my requirements.txt

i'm on python 3.12. i've uninstalled all the packages in my virtual environment and reinstalled them too.
spooky. Maybe try a completely fresh venv? (also, if you have a file or folder named llama_index, that would have to be removed/renamed too)
just did @Logan M
i'm still getting the error @Logan M
i ran pip list --outdated

got this:

Plain Text
Package                  Version Latest  Type
------------------------ ------- ------- -----
...
llama-index-llms-openai  0.1.17  0.1.18  wheel
llama-index-readers-file 0.1.21  0.1.22  wheel
...
then i did pip install -U llama-index-llms-openai and my tests are passing again
So its not working or it is working?
now it works
there's something wrong with the mapping. by updating to llama-index==0.10.35, the llama-index-llms-openai package should have updated automatically
Maybe it should of πŸ€” Not really sure. The requirements under the hood for llama-index is just

Plain Text
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
llama-index-legacy = "^0.9.48"
llama-index-llms-openai = "^0.1.13"
llama-index-embeddings-openai = "^0.1.5"
llama-index-program-openai = "^0.1.3"
llama-index-question-gen-openai = "^0.1.2"
llama-index-agent-openai = ">=0.1.4,<0.3.0"
llama-index-readers-file = "^0.1.4"
llama-index-readers-llama-parse = "^0.1.2"
llama-index-indices-managed-llama-cloud = "^0.1.2"
llama-index-core = "^0.10.34"
llama-index-multi-modal-llms-openai = "^0.1.3"
llama-index-cli = "^0.1.2"
found the issue. even though i updtated requriements.txt, i didn't update the install_requires list in setup.py where lama-index was pointing to 0.10.19.
all good now
Add a reply
Sign up and join the conversation on Discord