armhf chromedriver version doesn't match browser

Asked by johnny chang

Hi, I installed chromium-browser and chromium-driver using apt-get
I ran two commands:
sudo apt-get install chromium-browser && sudo apt-gte install chromium--chromedriver
But the versions doesn't seem to match 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

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

I'm trying to use chromedriver, chromium together with selenium on an armhf system.
Could someone include a higher version of chromedriver or provide a way to downgrade my Chromium executable?
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu chromium-browser Edit question
Assignee:
No assignee Edit question
Solved by:
johnny chang
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the commands

uname -a
lsb_release -crid
dpkg -l | grep chromium
apt-cache policy chromium-browser chromium-chromedriver

Revision history for this message
johnny chang (hiimdoublej) said :
#2

Alright, here they are:
$ 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

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

As you can see in the details of the chromium-browser source package https://launchpad.net/ubuntu/+source/chromium-browser/ and https://launchpad.net/ubuntu/+archive/primary/+sourcepub/9424803/+listing-archive-extra the binaries that you have installed were compiled from the same source package.

I cannot believe that these two packages, compiled from the same source, would not fit together.
Do you have any additional confirmation that chromedriver version 69.0.3497.81 and chromium-browser version 69.0.3497.81 do not correctly cooperate?
Have you already encountered a problem when using them?

Revision history for this message
johnny chang (hiimdoublej) said :
#4

Yes I have, I tried initializing a selenium browser with chrome using python.
The code:

from selenium import webdriver
browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")

An error pops up shortly after, saying:
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)

Then I checked the version, like I mentioned in #0.
The driver version is 2.40 which would not work with chromium-browser binary version 69.
So I think the problem here is the driver version should be updated to a higher version.
Any version higher than 2.40 would do fine according to the following link.
https://sites.google.com/a/chromium.org/chromedriver/downloads

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

I suggest that you create a bug report.

Revision history for this message
johnny chang (hiimdoublej) said :
#6

I created a bug report, as you suggested and linked it to this question, Thanks!

Revision history for this message
johnny chang (hiimdoublej) said :
#7

Oops, did not mean to reopen this question, am closing this question for now.