Skip to content

AttributeError: '_GeneratorContextManager' object has no attribute 'get_next_version' #1696

Closed Answered by vbarda
smanna123 asked this question in Q&A
Discussion options

You must be logged in to vote

@smanna123 it looks like you're using SqliteSaver.from_conn_string() as a checkpointer, but it actually is a context manager. the right way to use it is

with SqliteSaver.from_conn_string(...) as checkpointer:
    app = graph.compile(checkpointer=checkpointer)
    app.invoke(...)

hope this helps!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TonySimonovsky
Comment options

Answer selected by nfcampos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants