crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
19.38k stars 2.68k forks source link

ModuleNotFoundError: No module named 'crewai' #959

Closed michaelcutajar1995 closed 2 months ago

michaelcutajar1995 commented 2 months ago

Used Poetry, updated the versions, checked through all the tasks that were recommended from previous people that his bug, yet still nothing.

Screenshot 2024-07-17 at 23 30 12
theCyberTech commented 2 months ago

How are you running your Crew?

michaelcutajar1995 commented 2 months ago

Thanks for your response, I'm running my CrewAI setup as follows:

  1. Execution Method: I use Poetry to manage dependencies and run my script with poetry run python main.py.
  2. Virtual Environment: I have created a virtual environment using Poetry, which is specified in the pyproject.toml file; 3.11.7
  3. Deployment Environment: Currently, I'm running everything locally on my machine.
  4. Dependency Management: Dependencies are managed through Poetry, and all versions are specified in pyproject.toml

[tool.poetry.dependencies] python = ">=3.10,<3.12" crewai = "0.36.1" langchain-core = "0.2.20" langchain-community = "0.2.7" langsmith = "0.1.88" langchain-openai = "0.1.17" python-dotenv = "^1.0.1"

  1. Configuration and Setup: Environment variables are set using a .env file and loaded with python-dotenv.

Please let me know if you need more specific details on any of these points.

USTAADCOM commented 2 months ago

Hi @michaelcutajar1995 do you found any solution? Because I am facing the issue and I perfectly install crewai package but it still showing not found crewai error.

michaelcutajar1995 commented 2 months ago

Nothing for the moment, waiting for the crewai guys. How are you running?

On Fri, Jul 19, 2024 at 10:09 AM Aamir Sohail @.***> wrote:

Hi @michaelcutajar1995 https://github.com/michaelcutajar1995 do you found any solution? Because I am facing the issue and I perfectly install crewai package but it still showing not found crewai error.

— Reply to this email directly, view it on GitHub https://github.com/crewAIInc/crewAI/issues/959#issuecomment-2238607254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZRYJXV7TD3YJ35IA4H5KR3ZNDCSTAVCNFSM6AAAAABLBNW2ZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZYGYYDOMRVGQ . You are receiving this because you were mentioned.Message ID: @.***>

alphaveneno commented 2 months ago

Something doesn't look right.

It does not appear you are actually in the poetry virtual environment, unless it is called 'running'

at the terminal: poetry shell

if the name of your project is "markdown-validation-crew", prompt should now look something like this: (markdown-validation-crew-py3.11) ra@debian:~/Documents/webCourses/TDD/crew_ai/crew_ai4/crew-ai-local-llm-main/crewai-simple-example$

at the terminal, now you can enter: poetry run python main.py

michaelcutajar1995 commented 2 months ago

Worked