Below is a python snippet, which should attempt to initialize a webdriver instance.
from selenium import webdriver browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver") print("chrome driver init done") browser.close() And there's an error: Traceback (most recent call last): File "selenium_t1.py", line 2, in <module> browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver") File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 67, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 90, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 177, in start_session response = self.execute(Command.NEW_SESSION, capabilities) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/lib/chromium-browser/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.) (Driver info: chromedriver=2.40,platform=Linux 3.4.113-sun8i armv7l) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to chromium-browser in Ubuntu. https://bugs.launchpad.net/bugs/1796356 Title: armhf chromedriver version doesn't match browser Status in chromium-browser package in Ubuntu: Incomplete Bug description: Hi, I installed chromium-browser and chromium-driver using apt-get I ran two commands: sudo apt-get install chromium-browser && sudo apt-get install chromium--chromedriver But the versions doesn't seem to match each other. I could not instantiate a simple browser using both Chromium-browser/chromedriver installed by the above command. Tried with selenium module using python and it would just crash. According to this link: https://sites.google.com/a/chromium.org/chromedriver/downloads ChromeDriver must be higher or equal to 2.41 for it to work with Chromium 69. So, I ran the following commands, only to find out that the versions for these packages are not compatible with each other. /usr/lib/chromium-browser/chromedriver --version ChromeDriver 2.40 chromium-browser --version Chromium 69.0.3497.81 Built on Ubuntu , running on Ubuntu 16.04 I would think this is a bug, since the versions are not compatible with each other would render the chromedriver useless but they should be compatible and cooperating just fine. My previous question/discussion submitted in regards to this bug: https://answers.launchpad.net/ubuntu/+source/chromium-browser/+question/674688 Additional info that might be helpful: $ uname -a Linux orangepizero 3.4.113-sun8i #4 SMP PREEMPT Wed Nov 22 13:45:28 CET 2017 armv7l armv7l armv7l GNU/Linux $ lsb_release -crid Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial $ dpkg -l | grep chromium ii chromium-browser 69.0.3497.81-0ubuntu0.16.04.1 armhf Chromium web browser, open-source version of Chrome ii chromium-chromedriver 69.0.3497.81-0ubuntu0.16.04.1 armhf WebDriver driver for the Chromium Browser ii chromium-codecs-ffmpeg-extra 69.0.3497.81-0ubuntu0.16.04.1 armhf Extra ffmpeg codecs for the Chromium Browser $ apt-cache policy chromium-browser chromium-chromedriver chromium-browser: Installed: 69.0.3497.81-0ubuntu0.16.04.1 Candidate: 69.0.3497.81-0ubuntu0.16.04.1 Version table: *** 69.0.3497.81-0ubuntu0.16.04.1 500 500 http://ports.ubuntu.com xenial-security/universe armhf Packages 500 http://ports.ubuntu.com xenial-updates/universe armhf Packages 100 /var/lib/dpkg/status 49.0.2623.108-0ubuntu1.1233 500 500 http://ports.ubuntu.com xenial/universe armhf Packages chromium-chromedriver: Installed: 69.0.3497.81-0ubuntu0.16.04.1 Candidate: 69.0.3497.81-0ubuntu0.16.04.1 Version table: *** 69.0.3497.81-0ubuntu0.16.04.1 500 500 http://ports.ubuntu.com xenial-security/universe armhf Packages 500 http://ports.ubuntu.com xenial-updates/universe armhf Packages 100 /var/lib/dpkg/status 49.0.2623.108-0ubuntu1.1233 500 500 http://ports.ubuntu.com xenial/universe armhf Packages To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1796356/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp