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

[BUG] Can't run a crew downloaded from Crew Studio #1867

Open
glenwrhodes opened this issue Jan 8, 2025 · 0 comments
Open

[BUG] Can't run a crew downloaded from Crew Studio #1867

glenwrhodes opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@glenwrhodes
Copy link

Description

This is a recent issue that just started happening. When I download a crew from crew studio, and then try to run the project, it fails with this error:

error: failed to remove file C:\repos\CrewNewsMaker\story_discovery\.venv\Lib\site-packages\../../Scripts/crewai.exe: The process cannot access the file because it is being used by another process. (os error 32)
An error occurred while running the crew: Command '['uv', 'sync']' returned non-zero exit status 2.

No matter what I do, I can't get the crew to run.

Steps to Reproduce

  1. Download a crew generated by Crew Studio
  2. Unzip it into a folder
  3. Open that in VS Code (or Cursor)
  4. Make a new virtual environment, and activate it.
  5. install poetry
  6. 'poetry install'
  7. Update variables in main.py
  8. 'crewai run'

Expected behavior

Expected that the crew would run successfully.

Screenshots/Code snippets

None

Operating System

Ubuntu 20.04

Python Version

3.10

crewAI Version

crewai version: 0.86.0

crewAI Tools Version

crewai[tools]>=0.86.0,<1.0.0

Virtual Environment

Venv

Evidence

(.venv) PS C:\repos\CrewNewsMaker\story_discovery> crewai run    
C:\repos\CrewNewsMaker\story_discovery\.venv\lib\site-packages\pydantic\_internal\_config.py:345: UserWarning: Valid config keys have changed in V2:
* 'fields' has been removed
  warnings.warn(message, UserWarning)
Running the Crew
error: failed to remove file `C:\repos\CrewNewsMaker\story_discovery\.venv\Lib\site-packages\../../Scripts/crewai.exe`: The process cannot access the file because it is being used by another process. (os error 32)
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 2.

Possible Solution

None

Additional context

This also happens with my previous / current crews as well. Not just ones downloaded from the CrewAI Studio.

@glenwrhodes glenwrhodes added the bug Something isn't working label Jan 8, 2025
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

1 participant