Hello,
I’m encountering an issue when trying to run the crewai flow kickoff
, 'crewai install ', ‘crewai run’ command for the first time in my project. The command fails with the following error:
(.venv) PS C:\trieuph5\workspace\fti-crewai\fti_flow_agent> crewai flow kickoff
Running the Flow
warning: `VIRTUAL_ENV=C:\trieuph5\workspace\fti-crewai\.venv` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
⠙ fti-flow-agent==0.1.0 error: Failed to fetch: `https://pypi.org/simple/crewai/`
Caused by: Request failed after 3 retries
Caused by: error sending request for url (https://pypi.org/simple/crewai/)
Caused by: operation timed out
An error occurred while running the flow: Command '['uv', 'run', 'kickoff']' returned non-zero exit status 2.
Steps I’ve Taken:
- I’ve ensured that I’m working within the
.venv
virtual environment. - Tried running the command with and without the
--active
flag as suggested by the warning.
Problem Breakdown:
- Warning:
VIRTUAL_ENV
does not match the project environment path, which I understand may be causing issues with environment detection. - Main Issue: The system is unable to fetch data from the PyPI repository (
https://pypi.org/simple/crewai/
), resulting in a timeout after three retries.
Environment Details:
- Python version: 3.11
crewai
version: 0.1.0- Running inside a virtual environment (
.venv
) - Network connection via proxy.
Could anyone help me understand why this is happening and suggest potential solutions? I’ve already tried logging in to Docker and confirming network settings but still facing the same issue.
Thank you in advance for your help!