# Help with KeyError

**URL:** <https://community.crewai.com/t/help-with-keyerror/643>\
**Category:** CrewAI Community Support\
**Created:** [October 3, 2024, 8:01pm UTC](https://community.crewai.com/t/help-with-keyerror/643 "2024-10-03T20:01:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hahaok](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@hahaok](https://community.crewai.com/u/hahaok)\
**Post date:** [October 3, 2024, 8:01pm UTC](https://community.crewai.com/t/help-with-keyerror/643/1 "2024-10-03T20:01:14Z")

</div>

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

```auto
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'

```

```auto
from crewai_tools import CSVSearchTool, PDFSearchTool, FirecrawlCrawlWebsiteTool, DirectoryReadTool

csv_tool = CSVSearchTool()

```

Any help is greatly appreciated 🙏🏽

---

<div class="post-metadata">

**Author:** ![Dabnis](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@Dabnis](https://community.crewai.com/u/Dabnis)\
**Post date:** [October 5, 2024, 1:27pm UTC](https://community.crewai.com/t/help-with-keyerror/643/2 "2024-10-05T13:27:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Priti\_Solanki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/priti_solanki/32/1238_2.png) [@Priti\_Solanki](https://community.crewai.com/u/Priti_Solanki)\
**Post date:** [January 29, 2025, 1:16am UTC](https://community.crewai.com/t/help-with-keyerror/643/3 "2025-01-29T01:16:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gisselle\_Gonzalez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/gisselle_gonzalez/32/2332_2.png) [@Gisselle\_Gonzalez](https://community.crewai.com/u/Gisselle_Gonzalez)\
**Post date:** [January 30, 2025, 2:19pm UTC](https://community.crewai.com/t/help-with-keyerror/643/4 "2025-01-30T14:19:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Priti\_Solanki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/priti_solanki/32/1238_2.png) [@Priti\_Solanki](https://community.crewai.com/u/Priti_Solanki)\
**Post date:** [February 6, 2025, 12:30am UTC](https://community.crewai.com/t/help-with-keyerror/643/5 "2025-02-06T00:30:15Z")

</div>

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.
