ModuleNotFoundError: No module named 'crewai'
Used Poetry, updated the versions, checked through all the tasks that were recommended from previous people that his bug, yet still nothing.
How are you running your Crew?
Thanks for your response, I'm running my CrewAI setup as follows:
- Execution Method: I use
Poetryto manage dependencies and run my script withpoetry run python main.py. - Virtual Environment: I have created a virtual environment using
Poetry, which is specified in thepyproject.tomlfile; 3.11.7 - Deployment Environment: Currently, I'm running everything locally on my machine.
- Dependency Management: Dependencies are managed through
Poetry, and all versions are specified inpyproject.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"
- Configuration and Setup: Environment variables are set using a
.envfile and loaded withpython-dotenv.
Please let me know if you need more specific details on any of these points.
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.
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: @.***>
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
Worked