Skip to content

[BUG] ModuleNotFoundError: No module named '<crew_name>' when we run code #2348

Closed
@AnderMichael

Description

@AnderMichael

Description

After reviewing the official installation documentation for uv and CrewAI, setting up and running a new project is extremely complicated. Even after installing all dependencies and verifying the versions, I have been facing the same issue for a week. I am not sure if this is due to my environment or if it is an issue within the core of CrewAI or uv.

Steps to Reproduce

CrewAI Installation and Setup Guide

1. Verify Python Version

Run the following command in your terminal to check your Python version:

python3 --version

Expected output:

Python 3.12.7

2. Install uv

Run the following command in PowerShell to install uv:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

3. Install CrewAI

Run the following command to install CrewAI:

uv tool install crewai

Expected output:

Resolved 148 packages in 2.91s
Installed 148 packages in 9.08s
...
Installed 1 executable: crewai.exe

4. Verify CrewAI Installation

Run the following command to check if CrewAI is installed:

uv tool list

Expected output:

crewai v0.105.0
- crewai.exe

5. Create a New CrewAI Project

Run the following command to create a new project:

uv tool run crewai create crew <projectname>

Replace <projectname> with your desired project name.

6. Navigate to the Project Directory

Change into the newly created project directory:

cd <projectname>

7. Install Project Dependencies

Run the following command to install all required dependencies:

uv tool run crewai install

8. Run the Project

Start your CrewAI project by running:

uv tool run crewai run

Expected behavior

Execution of a basic CrewAI agent project with default settings, generating report.md.

Screenshots/Code snippets

Image

Image

Operating System

Windows 11

Python Version

3.12

crewAI Version

0.105.0

crewAI Tools Version

0.105.0

Virtual Environment

Venv

Evidence

Image

Possible Solution

Maybe some change something in pyproject.toml.

Additional context

NO

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions