Command '['uv', 'run', 'run_crew']' returned non-zero exit status 1

Hello Everyone

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’

Thanks in advance

I have the same error but haven’t found a solution yet

1 Like

Hello

In my scenario, I have created my first crew with CLI: creawai 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:

@task
def crear_contenido_task (self) → Task:
return Task(
config=self.tasks_config[‘crear_contenido_task’],
#agent=self.creador_contenido_agent
#context=self.noticias_financieras_task
)

greetings

1 Like

@wvalverde67 & @wvalverde67,

can you all share the code from your crew.py?

I am facing the same issue. Did you figured out how to solve it so far?

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

My repository link: GitHub - sarahcalbez/recrewter: Simple talent researcher for Technical Recruiters
Just the same sample.

Python 3.12.8
crewai, version 0.100.1
Also using MacOS M1

Not yet … waiting for some news from @tonykipkemboi

1 Like