-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] AttributeError: 'list' object has no attribute 'get' #1849
Comments
Can you share your code please |
I have included crew.py, agents.yaml and tasks.yaml. full disclosure i am relatively inexperienced and this is my first bug post. I appreciate any assistance. I've been stumped by this by an embarrassingly long period of time though my gut says I'm missing something obvious i cant find it. the following is crew.py: from crewai import Agent, Crew, Process, Task CodeInterpreter=CodeInterpreterTool() @crewbase
the following is agents.yaml: code_writer: safety_and_security: quality_control: The following is tasks.yaml: code_writing_task: safety_and_security_task: quality_control_task: |
Description
this seems to be a misidentification of a dictionary as a list though i may be missing something
Steps to Reproduce
from a new install use the create crew command and select ollama run the crew and the error will appear.
Expected behavior
I expected my crew to execute but instead it stalls out on this error regardless of the formatting changes i make.
Screenshots/Code snippets
crewai run
/home/ghebner/anaconda3/envs/crewAI/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2:
warnings.warn(message, UserWarning)
Running the Crew
/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2:
warnings.warn(message, UserWarning)
Traceback (most recent call last):
File "/home/ghebner/crewAI/developercrew1/.venv/bin/run_crew", line 8, in
sys.exit(run())
^^^^^
File "/home/ghebner/crewAI/developercrew1/src/developercrew1/main.py", line 21, in run
Developercrew1().crew().kickoff(inputs=inputs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/crewai/project/utils.py", line 7, in memoized_func
cache[key] = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/crewai/project/annotations.py", line 80, in wrapper
task_instance = task_method(self)
^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/crewai/project/utils.py", line 7, in memoized_func
cache[key] = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/crewai/project/annotations.py", line 23, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/src/developercrew1/crew.py", line 60, in code_writing_task
return Task(
^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/pydantic/main.py", line 214, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/crewai/agents/agent_builder/base_agent.py", line 137, in process_model_config
return process_config(values, cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ghebner/crewAI/developercrew1/.venv/lib/python3.12/site-packages/crewai/utilities/config.py", line 18, in process_config
config = values.get("config", {})
^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 1.
Operating System
Ubuntu 20.04
Python Version
3.10
crewAI Version
0.86.0
crewAI Tools Version
0.25.8
Virtual Environment
Conda
Evidence
AttributeError: 'list' object has no attribute 'get'
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 1.
Possible Solution
none
Additional context
none
The text was updated successfully, but these errors were encountered: