First, I created my first Crew with CLI command “crewai create …” Then I updated this base Crew to implement a simple business case, one of the deeplearning.ai courses.
So I checked that the base Crew ran, but with the new Crew configuration, when I execute “crewai run” again the Task method can’t be instantiated …
Running on Mac python 3.12.8
Exception from main.py Command ‘[‘uv’, ‘run’, ‘run_crew’]’ returned non-zero exit status 1.
Error from crew.py:
return Task(
^^^^^
File “/Users/wvalverde/proyectos/crewai/inicial/.venv/lib/python3.12/site-packages/pydantic/main.py”, line 214, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can’t instantiate abstract class BaseAgent without an implementation for abstract methods ‘_parse_tools’, ‘create_agent_executor’, ‘execute_task’, ‘get_delegation_tools’, ‘get_output_converter’
In my scenario, I have created my first crew with CLI: crewai create crew … This way it implements decorators and its own VENV in the same directory where the crew was made. I’ve noticed that the method Task imported is having some issues with parameters like: agent and context; for example, I have these lines commented on and works:
The issue is happening after creating the crew using the command line crewai create crew name_of_project . At first it works just fine, but when I try to change and implement my own agents, it just started having this issue: Running the Crew Traceback (most recent call last): File "/Users/example/Desktop/recrewter/recrewter_crew/.venv/bin/run_crew", line 4, in <module> from recrewter_crew.main import run ModuleNotFoundError: No module named 'recrewter_crew' An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 1.
So I tried using github to make sure I wasn’t changing anything wrong, so I created a new one and pushed on github, tried to change the agents information and tasks and I got the same issue. I reversed everything I changed and for my surprise the error is still showing up. T.T #Halp
I just pushed the changes into the develop branch. I hope you could reproduce the issue.
but by the way, all I did to reproduce this was following these steps:
Created the project using crewai create crew project_name
Opened the project folder and ran crewai install
ran crewai run an it was working fine, ok
Changed the agent and tasks information
tried to run again and got the issue on the print.
When I was creating the crew using the command crewai create crew project_name, my crewai wasn’t installed globally, and I was running the crewai install command directly in that folder, not within the crew’s folder.
So, when I realized this “silly” mistake, I opened the crew folder and ran crewai run instead of running crewai install, and it worked. I was really making the hole process wrong I guess.
And if you’re cloning a project from someone else’s repository, you can just use crewai run also and it should be fine for you, just remember to add the .env file.
I hope I’ve made myself clear.
Thanks Tony for dedicating a time for this.