crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

ModuleNotFoundError: No module named 'crewai'

Open michaelcutajar1995 opened this issue 2 years ago • 6 comments

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

michaelcutajar1995 avatar Jul 17 '24 21:07 michaelcutajar1995

How are you running your Crew?

theCyberTech avatar Jul 18 '24 01:07 theCyberTech

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.

michaelcutajar1995 avatar Jul 18 '24 08:07 michaelcutajar1995

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.

USTAADCOM avatar Jul 19 '24 08:07 USTAADCOM

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: @.***>

michaelcutajar1995 avatar Jul 19 '24 08:07 michaelcutajar1995

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

alphaveneno avatar Jul 21 '24 00:07 alphaveneno

Worked

michaelcutajar1995 avatar Jul 21 '24 10:07 michaelcutajar1995