crewAI
crewAI copied to clipboard
CrewAI 0.30.0.rc6 + CrewAI-Tools 0.2.4 leads to Error
Error encoutnerd on NixOS (venv) with CrewAI 0.30.0.rc6
+ CrewAI-Tools 0.2.4
with python 3.11.
File "[...]/tools.py", line 2, in <module>
from crewai_tools import tool
File "[...]/.venv/lib/python3.11/site-packages/crewai_tools/__init__.py", line 1, in <module>
from .tools.base_tool import BaseTool, Tool, tool
File "[...]/.venv/lib/python3.11/site-packages/crewai_tools/tools/__init__.py", line 6, in <module>
from .docx_search_tool.docx_search_tool import DOCXSearchTool
File "[...]/.venv/lib/python3.11/site-packages/crewai_tools/tools/docx_search_tool/docx_search_tool.py", line 9, in <module>
class FixedDOCXSearchToolSchema(BaseModel):
File "[...]/.venv/lib/python3.11/site-packages/crewai_tools/tools/docx_search_tool/docx_search_tool.py", line 11, in FixedDOCXSearchToolSchema
docx: str = Optional[Field](..., description="Mandatory docx path you want to search")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/yvhwsfbh4bc99vfvwpaa70m4yng4pvpz-python3-3.11.8/lib/python3.11/typing.py", line 1275, in __call__
result = self.__origin__(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/yvhwsfbh4bc99vfvwpaa70m4yng4pvpz-python3-3.11.8/lib/python3.11/typing.py", line 472, in __call__
raise TypeError(f"Cannot instantiate {self!r}")
TypeError: Cannot instantiate typing.Union
Same Issue does not occur with CrewAI 0.30.0.rc6
+ CrewAI-Tools 0.2.2
Looks like this issue was mentioned but closed in #573
yep broken for over 24 hours... so yes it seems with this sort of thing going on crewai or in this case screw up in langchain could indeed bring my commercial app to a screaming halt. I'll forget about both until neither have failed in at least 12 months. Can't afford days of downtime. When joe up the road depends on you then let him down all you like, a business on the other hand... well thats pretty much goodbye to any trust. In the meantime for those looking for a fast solution pip uninstall langchain, pip and then pip install langchain==0.1.15
This fixed for me https://github.com/joaomdmoura/crewAI/issues/573
This fix is now merged into crewai-tools
: https://github.com/joaomdmoura/crewAI-tools/pull/32