You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error complains that there is a local variable "results" that is accessed before being assigned.
In the Langflow installation, the DuckDuckGoSearch component relies on the duckduckgo_search package, version 6.4.2, which was installed by Langflow.
We identified that the issue lies in the DuckDuckGoSearch component's code at line 43, which is causing the Exception displayed in the Notifications tab when the component is executed.
The error you're encountering with the DuckDuckGoSearch component, where the "results" variable is accessed before being assigned, seems to be related to the version of the duckduckgo_search package being used. The component is currently using version 6.4.2, which might be causing compatibility issues.
To resolve this, you can try updating the duckduckgo_search package to version 7.2.1. This newer version might have changes that address the issue with the "results" variable. You can update the package using pip:
pip install duckduckgo-search==7.2.1
After updating, ensure that the code in the DuckDuckGoSearch component is compatible with the new version of the package. You might need to adjust the method calls or parameters if there were any changes in the package's API between versions 6.4.2 and 7.2.1.
Bug Description
The error complains that there is a local variable "results" that is accessed before being assigned.
In the Langflow installation, the DuckDuckGoSearch component relies on the duckduckgo_search package, version 6.4.2, which was installed by Langflow.
We identified that the issue lies in the DuckDuckGoSearch component's code at line 43, which is causing the Exception displayed in the Notifications tab when the component is executed.
We suspect that the DuckDuckGoSearch installation may be out of date and the code may need to be updated to use https://pypi.org/project/duckduckgo-search/ version 7.2.1
Reproduction
Steps to Reproduce Bug:
Expected behavior
When we run the DuckDuckGo tool component, it should build successfully regardless of whether the tool is connected to an agent or is alone.
Who can help?
Backend:
Full Stack:
Operating System
Debian GNU/Linux 12 (bookworm)
Langflow Version
1.1.1
Python Version
3.11
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: