[PR #249] [CLOSED] fix storm.ipynb error for duckduckgo_search #1332

Closed
opened 2026-02-20 17:44:28 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/249
Author: @ruanwz
Created: 3/31/2024
Status: Closed

Base: mainHead: patch-1


📝 Commits (1)

  • c115fad fix storm.ipynb error for duckduckgo_search

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 examples/storm/storm.ipynb (+3 -1)

📄 Description

results = DuckDuckGoSearchAPIWrapper()._ddgs_text(query) has following error:
RuntimeError Traceback (most recent call last)
Cell In[31], line 9
6 return result
8 # Run the async function and get the result
----> 9 result = asyncio.run(search())
10 print(result)

File ~/miniconda3/envs/langgraph/lib/python3.11/asyncio/runners.py:186, in run(main, debug)
161 """Execute the coroutine and return the result.
162
163 This function runs the passed coroutine, taking care of
(...)
182 asyncio.run(main())
183 """
184 if events._get_running_loop() is not None:
185 # fail fast with short traceback
--> 186 raise RuntimeError(
187 "asyncio.run() cannot be called from a running event loop")
189 with Runner(debug=debug) as runner:
190 return runner.run(main)

RuntimeError: asyncio.run() cannot be called from a running event loop


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/249 **Author:** [@ruanwz](https://github.com/ruanwz) **Created:** 3/31/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`c115fad`](https://github.com/langchain-ai/langgraph/commit/c115fad61b366b12c25c6cd3c9b58a575183cb2e) fix storm.ipynb error for duckduckgo_search ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `examples/storm/storm.ipynb` (+3 -1) </details> ### 📄 Description results = DuckDuckGoSearchAPIWrapper()._ddgs_text(query) has following error: RuntimeError Traceback (most recent call last) Cell In[31], line 9 6 return result 8 # Run the async function and get the result ----> 9 result = asyncio.run(search()) 10 print(result) File ~/miniconda3/envs/langgraph/lib/python3.11/asyncio/runners.py:186, in run(main, debug) 161 """Execute the coroutine and return the result. 162 163 This function runs the passed coroutine, taking care of (...) 182 asyncio.run(main()) 183 """ 184 if events._get_running_loop() is not None: 185 # fail fast with short traceback --> 186 raise RuntimeError( 187 "asyncio.run() cannot be called from a running event loop") 189 with Runner(debug=debug) as runner: 190 return runner.run(main) RuntimeError: asyncio.run() cannot be called from a running event loop --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:44:28 -05:00
yindo closed this issue 2026-02-20 17:44:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1332