Instapy: Constant issues with chromedriver - is there something else causing this?

Created on 17 Aug 2018  路  4Comments  路  Source: timgrossmann/InstaPy

I've tried everything for installing / reinstalling chromedriver. Any time I try to run, I get some error associated. Please let me know if you have any ideas.

ERROR [2018-08-17 19:07:29] [username] Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.34-v7+ armv7l)
Traceback (most recent call last):
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 300, in set_selenium_local_session
chrome_options=chrome_options)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 156, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.34-v7+ armv7l)

Traceback (most recent call last):
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 300, in set_selenium_local_session
chrome_options=chrome_options)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 156, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.34-v7+ armv7l)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "quickstart.py", line 24, in
headless_browser=False)
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 193, in __init__
self.set_selenium_local_session()
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 304, in set_selenium_local_session
Settings.chromedriver_location))
instapy.instapy.InstaPyError: ensure chromedriver is installed at /home/pi/Projects/InstaPy/assets/chromedriver

wontfix

Most helpful comment

I just got this working after reading this post: https://github.com/timgrossmann/InstaPy/issues/2678

I uninstalled chromium "sudo apt-get remove chromium"
Libreoffice should not have been installed but I ensured it was not using "sudo apt-get remove libreoffice*"

Hope this helps!

All 4 comments

I am not sure if my problem is related to @levfo but I am experiencing what looks to be similar. I would also appreciate any help!

ERROR [2018-08-18 14:29:17] [username] Message: session not created exception
from tab crashed
(Session info: headless chrome=68.0.3440.75)
(Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.62-v7+ armv7l)
Traceback (most recent call last):
File "/Projects/InstaPy/instapy/instapy.py", line 300, in set_selenium_local_session
chrome_options=chrome_options)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 156, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: Message: session not created exception
from tab crashed
(Session info: headless chrome=68.0.3440.75)
(Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.62-v7+ armv7l)

Traceback (most recent call last):
File "quickstart.py", line 22, in
multi_logs=True)
File "/Projects/InstaPy/instapy/instapy.py", line 193, in __init__
self.set_selenium_local_session()
File "/Projects/InstaPy/instapy/instapy.py", line 304, in set_selenium_local_session
Settings.chromedriver_location))
instapy.instapy.InstaPyError: ensure chromedriver is installed at /Projects/InstaPy/assets/chromedriver

I just got this working after reading this post: https://github.com/timgrossmann/InstaPy/issues/2678

I uninstalled chromium "sudo apt-get remove chromium"
Libreoffice should not have been installed but I ensured it was not using "sudo apt-get remove libreoffice*"

Hope this helps!

@mbellass worked!!! thanks

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. > If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings