# Short course "AI Agents in LangGraph" needs to be fixed in Lesson 4

**URL:** <https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269>\
**Category:** AI Agents in LangGraph\
**Tags:** recommendation\
**Created:** [January 3, 2025, 12:36pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269 "2025-01-03T12:36:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenys](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jenys](https://community.deeplearning.ai/u/Jenys)\
**Post date:** [January 3, 2025, 12:36pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/1 "2025-01-03T12:36:12Z")

</div>

Hi!

Lesson 4: Persistence and Streaming in short course: AI Agents in LangGraph

is broken in several places. Please take care to fix it.

1st ::  
from langgraph.checkpoint.sqlite import SqliteSaver

memory = SqliteSaver.from\_conn\_string(“:memory:”)

results in ModuleNotFoundError: No module named ‘langgraph.checkpoint.sqlite’

I updated my notebook in order to be able to run it successfully according to the feedback here:

> <https://github.com/langchain-ai/langgraph/issues/1274>
>
> \### Checked other resources
> 
> \- \[X\] I added a very descriptive title to this issu…e.
> \- \[X\] I searched the \[LangGraph\](https://langchain-ai.github.io/langgraph/)/LangChain documentation with the integrated search.
> \- \[X\] I used the GitHub search to find a similar question and didn't find it.
> \- \[X\] I am sure that this is a bug in LangGraph/LangChain rather than my code.
> \- \[X\] I am sure this is better as an issue \[rather than a GitHub discussion\](https://github.com/langchain-ai/langgraph/discussions/new/choose), since this is a LangGraph bug and not a design question.
> 
> \### Example Code
> 
> \`\`\`python
> from langgraph.checkpoint.sqlite import SqliteSaver
> 
> memory = SqliteSaver.from\_conn\_string(":memory:")
> \`\`\`
> 
> 
> \### Error Message and Stack Trace (if applicable)
> 
> \`\`\`shell
> ModuleNotFoundError: No module named 'langgraph.checkpoint.sqlite'
> \`\`\`
> 
> 
> \### Description
> 
> i am trying to follow the quickstart guide on langraph and using langgraph v0.2.0. The statement worked for lower version of langgraph but it's not working for the latest version
> 
> \### System Info
> 
> pip install langgraph==0.2.2
> 
> The statement worked for pip install langgraph==0.1.17 but not for \>=0.2.0

> [@Lesson 4: Persistence and Streaming -\> AttributeError: '\_GeneratorContextManager' object has no attribute 'get\_next\_version'](https://community.deeplearning.ai/t/lesson-4-persistence-and-streaming-attributeerror-generatorcontextmanager-object-has-no-attribute-get-next-version/697391):
>
> Hi everyone! I have the error bellow after that I execute this code: for event in abot.graph.stream({“messages”: messages}, thread): for v in event.values(): print(v[‘messages’]) → 663 self.checkpointer\_get\_next\_version = checkpointer.get\_next\_version 664 self.checkpointer\_put\_writes = checkpointer.put\_writes 665 else: AttributeError: ‘\_GeneratorContextManager’ object has no attribute ‘get\_next\_version’ Someone with the same problem? Thanks!

2nd :: Streaming tokens is not working. I could fix the code to execute but it never returns the tokens but only this part:  
Calling: {‘name’: ‘tavily\_search\_results\_json’, ‘args’: {‘query’: ‘current weather in Sofia’}, ‘id’: ‘call\_uLoGSgAOu2xBmduJAnHPyQCq’, ‘type’: ‘tool\_call’}  
Back to the model!

Please update the code to show how to get the actual tokens or update the lesson.

According to my debugging with the help of gpt-o1:  
Based on your debug output, your model is sending _only a single chunk_ with either an empty content or the full final content—i.e. **no incremental tokens** at all.

Thanks!  
Jenya

---

<div class="post-metadata">

**Author:** ![Sangy](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/sangy/32/104917_2.png) [@Sangy](https://community.deeplearning.ai/u/Sangy)\
**Post date:** [February 2, 2025, 8:40pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/2 "2025-02-02T20:40:53Z")

</div>

here’s a link to [github repo](https://github.com/SangeetAgarwal/AI-Agents-LangGraph) where I have fixed this issue. Take a look at the `requirements.txt`.

---

<div class="post-metadata">

**Author:** ![Jenys](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jenys](https://community.deeplearning.ai/u/Jenys)\
**Post date:** [February 2, 2025, 9:24pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/3 "2025-02-02T21:24:28Z")

</div>

@Sangy , that’s nice but it would be even better if the DeepLearning.AI people fix the Notebooks for everyone who attempts to take the course and is not aware that there are issues.

---

<div class="post-metadata">

**Author:** ![Sangy](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/sangy/32/104917_2.png) [@Sangy](https://community.deeplearning.ai/u/Sangy)\
**Post date:** [February 2, 2025, 10:06pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/4 "2025-02-02T22:06:53Z")

</div>

@Jenys absolutely, I have requested them to let us know the package versions [here](https://community.deeplearning.ai/t/modulenotfounderror-langgraph-checkpoint-aiosqlite/644755/7)

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [February 3, 2025, 9:20pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/5 "2025-02-03T21:20:28Z")

</div>

This thread would be far more noticeable if it was placed in the forum area for the course it is discussing.

The “Learning Platform Feedback” topic is a bit of a ghost town.

---

<div class="post-metadata">

**Author:** ![Jenys](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jenys](https://community.deeplearning.ai/u/Jenys)\
**Post date:** [February 3, 2025, 9:54pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/6 "2025-02-03T21:54:50Z")

</div>

@TMosh ,The whole community platform structure is a mess for me. It could have been done better. Can you please share a link to the place you suggest. Thanks!

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [February 3, 2025, 10:44pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/7 "2025-02-03T22:44:00Z")

</div>

For reference, see the “Short Courses” link in the left-side menu. There, each course has a dedicated forum area.

You can move this thread by using the “pencil” icon in the thread title. Scroll all the way to the top of this page. Click on the “pencil”. Pick the correct forum using the drop-down list and search tool. Then add a week number tag or topic name.

---

<div class="post-metadata">

**Author:** ![Jenys](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jenys](https://community.deeplearning.ai/u/Jenys)\
**Post date:** [February 4, 2025, 10:33am UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/8 "2025-02-04T10:33:09Z")

</div>

You mean the Short Course Q&A, where I need to read all the tiles to fine the course I am looking for 🙂 I will know for the future but imagine if they add more courses to this page where you can’t search by course name…

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [February 4, 2025, 3:16pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/9 "2025-02-04T15:16:19Z")

</div>

> [@Jenys](#):
>
> where I need to read all the tiles

There is a search bar to find a specific course.

---

<div class="post-metadata">

**Author:** ![Jenys](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jenys](https://community.deeplearning.ai/u/Jenys)\
**Post date:** [February 4, 2025, 7:43pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/10 "2025-02-04T19:43:09Z")

</div>

Yes, I found one on the home page and then it is gone as soon as you enter any of the categories 🙂 Sorry, I don’t mean to complain but do believe a better organisation of the content and the navigation could be helpful.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [February 4, 2025, 7:44pm UTC](https://community.deeplearning.ai/t/short-course-ai-agents-in-langgraph-needs-to-be-fixed-in-lesson-4/745269/11 "2025-02-04T19:44:42Z")

</div>

I’ll move the thread myself.

I don’t disagree that the discussion organization is a bit complex.
