I have tried several times now to install and use crewai however I continue to get the same error:
Traceback (most recent call last):
File "/home/smc/.local/bin/crewai", line 5, in <module>
from crewai.cli.cli import crewai
File "/home/smc/.local/lib/python3.10/site-packages/crewai/cli/cli.py", line 21, in <module>
from .run_crew import run_crew
File "/home/smc/.local/lib/python3.10/site-packages/crewai/cli/run_crew.py", line 4, in <module>
import tomllib
ModuleNotFoundError: No module named 'tomllib'
I have tried using Python versions 3.12, 3.11.8, and older. Can anyone help me get started?
I am using a conda environment with Python version 3.11.10. I am following the crewAI Get Started docs and have the following crewai versions:
crewai==0.86.0
crewai-tools==0.17.0
I finished the installation step and am following the QuickStart. When I try to run the command crewai create crew latest-ai-development I get the error I have listed above. Is there a step I am missing?
Yes, here is a full rundown of what I’ve done. Thank you for the assistance.
Create a conda environment & checked the python version: Python 3.11.10
Installed CrewAI per the installation steps listed in the docs, run pip freeze | grep crewai and received:
crewai==0.86.0
crewai-tools==0.17.0
At this point there are no errors, until I attempt the Quickstart steps and try to built my first project with the command crewai create crew latest-ai-development
I then receive this output:
Traceback (most recent call last):
File "/home/smc/.local/bin/crewai", line 5, in <module>
from crewai.cli.cli import crewai
File "/home/smc/.local/lib/python3.10/site-packages/crewai/cli/cli.py", line 21, in <module>
from .run_crew import run_crew
File "/home/smc/.local/lib/python3.10/site-packages/crewai/cli/run_crew.py", line 4, in <module>
import tomllib
ModuleNotFoundError: No module named 'tomllib'Traceback (most recent call last):
File "/home/smc/.local/bin/crewai", line 5, in <module>
from crewai.cli.cli import crewai
File "/home/smc/.local/lib/python3.10/site-packages/crewai/cli/cli.py", line 21, in <module>
from .run_crew import run_crew
File "/home/smc/.local/lib/python3.10/site-packages/crewai/cli/run_crew.py", line 4, in <module>
import tomllib
ModuleNotFoundError: No module named 'tomllib'