Error Encountered in Rerunning Code in Virtual Environment
Error Encountered in Rerunning Code in Virtual Environment
At a glance
The community member is experiencing an issue where their code runs successfully initially, but then encounters an AttributeError when running it again in the same virtual environment. The error occurs in the OpenAIEmbedding class from the llama_index library. The community member has provided the versions of the libraries they are using, including llama-index (0.10.17), pydantic (2.10.5), openai (1.51.2), llama-index-core (0.11.23), llama-index-vector-stores-supabase (0.2.0), and SQLAlchemy (2.0.36), as well as the Python version (3.8.12). However, there is no explicitly marked answer in the comments.
This is one example where the code runs successfully at first, but when I run it again after some time in the same virtual environment, the following error occurs: