Skip to content

cannot pickle '_thread.lock' object #180

@lauerarnaud

Description

@lauerarnaud

Hi team,

when running the following cells, I am getting this error.

# Store initial memories to demonstrate retrieval
memory_agent.tool.mem0_memory(
    action="store", content=f"The user's name is {USER_ID}.", user_id=USER_ID
)
memory_agent.tool.mem0_memory(
    action="store", 
    content="I like to drink tea more than coffee.", 
    user_id=USER_ID
)

╭─────────────────────────────────────────── ❌ Memory Operation Error ───────────────────────────────────────────╮
│ cannot pickle '_thread.lock' object │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─────────────────────────────────────────── ❌ Memory Operation Error ───────────────────────────────────────────╮
│ cannot pickle '_thread.lock' object │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Opensearch serverless is deployed successfully, everything look fine. I am getting this error on SageMaker AI Studio. Note the same code in the notebook is working fine with Mem0 infrastructure but not opensearch serverless. Is it an issue with WSV4SignerAuth, RequestsHttpConnection that might cause pickle issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions