crewAI
crewAI copied to clipboard
[BUG] AttributeError: 'list' object has no attribute 'get'
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:
- 'fields' has been removed 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:
- 'fields' has been removed
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