You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 defined
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
uv init.uv add openmemory-py.uv run main.pyComponent
Backend (API/Server)
Environment
Relevant log output
Code of Conduct