Skip to content

Conversation

Nyakult
Copy link
Contributor

@Nyakult Nyakult commented Jul 21, 2025

Description

File "/Users/wuhao/PycharmProjects/MemOS/src/memos/memories/textual/tree_text_memory/organize/conflict.py", line 136, in _hard_update
time_a = datetime.fromisoformat(memory_a.metadata.updated_at)
ValueError: Invalid isoformat string: '2025-07-21T20:30:30.533432000+00:00'

python<3.11时会报错,替换为
from dateutil import parser

time_a = parser.isoparse(memory_a.metadata.updated_at)
time_b = parser.isoparse(memory_b.metadata.updated_at)
parser.isoparse() 支持所有 ISO 8601 格式,兼容性非常好。

Reviewer: @(reviewer)

Checklist:

  • I have performed a self-review of my own code | 我已自行检查了自己的代码
  • I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
  • I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
  • I have added necessary documentation (if applicable) | 我已添加必要的文档(如果适用)
  • I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
  • I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人

Nyakult added 30 commits July 9, 2025 11:38
@Nyakult Nyakult changed the title fix: date parse error fix: date parse error and fix memreader Jul 22, 2025
@fridayL fridayL merged commit b5daa0f into MemTensor:dev Jul 23, 2025
20 checks passed
tangg555 pushed a commit to tangg555/MemOS that referenced this pull request Jul 29, 2025
* fix n4j cypher query

* feat: add llm extra body

* feat: update memory extraction prompt and result parser

* fix: evaluation locomo search

* ci: fix format and update test

* feat: update result json parser

* feat: recursively cluster nodes to max_cluster_size

* fix: fix template

* feat: keep default min-group-size 3

* feat: keep default min-group-size 3

* feat: update doc mem reader

* test: fix test

* fix: date parse error when python<3.11

* fix: update dependencies

* fix: TextualMemoryItem pydantic error

* fix: TextualMemoryItem pydantic error

* fix: TextualMemoryItem pydantic error

* fix: TextualMemoryItem pydantic error

* fix: prompt example

* fix: robuster memory parser

---------

Co-authored-by: chunyu li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants