superherointj / nix-auto-gpt

Nix Flakes for Auto-GPT
14 stars 6 forks source link

Chromedriver not in path #6

Open walseb opened 1 year ago

walseb commented 1 year ago

Hello!

When running this, and the latest stable AutoGPT, and it tries to use chromedriver, I get the following error:

SYSTEM:  Command browse_website returned: Error: Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home

Chromedriver is both installed globally and using this script.

[nix-shell:~/Downloads/Auto-GPT]$ which chromedriver
/nix/store/9qmca55r6rkln3vfhzbk8ikcivpjzzqw-chromedriver-112.0.5615.49/bin/chromedriver

Perhaps AutoGPT is looking in some non-nix path?

Thoughts?

Thanks for any help!

superherointj commented 1 year ago

First, thanks for report!

I was expecting https://github.com/Significant-Gravitas/Auto-GPT/pull/1541 to be merged to declare "CUSTOM_WEBDRIVER_PATH" environment variable. But now that it seems it won't be merged, we need some other solution. Likely this.

As the application itself is trying to download this dependency, a patch or a PR to upstream (better) will be necessary: https://github.com/Significant-Gravitas/Auto-GPT/blob/master/autogpt/commands/web_selenium.py#L97

superherointj commented 1 year ago

Related: