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

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

Closed
1 task done
mikeliao89 opened this issue May 11, 2023 · 19 comments
Closed
1 task done

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

mikeliao89 opened this issue May 11, 2023 · 19 comments
Labels

Comments

@mikeliao89
Copy link

⚠️ 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?

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: []

@itbeard
Copy link

itbeard commented May 11, 2023

Have the same issue

@itbeard
Copy link

itbeard commented May 11, 2023

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

@mikeliao89
Copy link
Author

I have already added that before the error occurred.

@iller75
Copy link

iller75 commented May 11, 2023

Got it as well and even with the google api

@deankevorkian
Copy link

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

@mikeliao89
Copy link
Author

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
Copy link
Author

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

Thanks for your answer.

@Sn0w3y
Copy link

Sn0w3y commented May 11, 2023

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

@4trik
Copy link

4trik commented May 11, 2023

It still doesn't work for me, I've also looked into:
#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?

@mikeliao89
Copy link
Author

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. deedy5/duckduckgo_search#56

@jkemp814
Copy link

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

Great job. Quick and timely update. Appreciate it.

@streiman
Copy link

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

@moltra
Copy link

moltra commented May 12, 2023

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

@streiman
Copy link

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

@ntindle
Copy link
Member

ntindle commented May 13, 2023

Should be cutting a new release for this soon

@ntindle ntindle added this to the v0.3.1 Release milestone May 13, 2023
@k-boikov
Copy link
Contributor

Fixed with #4142

@wujyhchyn
Copy link

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

@DimbaPride
Copy link

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:

@suyan-liang
Copy link

it works, thanks.

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

No branches or pull requests