Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYSTEM: Command google returned: Error: 'NoneType' object is not iterable #4350

Closed
1 task done
Mqw88 opened this issue May 22, 2023 · 18 comments · Fixed by #4368
Closed
1 task done

SYSTEM: Command google returned: Error: 'NoneType' object is not iterable #4350

Mqw88 opened this issue May 22, 2023 · 18 comments · Fixed by #4368

Comments

@Mqw88
Copy link

Mqw88 commented May 22, 2023

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Latest Release

Do you use OpenAI GPT-3 or GPT-4?

GPT-4

Which area covers your issue best?

Installation and setup

Describe your issue.

When using Auto-GPT i receive following message: SYSTEM: Command google returned: Error: 'NoneType' object is not iterable

Any ideas how to solve that?

Upload Activity Log Content

No response

Upload Error Log Content

No response

@kinance
Copy link
Contributor

kinance commented May 22, 2023

Do you set the google API key? Or just use the default without setting the key?

@Mqw88
Copy link
Author

Mqw88 commented May 22, 2023 via email

@nulty
Copy link

nulty commented May 22, 2023

I'm getting this too. It looks like google search without an API key is duckduckgo search. It looks like there is something wrong with the response from that service.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/iain/Code/mine/ai/Auto-GPT/venv/lib/python3.10/site-packages/duckduckgo_search/duckduckgo_search.py", line 149, in text
    for row in page_data:
TypeError: 'NoneType' object is not iterable

@ampersanded
Copy link

I have the same problem, and I'm using a valid GoogleApi key and Custom Search Engine ID

@Archanadian
Copy link

Yes before getting the error i first encounter this "ddg is deprecated. Use DDGS().text() generator"

@ampersanded
Copy link

*\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:20: UserWarning: ddg is deprecated. Use DDGS().text() generator warnings.warn("ddg is deprecated. Use DDGS().text() generator") << That one?

@Archanadian
Copy link

Yes you're right i did get this error

@Mqw88
Copy link
Author

Mqw88 commented May 23, 2023 via email

@TienShinhan-world
Copy link

I've the same issue.

@LemonBuzzer123
Copy link

Same issue here... any way to resolve?

@kinance
Copy link
Contributor

kinance commented May 23, 2023

*\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:20: UserWarning: ddg is deprecated. Use DDGS().text() generator warnings.warn("ddg is deprecated. Use DDGS().text() generator") << That one?

Duplicates #813

@TienShinhan-world
Copy link

Hi all,

My workaround, I still have the warning but the search working :

pip uninstall duckduckgo-search
pip install duckduckgo-search==3.0.2

@kinance
Copy link
Contributor

kinance commented May 23, 2023

@TienShinhan-world thanks for the workaround. Committed and merged to the master.

@Mqw88
Copy link
Author

Mqw88 commented May 23, 2023 via email

@int75
Copy link

int75 commented May 23, 2023

Many thanks! Does it work for you now? I still get the google error.

On Tue, 23 May 2023 at 17:11, Kinance @.> wrote: @TienShinhan-world https://github.com/TienShinhan-world thanks for the workaround. Committed and merged to the master. — Reply to this email directly, view it on GitHub <#4350 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAAVSHULUF2REQ6N3PEIGITXHTHQTANCNFSM6AAAAAAYKTI7JA . You are receiving this because you authored the thread.Message ID: @.>
-- *Max *Qwarnström Managing Partner p: +46 761 64 69 86

As @TienShinhan-world shared, after running these 2 commands, it still shows deprecated warning but it's now working!
pip uninstall duckduckgo-search
pip install duckduckgo-search==3.0.2

@Mqw88
Copy link
Author

Mqw88 commented May 23, 2023 via email

@kinance
Copy link
Contributor

kinance commented May 24, 2023

Relates #4376

@kinance
Copy link
Contributor

kinance commented May 24, 2023

This PR #4383 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants