Skip to content

TypeError: cannot pickle '_thread.RLock' object #9

Description

@achun321

In gpt_model.py, the LlmReasoner() class tries to save the vector store by dumping it into a tmp file as so on lines 78-79:
with open(pkl_path, "wb") as f: pickle.dump(vectorstore, f)

However, this leads to TypeError: cannot pickle '_thread.RLock' object. It seems that others have experienced this problem with newer versions of Langchain beyond version 0.0.350 but even downgrading to 0.0.0350 leads to import errors. Has anyone else encountered this / been able to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions