Closed marcoaleixo closed 6 years ago
Hi,
Did you try to add chrome.exe manually in your PATH? It seems that it can fail to find the Chrome binary, if Chrome is not installed at the default location.
I just saw you are on Linux, this post may help you : https://stackoverflow.com/questions/8255929/running-selenium-webdriver-python-bindings-in-chrome/24364290#24364290
Your chromedriver may not be in your /usr/bin folder.
For now, I had only test my script on Windows. I plan to do more test on other plateforms.
Let me know if it resolves your issue !
I will try and if I found the solution I post here.
Okay, so the right way to do it is to download the chromedriver.zip from source and unzip it in /usr/local/bin. sudo unzip ./chromedriver_linux64.zip chromedriver -d /usr/local/bin/
You can download the drivers from this site
Thank you @maxpastor, I think an alternative way would be to run this command
pip install chromedriver_installer --install-option="--chromedriver-version=2.35"
According to this documentation, chromedriver should be available in your PATH, so selenium is able to find it.
@marcoaleixo I was able to reproduce your issue on Linux and using python 3.5.
To make this working I needed to install the chromium-browser package (sudo apt-get install chromium-browser
).
Running the command python3 -m pip install -r requirements.txt
or pip install chromedriver_installer --install-option="--chromedriver-version=2.35"
worked well for me as it's installed somewhere in the PATH.
You can check the folder location with this command which chromedriver
and make sur it's in your $PATH variable.
I updated the README section.
When I run : python dataset_generator.py "red car" -limit 50 -dest images -size large
I receive a bunch of errors:
I did pip install -r req...txt on my condaenv with python 3.5