Find answers from the community

Updated 6 months ago

Is anyone else having issues with the

At a glance

A community member is having issues with the CLI tool to upgrade their imports to v0.10+. The tool runs without errors, but the imports do not seem to have changed. The community member reinstalled their virtual environment with the new imports, but the issue persists. Other community members suggest trying a specific file path or using the llamaindex-cli upgrade-file command instead. Eventually, the community member realizes that the imports were updated without them noticing, and all their tests are now passing, resolving the issue.

Is anyone else having issues with the cli tool to upgrade your imports to v0.10+ ?

It runs fine, no errors, I get the following output:
Plain Text
(.venv) @no-dice-io ➜ /workspaces/koda-retriever (main) $ llamaindex-cli upgrade .
Module not found: VectorStoreQueryMode
Switching to core
Module not found: BaseNodePostprocessor
Switching to core
Module not found: QueryType
Switching to core
Module not found: Settings
Switching to core
New installs:
pip install llama-index-llms-openai
pip install llama-index-vector-stores-pinecone
pip install llama-index-embeddings-openai


But none of the imports have actually changed. Am I not using this tool correctly? I did reinstall my .venv with the new imports above
L
n
6 comments
wait, none of the imports changed? πŸ˜… thats kind of sus. It does in-place overwrites
what if you give an actual path instead of . ?

Or use llamaindex-cli upgrade-file <filename> ?
Alright well, I think I was just an idiot because now all my tests are passing so it must've updated the imports without me noticing and I saved
Because we're all good now - apologies, false alarm
lol phew, nice
(glad it worked first try!)
Add a reply
Sign up and join the conversation on Discord