Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out of the box getting this error : TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard' #115

Open
hemangjoshi37a opened this issue Jul 22, 2024 · 0 comments

Comments

@hemangjoshi37a
Copy link

(myenv) hemang@hemang-levono-15arr:~$ praisonai code
Traceback (most recent call last):
  File "/home/hemang/myenv/bin/praisonai", line 5, in <module>
    from praisonai.__main__ import main
  File "/home/hemang/myenv/lib/python3.12/site-packages/praisonai/__init__.py", line 5, in <module>
    from .cli import PraisonAI
  File "/home/hemang/myenv/lib/python3.12/site-packages/praisonai/cli.py", line 8, in <module>
    from crewai import Agent, Task, Crew
  File "/home/hemang/myenv/lib/python3.12/site-packages/crewai/__init__.py", line 1, in <module>
    from crewai.agent import Agent
  File "/home/hemang/myenv/lib/python3.12/site-packages/crewai/agent.py", line 4, in <module>
    from langchain.agents.agent import RunnableAgent
  File "/home/hemang/myenv/lib/python3.12/site-packages/langchain/agents/__init__.py", line 34, in <module>
    from langchain_community.agent_toolkits import (
  File "<frozen importlib._bootstrap>", line 1412, in _handle_fromlist
  File "/home/hemang/myenv/lib/python3.12/site-packages/langchain_community/agent_toolkits/__init__.py", line 168, in __getattr__
    module = importlib.import_module(_module_lookup[name])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hemang/myenv/lib/python3.12/site-packages/langchain_community/agent_toolkits/json/base.py", line 6, in <module>
    from langchain_core.callbacks import BaseCallbackManager
  File "/home/hemang/myenv/lib/python3.12/site-packages/langchain_core/callbacks/__init__.py", line 22, in <module>
    from langchain_core.callbacks.manager import (
  File "/home/hemang/myenv/lib/python3.12/site-packages/langchain_core/callbacks/manager.py", line 29, in <module>
    from langsmith.run_helpers import get_run_tree_context
  File "/home/hemang/myenv/lib/python3.12/site-packages/langsmith/run_helpers.py", line 38, in <module>
    from langsmith import client as ls_client
  File "/home/hemang/myenv/lib/python3.12/site-packages/langsmith/client.py", line 52, in <module>
    from langsmith import env as ls_env
  File "/home/hemang/myenv/lib/python3.12/site-packages/langsmith/env/__init__.py", line 3, in <module>
    from langsmith.env._runtime_env import (
  File "/home/hemang/myenv/lib/python3.12/site-packages/langsmith/env/_runtime_env.py", line 9, in <module>
    from langsmith.utils import get_docker_compose_command
  File "/home/hemang/myenv/lib/python3.12/site-packages/langsmith/utils.py", line 29, in <module>
    from langsmith import schemas as ls_schemas
  File "/home/hemang/myenv/lib/python3.12/site-packages/langsmith/schemas.py", line 68, in <module>
    class Example(ExampleBase):
  File "/home/hemang/myenv/lib/python3.12/site-packages/pydantic/v1/main.py", line 286, in __new__
    cls.__try_update_forward_refs__()
  File "/home/hemang/myenv/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 "/home/hemang/myenv/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 "/home/hemang/myenv/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 "/home/hemang/myenv/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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant