-
Notifications
You must be signed in to change notification settings - Fork 396
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
I was trying out the example given at https://github.com/CaviraOSS/OpenMemory/blob/main/docs/getting-started.md for the python but not able to get it work.
Steps to Reproduce
- create a project with
uv init. - install openmemory with
uv add openmemory-py. - paste the given example in main.py
- run with
uv run main.py
Component
Backend (API/Server)
Environment
- OS [Linux/Fedora]
- Python 3.12.9
- Openmemory 1.3.2
Relevant log output
uv run main.py
Traceback (most recent call last):
File "/home/iamneo/personal-projects/openmem/main.py", line 3, in <module>
from openmemory.client import Memory
File "/home/iamneo/personal-projects/openmem/.venv/lib/python3.12/site-packages/openmemory/__init__.py", line 3, in <module>
from . import connectors as sources
File "/home/iamneo/personal-projects/openmem/.venv/lib/python3.12/site-packages/openmemory/connectors/__init__.py", line 5, in <module>
from .langchain import OpenMemoryChatMessageHistory, OpenMemoryRetriever
File "/home/iamneo/personal-projects/openmem/.venv/lib/python3.12/site-packages/openmemory/connectors/langchain.py", line 14, in <module>
class OpenMemoryChatMessageHistory(BaseChatMessageHistory):
File "/home/iamneo/personal-projects/openmem/.venv/lib/python3.12/site-packages/openmemory/connectors/langchain.py", line 21, in OpenMemoryChatMessageHistory
def messages(self) -> List[BaseMessage]:
^^^^^^^^^^^
NameError: name 'BaseMessage' is not definedCode of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working