question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Looks like we cannot locate the path the 'chromedriver' if limit is included

See original GitHub issue

OS: osx 10.12.6 Python version: 3.6.5 Issue steps: When running CLI with -l or --limit option specified, the following error is returned. Looks like we cannot locate the path the 'chromedriver' (use the '--chromedriver' argument to specify the path to the executable.) or google chrome browser is not installed on your machine executing without -l works fine.

Attempted to use json input but still returning same error. json file contents below: { "Records": [ {"keywords": "tops","limit": 1000}, {"keywords": "jacket","limit": 1000} ] }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:31 (8 by maintainers)

github_iconTop GitHub Comments

51reactions
omrysendikcommented, Jun 23, 2018

OK, I was able to make it work like this:

  1. Installed the chromium-chromedriver: sudo apt-get install chromium-chromedriver
  2. Adding the path to the selenium line. Line 167 in ./google_images_download/google_images_download.py to: browser = webdriver.Chrome(“/usr/lib/chromium-browser/chromedriver”)
8reactions
svyotovcommented, Sep 28, 2019

I had this issue too, the issue is that all command line arguments are ignored when the config file argument is present. googleimagesdownload -cf cfg.json --chromedriver '/usr/bin/chromedriver' will ignore the --chromedriver argument. You can add it to the configuration file { "Records": [ {"keywords": "tops","limit": 1000, "chromedriver": "/usr/bin/chromedriver"}, {"keywords": "jacket","limit": 1000, "chromedriver": "/usr/bin/chromedriver"} ] }, a bit too verbose, but it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Chromedriver with Google Images download
1 Answer 1 · If that doesn't work, then hardcode line 177 of google_images_download.py where it says browser = webdriver. · MyNameIsCaleb's ...
Read more >
ChromeDriver - WebDriver for Chrome - Getting started
Any of these steps should do the trick: include the ChromeDriver location in your PATH environment variable. (Java only) specify its location via...
Read more >
Tips for building large image datasets - Fast.ai forums
Looks like we cannot locate the path the 'chromedriver' (use the '–chromedriver' argument to specify the path to the executable.) ...
Read more >
Chromedriver via Selenium? : Forums - PythonAnywhere
I get this error - I know the element is present on the page I'm visiting and have tested dozens of times via...
Read more >
Error selenium common exceptions WebDriverException ...
You can test if it actually is in the PATH, if you open a cmd and type in chromedriver (assuming your chromedriver executable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found