cannot pickle '_thread.lock' object

Aperta
#180 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
aws, python
Ambito
ai, backend

Direzione di ricerca

Start with the notebook cells that call memory_agent.tool.mem0_memory and trace how the OpenSearch Serverless connection is created and used in SageMaker AI Studio. Compare that path with the working Mem0 infrastructure setup, focusing on the reported WSV4SignerAuth and RequestsHttpConnection pickle concern. Done means storing both example memories succeeds without the pickle error; the issue names no files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Python
Stelle
897
Fork
450
Merge medio
1g 9h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di strands-agents/samples

Tutte le issue di strands-agents/samples

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.