Find answers from the community

Updated 10 months ago

Thread

Attachment
image.png
L
S
12 comments
hmm maybe a bug with updating download_loader statements? What did the download_x statements look like in your code?
(fyi download_loader() should be replaced with a pip install of the actual package)
it is happening when i am upgrading notebooks individually, it is fine when i am upgrading python files
i dont think i am using download_loader
are you using any download_x functions from llama-index?
oh wait, thats misleading haha
checking the source code for the upgrader
One of your notebooks has a change code block I think

The code that is failing is doing this

Plain Text
def _cell_installs_llama_hub(cell) -> bool:
    lines = cell["source"]
    llama_hub_partial_statements = [
        "pip install llama-hub",
        "import download_loader",
        "import download_tool",
    ]

    if len(lines) > 1:
        return False
    if cell["cell_type"] == "code" and any(
        el in lines[0] for el in llama_hub_partial_statements
    ):
        return True
    return False
not really sure how that would fail tbh lol
I guess len(lines) == 0 ?
yup, there were some blocks where there was nothing and so this error was coming, thanks for the help
Ill try to fix this for the next release as well πŸ™‚
Add a reply
Sign up and join the conversation on Discord