Skip to content

[BUG] #2524

Closed as not planned
Closed as not planned
[BUG]#2524
@Juanchoalric

Description

@Juanchoalric

Description

While Running "crewai install" I'm getting this error:

No pyproject.toml found in current directory or any parent directory
An error occurred while running the crew: Command '['uv', 'sync']' returned non-zero exit status 2.

My python environment version is Python 3.11.7

My pyproject.toml is

[project]
name = "knifeqa"
version = "0.1.0"
description = "knifeqa using crewAI"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.10,<3.13"
dependencies = [
"crewai[tools]>=0.108.0,<1.0.0",
"onnxruntime==1.15.0",
"pyarrow==17.0.0",
]

[project.scripts]
knifeqa = "knifeqa.main:run"
run_crew = "knifeqa.main:run"
train = "knifeqa.main:train"
replay = "knifeqa.main:replay"
test = "knifeqa.main:test"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.crewai]
type = "crew"

Steps to Reproduce

  1. python -m venv .venv
  2. !pip install crewai uv langtrace-python-sdk
  3. crewai create crew "name of the project"
  4. crewai install --> this is when the error occurred
  5. Couldnt also run crewai run because of the install

Expected behavior

Intall all of crewai needed libraries and then run "run" to kick of the crewai test sample

Screenshots/Code snippets

pyproject.toml

[project]
name = "knifeqa"
version = "0.1.0"
description = "knifeqa using crewAI"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.10,<3.13"
dependencies = [
"crewai[tools]>=0.108.0,<1.0.0",
"onnxruntime==1.15.0",
"pyarrow==17.0.0",
]

[project.scripts]
knifeqa = "knifeqa.main:run"
run_crew = "knifeqa.main:run"
train = "knifeqa.main:train"
replay = "knifeqa.main:replay"
test = "knifeqa.main:test"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.crewai]
type = "crew"

Image

Operating System

Windows 11

Python Version

3.11

crewAI Version

0.80.0

crewAI Tools Version

=0.108.0,<1.0.0"

Virtual Environment

Venv

Evidence

Image

Possible Solution

I dont know

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions