Find answers from the community

Updated 9 months ago

hi, anyone knows why this happened?

hi, anyone knows why this happened?
L
a
46 comments
for example

Plain Text
from llama_index.core import (
    SimpleDirectoryReader,
    VectorStoreIndex,
    ServiceContext
)
i created a new env
i have to do it manually?
I think theres a small issue -- sorting this out currently
so do i have to wait?
in meantime can i use and older version?
i used lalmaindec 0.9.41
but when using VectorStoreIndex()
52 def init(self, handlers: Optional[List[BaseCallbackHandler]] = None):
53 """Initialize the manager with a list of handlers."""
---> 54 from llama_index.core import global_handler
55
56 handlers = handlers or []

ImportError: cannot import name 'global_handler' from 'llama_index.core' (/usr/local/lib/python3.10/dist-packages/llama_index/core/init.py)
switching between v0.10.x and v0.9.x will be annoying πŸ˜… You'll need a venv for each
I'll have a fix published in like 30 mins or less if you can wait :)(
okay i will waitπŸ‘
dont close this chat pls
ok nice, new fix is published πŸ™‚ pip install llama-index-core==0.10.8.post1
i created a new venv with that pip install
but this happened
rip -- its probably reading some file it can't actually process?
Try pointing to an invdividual file? llamaindex-cli upgrade-file <filepath>
i tried with two diferent
but it happened the same
rip, classic windows
idk what encoding your files are in, but python doesn't seem to want to open it
or the notebook contains some special windows chars it cant decode (since I see its a notebook)
Might have to do manual upgrade -- which isn't too bad tbh. If you share a piece of code I can also switch it
i removed some markdown and i have a script that worked
nevertheless, now i am trying with another one
and what could be and list index out of range error?
do you have any download_loader or from llama_hub statements?
(thats what its trying to parse anyways)
yes, it was that thanks
but there are some libraries that are changed and dont work
yea, need to pip install that neutrino package πŸ™‚ Glad you got it!
Add a reply
Sign up and join the conversation on Discord