{"record":{"id":"1c27711cd06bdcf5","repo":"crewAIInc/crewAI","slug":"the-reset-memories-command-requires-the-full-cre","errorCode":null,"errorMessage":"The 'reset-memories' command requires the full crewai package.\nInstall it with: pip install crewai","messagePattern":"The 'reset-memories' command requires the full crewai package\\.\nInstall it with: pip install crewai","errorType":"console","errorClass":"SystemExit","httpStatus":null,"severity":"error","filePath":"lib/cli/src/crewai_cli/reset_memories_command.py","lineNumber":29,"sourceCode":"\ndef reset_memories_command(\n    memory: bool,\n    knowledge: bool,\n    agent_knowledge: bool,\n    kickoff_outputs: bool,\n    all: bool,\n) -> None:\n    try:\n        from crewai.utilities.reset_memories import (\n            reset_memories_command as _reset,\n        )\n    except ImportError:\n        click.secho(\n            \"The 'reset-memories' command requires the full crewai package.\\n\"\n            \"Install it with: pip install crewai\",\n            fg=\"red\",\n        )\n        raise SystemExit(1) from None\n\n    _reset(memory, knowledge, agent_knowledge, kickoff_outputs, all)\n","sourceCodeStart":11,"sourceCodeEnd":32,"githubUrl":"https://github.com/crewAIInc/crewAI/blob/754d7323beb2fd042e33444a115ea2d5a47193f0/lib/cli/src/crewai_cli/reset_memories_command.py#L11-L32","documentation":"Raised by `crewai reset-memories` when the optional import `from crewai.utilities.reset_memories import reset_memories_command` fails. The CLI package (crewai-cli) is deliberately installable without the heavy `crewai` core, but resetting memories requires the core package's storage layer. The handler tells the user to install crewai and exits 1 via `raise SystemExit(1) from None` (the ImportError itself is suppressed as uninteresting).","triggerScenarios":"Running `crewai reset-memories ...` in an environment where only `crewai-cli` (or `crewai[cli]` without core) is installed; a venv where crewai was uninstalled but the CLI shim remains; dependency resolver downgrades that removed crewai.","commonSituations":"Lightweight CI containers that install just the CLI for scaffolding; `pipx install crewai` getting only the CLI distribution; a broken venv after partial upgrades.","solutions":["Install the full package in the active environment: `pip install crewai` (or `uv add crewai` / `uv sync` in the project).","Confirm you are in the correct virtualenv: `pip show crewai` must report a version.","Reinstall cleanly if it still fails: `pip install --force-reinstall crewai`."],"exampleFix":"# before\n$ crewai reset-memories --all\n# The 'reset-memories' command requires the full crewai package.\n\n# after\n$ pip install crewai\n$ crewai reset-memories --all","handlingStrategy":"fallback","validationCode":"import importlib.util\n\nif importlib.util.find_spec(\"crewai.utilities.reset_memories\") is None:\n    raise SystemExit(\"full crewai package missing; run: pip install crewai\")\n\nfrom crewai.utilities.reset_memories import reset_memories_command  # noqa","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Install the full `crewai` package in every environment that runs memory commands, not just crewai-cli.","Add `python -c \"import crewai\"` to CI preflight for projects that reset memories between runs.","Pin crewai in your lockfile so partial uninstalls can't silently remove core."],"tags":["installation","import-error","memory","cli","optional-dependency"],"backgroundTag":null,"analyzedSha":"754d7323beb2fd042e33444a115ea2d5a47193f0","analyzedAt":"2026-08-15T04:06:56.746Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}