Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run the app with crewai run command #1643

Open
thealokkr opened this issue Nov 24, 2024 · 8 comments
Open

Unable to run the app with crewai run command #1643

thealokkr opened this issue Nov 24, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@thealokkr
Copy link

Description

When the crewai run command is run it is throwing the following error is thrown

crewai run
Running the Crew
error: Distribution onnxruntime==1.20.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 2.

Steps to Reproduce

  1. Create conda environment with python=3.12
  2. Activate conda environment
  3. pip install crewai crewai-tools
  4. crewai create crew <project_name>
  5. cd <project_name>
  6. crewai run

It throws the error

Expected behavior

It should run the crew

Screenshots/Code snippets

Running the Crew
error: Distribution onnxruntime==1.20.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 2.

Operating System

Other (specify in additional context)

Python Version

3.12

crewAI Version

crewai==0.80.0

crewAI Tools Version

0.14.0

Virtual Environment

Conda

Evidence

Running the Crew
error: Distribution onnxruntime==1.20.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 2.

Possible Solution

None

Additional context

MacOS - Sequoia

@thealokkr thealokkr added the bug Something isn't working label Nov 24, 2024
@wickedbaba
Copy link

Hey, was facing the same issue. Found the resolution here - Crew AI Community

according to beijingrong, python 3.12 does not work, as any onnxruntime>=1.15.0 will report the wheel errors while chromadb requires onnxruntime>=1.14.1.

@thealokkr
Copy link
Author

I had already tried it but didn't work. It failed during the crewai install step with the following error
help: greenlet (v3.1.1) was included because poem (v0.1.0) depends on crewai[tools] (v0.86.0) which depends on crewai-tools (v0.17.0) which depends on embedchain (v0.1.125) which depends on
sqlalchemy (v2.0.36) which depends on greenlet
An error occurred while running the crew: Command '['uv', 'sync']' returned non-zero exit status 1.

@ghiahemanshu
Copy link

https://community.crewai.com/t/onnxruntime-doesnt-have-a-source-distribution-or-wheel-for-the-current-platform/1495/18

Follow this exact steps:

  • Use Python 3.11
  • Downgrade to crewai 0.8 version
  • pip install socksio # also required to create crew
  • Modify dependencies dependencies = [
    “crewai[tools]>=0.80.0,<1.0.0”,
    “onnxruntime==1.15.0”,
    “socksio>=1.0.0”,
    “pyarrow==17.0.0”,
    ]

These exact steps helped me fix the issue

@kitt1987
Copy link

This also works with the latest version.
crewAIInc/crewAI-tools#136 (comment)

@AI-Enthusiast
Copy link

several hours spent chasing this bug. A solid fix would be very welcome

@rhuanbarros
Copy link

I was just starting.... now I'm not...

@heitoralthmann
Copy link

heitoralthmann commented Jan 30, 2025

Here is a different path of investigation:

Try checking your pyproject.toml file for the [project.scripts] section and confirm that you have an entry for run_crew in there.

If you don't, make sure to add it:

run_crew = "<crew_name>.main:run"

Of course, replace <crew_name> with your Crew's name.

@rhuanbarros
Copy link

Hello, I just created a new project and tryed to run it.
I dont have the project anymore, but I was using a devcontainer with a clean envieroment.
I will not follow this thread anymore. thanks

Here is a different path of investigation:

Try checking your pyproject.toml file for the [project.scripts] section and confirm that you have an entry for run_crew in there.

If you don't, make sure to add it:

run_crew = "<crew_name>.main:run"

Of course, replace <crew_name> with your Crew's name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants