Ollama: 'NoneType' object has no attribute 'supports_stop_words'

I have just installed crewai using anaconda python version 3.11 Windows
I was trying to run a basic template to ensure everything was set up correctly.

I will be using Ollama for my projects. Set up a project with llama3 but each time I try to run it (crewai run) I get the following error:

*Traceback (most recent call last):

  • File “”, line 198, in _run_module_as_main
  • File “”, line 88, in _run_code
  • File “D:\crewai\happen.venv\Scripts\run_crew.exe_main_.py”, line 10, in
  • File “D:\crewai\happen\src\happen\main.py”, line 28, in run
  • raise Exception(f"An error occurred while running the crew: {e}")
    *Exception: An error occurred while running the crew: ‘NoneType’ object has no attribute ‘supports_stop_words’
    *An error occurred while running the crew: Command ‘[‘uv’, ‘run’, ‘run_crew’]’ returned non-zero exit status 1.

I was using the older crewai libraries about a year ago using Ollama with some success but can’t seem to get past this point with the new modular setup

I run projects off the C: and D: drives and get the same results

Resolved the issue.
I just needed to import the ENV_VARS and use the BASE_URL
as per:
Error at running crewai using Ollama LLM - CrewAI Community Support - CrewAI