Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krishnaglodha opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@krishnaglodha
Copy link

Description

After following standard procedure of crewai create crew <crew_name>, I'd expect it to run right away for default agents,tasks, crew setup without making any changes.

Steps to Reproduce

  1. crewai create crew gis_news
  2. python src/gis_news/main.py

Expected behavior

It is expected to run the tasks and get the results , without having to make any changes to the code.

Screenshots/Code snippets

Screenshot 2025-01-10 at 8 56 51 AM

Operating System

Other (specify in additional context)

Python Version

3.11

crewAI Version

0.95.0

crewAI Tools Version

latest

Virtual Environment

Venv

Evidence

(env) (env) krishnaglodha@192 crewww % python gis_news/src/gis_news/main.py 
Traceback (most recent call last):
  File "/Users/krishnaglodha/Desktop/all/trash/crewww/gis_news/src/gis_news/main.py", line 5, in <module>
    from gis_news.crew import GisNews
ModuleNotFoundError: No module named 'gis_news'

Possible Solution

Fixing path of importing crew Class in main.py file

Additional context

MacOS Sequoia

@krishnaglodha krishnaglodha added the bug Something isn't working label Jan 10, 2025
@githubnewsettler
Copy link

try the command:

crewai install

then

crewai run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants