crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[BUG] Wrong file path separator for windows when resetting memory

Open andrewn3 opened this issue 1 year ago • 1 comments

Description

The file system separator is a forward slash rather than \ and so i believe prevents the files from being deleted on windows.

'C:\Users\xxxx\AppData\Local\CrewAI\xxxxxx**/**short_term\chroma.sqlite3

Steps to Reproduce

crewai reset-memories -a (on windows machine)

Expected behavior

locate and delete the files

Screenshots/Code snippets

(.venv) D:\Users\newla\crewai\financial_analyst1\video_analysis1\video_flow>crewai reset-memories -a An unexpected error occurred: An error occurred while resetting the short-term memory: An error occurred while resetting the short_term memory: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\xxxx\AppData\Local\CrewAI\xxxx/short_term\chroma.sqlite3

Operating System

Windows 11

Python Version

3.13

crewAI Version

0.83.0

crewAI Tools Version

0.14.0

Virtual Environment

Venv

Evidence

(.venv) D:\Users\newla\crewai\financial_analyst1\video_analysis1\video_flow>crewai reset-memories -a An unexpected error occurred: An error occurred while resetting the short-term memory: An error occurred while resetting the short_term memory: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\xxxx\AppData\Local\CrewAI\xxxx**/**short_term\chroma.sqlite3

It's not being locked by any other process, so think it's this slash.

Possible Solution

make sure the path is windows and linux compatible so it uses / or \ appropriately.

Additional context

I can delete the files manually.

andrewn3 avatar Dec 03 '24 19:12 andrewn3

I am getting the same error even though I cannot find any file or directory C:\Users\xxxx\AppData\Local\CrewAI

tarvindersi avatar Dec 24 '24 08:12 tarvindersi

I am getting the same error even though I cannot find any file or directory C:\Users\xxxx\AppData\Local\CrewAI

So do i

mikailcetinkaya avatar Jan 09 '25 12:01 mikailcetinkaya

Same for me

iam1492 avatar Feb 05 '25 21:02 iam1492

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 Mar 08 '25 12:03 github-actions[bot]

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

github-actions[bot] avatar Mar 13 '25 12:03 github-actions[bot]