Summary
The basic-memory import memory-json command fails with a KeyError when attempting to import a memory.json file, indicating the import process expects a 'name' key that doesn't exist in the data structure.
Environment
- Basic Memory version: 0.14.2
- Installation method: Homebrew
- Operating System: macOS
- Python version: 3.13
Steps to Reproduce
- Attempt to import a memory.json file using the CLI command:
basic-memory import memory-json path/to/memory.json
Expected Behavior
The memory.json file should be imported successfully without errors.
Actual Behavior
The import fails with the following error:
Importing from [PATH_REDACTED]/memory.json...writing to [PATH_REDACTED]
Failed to import memory.json
Traceback (most recent call last):
File "/opt/homebrew/Cellar/basic-memory/0.14.2/libexec/tools/basic-memory/lib/python3.13/site-packages/basic_memory/importers/memory_json_importer.py", line 44, in import_data
entities[data["name"]] = data
~~~~^^^^^^^^
KeyError: 'name'
Error during import: 'NoneType' object has no attribute 'success'
Additional Context
This issue was written with assistance from Claude (Anthropic) to help structure the bug report and redact private information.
Summary
The
basic-memory import memory-jsoncommand fails with a KeyError when attempting to import a memory.json file, indicating the import process expects a 'name' key that doesn't exist in the data structure.Environment
Steps to Reproduce
Expected Behavior
The memory.json file should be imported successfully without errors.
Actual Behavior
The import fails with the following error:
Additional Context
memory_json_importer.pyat line 44This issue was written with assistance from Claude (Anthropic) to help structure the bug report and redact private information.