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
20.82k stars 2.88k forks source link

[BUG] [WinError 2] The system cannot find the file specified Error #1282

Closed GhayourAli closed 1 week ago

GhayourAli commented 2 months ago

Description

I have created a new crewai project using crewai create crew <project_name> command. Without making any changes, I run the 'crewai run' command but it gives the following error. I am using windows machine. The system cannot find the file specified Error I don't have OpenAI key, therefore I tried using Claude 3.5 from AWS Bedrock. But receiving same error everytime.

Steps to Reproduce

  1. Create a new project using crewai create crew comment
  2. Run crewai run command. It gives error [WinError 2] The system cannot find the file specified Error
  3. Use Claude 3.5 from AWS Bedrock as LLM for Agent
  4. Still getting same error on crewai run

Expected behavior

crewai.run command should start the agents and complete the tasks.

Screenshots/Code snippets

image

Operating System

Windows 11

Python Version

3.10

crewAI Version

0.51.1

crewAI Tools Version

0.12.0

Virtual Environment

Venv

Evidence

image

Possible Solution

None

Additional context

None

theCyberTech commented 2 months ago

is that the full error message?

GhayourAli commented 2 months ago

@theCyberTech yes this is the full error message

BriCusack commented 2 months ago

did you cd into the project?

GhayourAli commented 2 months ago

@BriCusack Yes I am in the project directory

mike-riff commented 1 month ago

Same issue. Windows 11, Python 3.11.3:

cd riff-crewai python -m venv crewai-env .\crewai-env\Scripts\activate crewai create crew riff_crew_helloworld Crew riff_crew_helloworld created successfully! cd riff_crew_helloworld crewai install

image

BriCusack commented 1 month ago

Try using Poetry env not python venv: $ crewai create crew <project_name> $ cd project_name $ poetry install --no-root $ poetry shell note - in vscode run $ poetry env info and grab the Executable python path for the interpreter. Add as path. than: $ crewai run Hope this helps

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 week ago

This issue was closed because it has been stalled for 5 days with no activity.