Running the Crew
error: failed to remove file C:\Users\AJIKA ANGELO\Desktop\resume-optimization-crew-main\.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.
I have been trying to use the latest crewai version but has been failing due to some encoding issues with litellm, even tried downgrading litellm and still failed. Tried v0.117.0 still failed. Now when i used v0.114.0, the error changed to one above. I will be grateful for any help. I am using windows OS
Very frustrating dealing with these issues. I got that error when I ran “crewai install” but you stated you got it running the crew (i.e., crewai run).
This error then causes other package dependency issues so if you run crewai install again you get different error. However, if you run “uv tool install crewai” again you’ll see that it adds some packages that went bad on the original error.
However, if you run crewai install once again, you end up with same error, and you just go on an endless repeat cycle.
The workaround I found was to use “uv sync” instead of “crewai install”. That takes care of all the package dependencies too and then my application runs without problems.
That is not fix to problem but a good workaround at least for now.
I suspect the issue has something to do with the uv command causing the problem but I don’t know enough to dig into it.
I agree. Getting CrewAI running on you environment can take time as every environment is different. It took me a while… However.. Once you get it running … it is solid as a rock.. Keep at it
I had similar challenges when I started and I used Docker to help me as I wanted a setup that worked on both Windows and Mac.
Great job at sticking at it and not giving up!!