Find answers from the community

Updated 7 months ago

Trace

@Logan M , is this new:

Plain Text
Traceback (most recent call last):
  File "/app/main.py", line 1, in <module>
    from llama_index.agent.openai import OpenAIAgent
  File "/usr/local/lib/python3.12/site-packages/llama_index/agent/openai/__init__.py", line 1, in <module>
    from llama_index.agent.openai.base import OpenAIAgent
  File "/usr/local/lib/python3.12/site-packages/llama_index/agent/openai/base.py", line 20, in <module>
    from llama_index.agent.openai.step import OpenAIAgentWorker
  ...
  File "/usr/local/lib/python3.12/site-packages/llama_index/core/instrumentation/__init__.py", line 1, in <module>
    from llama_index.core.instrumentation.dispatcher import Dispatcher, Manager
  File "/usr/local/lib/python3.12/site-packages/llama_index/core/instrumentation/dispatcher.py", line 24, in <module>
    class Dispatcher(BaseModel):
  File "/usr/local/lib/python3.12/site-packages/pydantic/v1/main.py", line 286, in __new__
    cls.__try_update_forward_refs__()
  File "/usr/local/lib/python3.12/site-packages/pydantic/v1/main.py", line 807, in __try_update_forward_refs__
    update_model_forward_refs(cls, cls.__fields__.values(), cls.__config__.json_encoders, localns, (NameError,))
  File "/usr/local/lib/python3.12/site-packages/pydantic/v1/typing.py", line 554, in update_model_forward_refs
    update_field_forward_refs(f, globalns=globalns, localns=localns)
  File "/usr/local/lib/python3.12/site-packages/pydantic/v1/typing.py", line 520, in update_field_forward_refs
    field.type_ = evaluate_forwardref(field.type_, globalns, localns or None)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydantic/v1/typing.py", line 66, in evaluate_forwardref
    return cast(Any, type_)._evaluate(globalns, localns, set())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
L
t
10 comments
Never seen this in my life lol
pip freeze | grep llama-index what do you have installed?

I can try replicating in a colab notebook, but I suspect it will work πŸ˜…
the solution was to downgrade from python 3.12 to 3.11
python dependency management is unique lol
Probably some deep underlying library?
Sounds like python sadly πŸ˜… I probably won't even use 3.12 for like another year lmao
oh really? why not
Because of silly things like this (you'd think 3.11 to 3.12 wouldn't be breaking, but I guess it is)
Add a reply
Sign up and join the conversation on Discord