AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Command google returned: [] Located In USA. Google works on browser

Open mikeliao89 opened this issue 2 years ago • 15 comments

⚠️ Search for existing issues first ⚠️

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

Which Operating System are you using?

Windows

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

I tried different version of autogpt including master and stable. all comes with no result from google search.

Current behavior 😯

Command google returned: []

google does not come back with any search results.

Expected behavior 🤔

autogpt should be able to search through google and find results. but the results are just []

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>

2023-05-11 14:43:23,403 INFO THOUGHTS: I need to start by searching for estate sales in Queens, New York that are ending soon and have paintings available for purchase. I can use a search engine to find websites that list estate sales in the area. Once I have a list of estate sales, I can analyze the pricing of paintings at each sale to identify those that are priced affordably. I should save all relevant information to files to avoid exceeding my short term memory limit. 2023-05-11 14:43:24,085 INFO REASONING: I need to start by identifying estate sales in Queens, New York that are ending soon and have paintings available for purchase. I can use a search engine to find websites that list estate sales in the area. Once I have a list of estate sales, I can analyze the pricing of paintings at each sale to identify those that are priced affordably. I should save all relevant information to files to avoid exceeding my short term memory limit. 2023-05-11 14:43:24,700 INFO PLAN: 2023-05-11 14:43:24,734 INFO - Use a search engine to find websites that list estate sales in Queens, New York 2023-05-11 14:43:25,130 INFO - Analyze the pricing of paintings at each estate sale to identify those that are priced affordably 2023-05-11 14:43:25,488 INFO - Save all relevant information to files to avoid exceeding my short term memory limit 2023-05-11 14:43:25,880 INFO CRITICISM: I need to ensure that I am using the most efficient search engine to find estate sales in Queens, New York. I should also be careful to only save relevant information to files to avoid cluttering my file system. 2023-05-11 14:43:26,439 INFO NEXT ACTION: COMMAND = google ARGUMENTS = {'query': 'estate sales queens new york ending soon paintings'} 2023-05-11 14:43:26,815 INFO Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ... 2023-05-11 14:43:26,816 INFO Asking user via keyboard... 2023-05-11 14:43:31,654 INFO -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 2023-05-11 14:43:32,926 INFO SYSTEM: Command google returned: []

mikeliao89 avatar May 11 '23 18:05 mikeliao89

Have the same issue

itbeard avatar May 11 '23 19:05 itbeard

Looks like you need to provide Google API Key in .env here:

### GOOGLE
## GOOGLE_API_KEY - Google API key (Example: my-google-api-key)
## CUSTOM_SEARCH_ENGINE_ID - Custom search engine ID (Example: my-custom-search-engine-id)
# GOOGLE_API_KEY=your-google-api-key
# CUSTOM_SEARCH_ENGINE_ID=your-custom-search-engine-id

itbeard avatar May 11 '23 19:05 itbeard

I have already added that before the error occurred.

mikeliao89 avatar May 11 '23 20:05 mikeliao89

Got it as well and even with the google api

iller75 avatar May 11 '23 20:05 iller75

Seems like this may be related to a recently change just made by duckduckgo. Affects AutoGPT through the duckduckgo-search package https://github.com/deedy5/duckduckgo_search/issues/56

deankevorkian avatar May 11 '23 20:05 deankevorkian

Seems like this may be related to a recently change just made by duckduckgo. Affects AutoGPT through the duckduckgo-search package deedy5/duckduckgo_search#56

Thanks for your answer. I am very new at this. Could you please let me know what do I have to do to change the quotation marks?

mikeliao89 avatar May 11 '23 20:05 mikeliao89

Ok. Apparently, you just have to download the package and update it. Now my autogpt is working fine.

Thanks for your answer.

mikeliao89 avatar May 11 '23 21:05 mikeliao89

Have the same Issue here - how do i fix it step by step by updating DuckDuck Go ? How do i update it?

Sn0w3y avatar May 11 '23 22:05 Sn0w3y

It still doesn't work for me, I've also looked into: https://github.com/Significant-Gravitas/Auto-GPT/issues/2330

But any google search would still throw me:

Command google returned: Error: <HttpError 400 when requesting https://customsearch.googleapis.com/customsearch/v1?q=ways+to+increase+net+worth&num=8&key=[myRealKey]&alt=json returned "Request contains an invalid argument.". Details: "[{'message': 'Request contains an invalid argument.', 'domain': 'global', 'reason': 'badRequest'}]">

Anyone had this?

4trik avatar May 11 '23 23:05 4trik

Have the same Issue here - how do i fix it step by step by updating DuckDuck Go ? How do i update it?

Just click the link and read the readme file and install. https://github.com/deedy5/duckduckgo_search/issues/56

mikeliao89 avatar May 12 '23 02:05 mikeliao89

pip install --upgrade duckduckgo-search worked after fix by @deedy5

Great job. Quick and timely update. Appreciate it.

jkemp814 avatar May 12 '23 05:05 jkemp814

I installed AutoGPT via docker-compose. Is there anything I can do to fix the problem with "google returned []"?

streiman avatar May 12 '23 12:05 streiman

I installed AutoGPT via docker-compose. Is there anything I can do to fix the problem with "google returned []"?

you could open a console for the docker container and then use the pip install --upgrade duckduckgo-search command

moltra avatar May 12 '23 13:05 moltra

Thanks. I am just unable to open a bash shell. Probably because I am no docker expert.

streiman avatar May 12 '23 14:05 streiman

Should be cutting a new release for this soon

ntindle avatar May 13 '23 04:05 ntindle

Fixed with https://github.com/Significant-Gravitas/Auto-GPT/pull/4142

k-boikov avatar May 13 '23 18:05 k-boikov

I used the command pip install urllib3==1.25 to downgrade urllib, and miraculously, it can run now.

wujyhchyn avatar May 24 '23 11:05 wujyhchyn

I have this error too, can someone help me?

C:\Users\caio_\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") C:\Users\caio_\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:24: UserWarning: parameter page is deprecated, use DDGS().text() generator warnings.warn("parameter page is deprecated, use DDGS().text() generator") C:\Users\caio_\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:26: UserWarning: parameter max_results is deprecated, use DDGS().text() warnings.warn("parameter max_results is deprecated, use DDGS().text()")

SYSTEM: Command google returned: Error:

DimbaPride avatar May 25 '23 14:05 DimbaPride

it works, thanks.

suyan-liang avatar May 29 '23 03:05 suyan-liang