crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

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

Open GhayourAli opened this issue 1 year ago • 6 comments

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

GhayourAli avatar Sep 03 '24 06:09 GhayourAli

is that the full error message?

theCyberTech avatar Sep 03 '24 13:09 theCyberTech

@theCyberTech yes this is the full error message

GhayourAli avatar Sep 03 '24 13:09 GhayourAli

did you cd into the project?

BriCusack avatar Sep 04 '24 07:09 BriCusack

@BriCusack Yes I am in the project directory

GhayourAli avatar Sep 04 '24 07:09 GhayourAli

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

mike-riff avatar Sep 10 '24 11:09 mike-riff

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

BriCusack avatar Sep 24 '24 07:09 BriCusack

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] avatar Oct 24 '24 12:10 github-actions[bot]

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

github-actions[bot] avatar Oct 29 '24 12:10 github-actions[bot]

Make sure to have the following defined in your windows environment variables PATH: C:\Users\<your pc name>\.pyenv\pyenv-win\versions\<python version>\Scripts\

and the path should exist too

sniperadmin avatar Apr 17 '25 11:04 sniperadmin