Issues with crewai flow kickoff Command: Timeout Error and Virtual Environment Mismatch

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!

Hello,

I’m experiencing the same issue and am waiting for a solution.

When I run crewai install or crewai flow kickoff, I get the following error (important to note the specific package changes after every run):

Resolved 223 packages in 5ms
  × Failed to download `asyncio==3.4.3`
  ├─▶ Failed to fetch: `https://files.pythonhosted.org/packages/22/74/07679c5b9f98a7cb0fc147b1ef1cc1853bc07a4eb9cb5731e24732c5f773/asyncio-3.4.3-py3-none-any.whl`
  ├─▶ Request failed after 3 retries
  ├─▶ error sending request for url (https://files.pythonhosted.org/packages/22/74/07679c5b9f98a7cb0fc147b1ef1cc1853bc07a4eb9cb5731e24732c5f773/asyncio-3.4.3-py3-none-any.whl)
  ├─▶ client error (Connect)
  ╰─▶ An existing connection was forcibly closed by the remote host. (os error 10054)
  help: `asyncio` (v3.4.3) was included because `write-a-book-with-flows` (v0.1.0) depends on `asyncio`

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.
  • Main Issue: The system is unable to fetch install the necessary packages.

Environment Details:

  • Python version: 3.12.6
  • crewai version: 0.75.1
  • Running inside a virtual environment (.venv)
  • Network connection via proxy.