Hello,
I install crewai and uv as mentioned in the crewai docs quickstart and then created the crewai project using “crewai create crew latest-ai-development”
then executed “crewai run”. Which executed the run and the crew started showing result. Then I added only one new task and agent in config file and in same format as previous. But the extra thing is only that I added tools for agent. Then I kickoff the crew by running crewai run and its asked me to install databricks and databricks-sdk. So I did it by uv add databricks. After that I executed crew run again and started getting error as below,
Traceback (most recent call last):
File “/home/intellih/F11/latest_ai_development/.venv/bin/run_crew”, line 10, in
sys.exit(run())
File “/home/intellih/F11/latest_ai_development/src/latest_ai_development/main.py”, line 21, in run
LatestAiDevelopment().crew().kickoff(inputs=inputs)
File “/home/intellih/F11/latest_ai_development/.venv/lib/python3.10/site-packages/crewai/project/utils.py”, line 11, in memoized_func
cache[key] = func(*args, **kwargs)
File “/home/intellih/F11/latest_ai_development/.venv/lib/python3.10/site-packages/crewai/project/annotations.py”, line 95, in wrapper
task_instance = task_method(self)
File “/home/intellih/F11/latest_ai_development/.venv/lib/python3.10/site-packages/crewai/project/utils.py”, line 11, in memoized_func
cache[key] = func(*args, **kwargs)
File “/home/intellih/F11/latest_ai_development/.venv/lib/python3.10/site-packages/crewai/project/annotations.py”, line 28, in wrapper
result = func(*args, **kwargs)
File “/home/intellih/F11/latest_ai_development/src/latest_ai_development/crew.py”, line 61, in Player_research_task
config=self.tasks_config[‘Player_research_task’],
KeyError: ‘Player_research_task’
An error occurred while running the crew: Command ‘[‘uv’, ‘run’, ‘run_crew’]’ returned non-zero exit status 1.
I removed the tools mentioned in agent but that did not work. I double checked if anything is missing but everything is same as tasks and agents mentioned in default structure.
Anybody else facing same kind of issue or have solution for this ?