[BUG]
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
- python -m venv .venv
- !pip install crewai uv langtrace-python-sdk
- crewai create crew "name of the project"
- crewai install --> this is when the error occurred
- 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"
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
Possible Solution
I dont know
Additional context
None
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.
@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.
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.
This issue was closed because it has been stalled for 5 days with no activity.