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 5 replies

Comment options

You must be logged in to vote
3 replies
@TonySimonovsky
Comment options

@vbarda
Comment options

@sameeragorijelli
Comment options

Answer selected by nfcampos
Comment options

You must be logged in to vote
2 replies
@vbarda
Comment options

@Saifullah3711
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants