Help with KeyError

First time working with crewai. Im running into this error when using crewai run:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/username/get_hired/get_hired/src/get_hired/main.py", line 16, in run
    GetHiredCrew().crew().kickoff()
    ^^^^^^^^^^^^^^
  File "/Users/username/get_hired/crewai_env/lib/python3.12/site-packages/crewai/project/crew_base.py", line 34, in __init__
    self.map_all_agent_variables()
  File "/Users/username/get_hired/crewai_env/lib/python3.12/site-packages/crewai/project/crew_base.py", line 73, in map_all_agent_variables
    self._map_agent_variables(
  File "/Users/username/get_hired/crewai_env/lib/python3.12/site-packages/crewai/project/crew_base.py", line 101, in _map_agent_variables
    tool_functions[tool]() for tool in tools
    ~~~~~~~~~~~~~~^^^^^^
KeyError: 'CSVSearchTool'

from crewai_tools import CSVSearchTool, PDFSearchTool, FirecrawlCrawlWebsiteTool, DirectoryReadTool

csv_tool = CSVSearchTool()

Any help is greatly appreciated :pray:t4:

1 Like

WHAT LLM/model are you using? E.G. OpenAI, local ollama LLama 3.1 etc

I am also getting same error for custom tool. Can you share what exactly fixed the error.

I’m interested too, have the same exact problem!

Frankly , install the new version if using community edition. I was using tool.yaml and realzied it’s not needed. Let me know if that help.