crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[BUG]

Open Juanchoalric opened this issue 9 months ago • 2 comments

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 = "[email protected]" }] 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 = "[email protected]" }] 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

Juanchoalric avatar Apr 04 '25 14:04 Juanchoalric

Hi @Juanchoalric, I tried to reproduce this particular error, but couldn't do so. Worked completely fine for me.

This is basically because of the pyproject.toml file not being able to find in the current directory. Can you share the structure of files and folder which are being created after running crewai create crew "name of the project".

Typicall crewai create crew "name of the project" should create the pyproject.toml file by default.

Vidit-Ostwal avatar Apr 08 '25 14:04 Vidit-Ostwal

@Juanchoalric crewai create crew knifeqa creates a folder knifeqa, of which youre supposed to run everything else AFTER cd knifeqa. At least, that worked for me. I hope the same for you.

Image

LawrenceLCTY avatar Apr 23 '25 08:04 LawrenceLCTY

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 May 23 '25 12:05 github-actions[bot]

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

github-actions[bot] avatar May 28 '25 12:05 github-actions[bot]