# Getting error during training a model

**URL:** <https://community.crewai.com/t/getting-error-during-training-a-model/4738>\
**Category:** CrewAI Community Support\
**Tags:** tools\_issues\
**Created:** [March 16, 2025, 8:19pm UTC](https://community.crewai.com/t/getting-error-during-training-a-model/4738 "2025-03-16T20:19:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tammy\_winslow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tammy_winslow/32/603_2.png) [@Tammy\_winslow](https://community.crewai.com/u/Tammy_winslow)\
**Post date:** [March 16, 2025, 8:19pm UTC](https://community.crewai.com/t/getting-error-during-training-a-model/4738/1 "2025-03-16T20:19:42Z")

</div>

Can someone support here?  
I am using local ollama model in CrewAi. When i am trying to train the model running into following error:

```auto
 File "/demo/.venv/lib/python3.12/site-packages/crewai/crew.py", line 548, in train
    result = TaskEvaluator(agent).evaluate_training_data(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/evaluators/task_evaluator.py", line 143, in evaluate_training_data
    pydantic_result = converter.to_pydantic()
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/converter.py", line 66, in to_pydantic
    return self.to_pydantic(current_attempt + 1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/converter.py", line 66, in to_pydantic
    return self.to_pydantic(current_attempt + 1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/converter.py", line 67, in to_pydantic
    raise ConverterError(
crewai.utilities.converter.ConverterError: Failed to convert text into a Pydantic model due to error: 'NoneType' object has no attribute 'function_calling_llm'

 File "/demo/src/demo/main.py", line 43, in train
    raise Exception(f"An error occurred while training the crew: {e}")
Exception: An error occurred while training the crew: Failed to convert text into a Pydantic model due to error: 'NoneType' object has no attribute 'function_calling_llm'
An error occurred while training the crew: Command '['uv', 'run', 'train', '1', 'trained.pkl']' returned non-zero exit status 1.

```

I have tried to reinstall crewai but getting same issue.
