Instapy: cannot find Chrome binary

Created on 9 Sep 2017  路  3Comments  路  Source: timgrossmann/InstaPy

This is the output of python3 quickstart.py:

Traceback (most recent call last): File "quickstart.py", line 8, in <module> session = InstaPy(username=insta_username, password=insta_password, nogui=True) File "/home/jack/Documents/InstaPy/instapy/instapy.py", line 100, in __init__ self.set_selenium_local_session() File "/home/jack/Documents/InstaPy/instapy/instapy.py", line 139, in set_selenium_local_session self.browser = webdriver.Chrome('/home/jack/Documents/InstaPy/assets/chromedriver', chrome_options=chrome_options) File "/usr/lib/python3.6/site-packages/selenium-2.53.6-py3.6.egg/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/usr/lib/python3.6/site-packages/selenium-2.53.6-py3.6.egg/selenium/webdriver/remote/webdriver.py", line 90, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/lib/python3.6/site-packages/selenium-2.53.6-py3.6.egg/selenium/webdriver/remote/webdriver.py", line 177, in start_session response = self.execute(Command.NEW_SESSION, capabilities) File "/usr/lib/python3.6/site-packages/selenium-2.53.6-py3.6.egg/selenium/webdriver/remote/webdriver.py", line 236, in execute self.error_handler.check_response(response) File "/usr/lib/python3.6/site-packages/selenium-2.53.6-py3.6.egg/selenium/webdriver/remote/errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary (Driver info: chromedriver=2.32.498513 (2c63aa53b2c658de596ed550eb5267ec5967b351),platform=Linux 4.12.10-1-ARCH x86_64)

I'm running Arch, I have all of the dependencies installed to the best of my knowledge.

If I add chrome_options.binary_location = '/home/jack/Documents/InstaPy/assets/chromedriver' to the instapy.py file, the selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary line in the error message changes to selenium.common.exceptions.WebDriverException: Message: chrome not reachable for some reason, so the fix on #383 does not work for me.

help wanted

All 3 comments

ciao
in the past this link helped me (on on Ubuntu box ) this https://stackoverflow.com/questions/35212993/selenium-fails-to-start-chromedriver

For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to be a symlink to the actual Chrome binary.

I don't really have much familiarity with symlinks, so it is a bit extra weird for me. Gonna try getting into them a bit, will try this fix soon.

hey @v77v , please try it:
https://github.com/timgrossmann/InstaPy#basic-installation

if the problem persist, pls reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Naramsim picture Naramsim  路  3Comments

ingorichter picture ingorichter  路  3Comments

converge picture converge  路  3Comments

harrypython picture harrypython  路  3Comments

tibor picture tibor  路  3Comments