Public bug reported:

The webdriver for Chrome/Chromium requires the user to download, build
and install a separate executable called 'chromedriver', which is not
available anywhere in the repositories.

This is only mentioned at run-time by an exception message:

$ python
Python 2.7.3 (default, Apr 10 2013, 06:20:15) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> driver = webdriver.Chrome()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py",
 line 59, in __init__
    self.service.start()
  File 
"/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/service.py", 
line 68, in start
    and read up at http://code.google.com/p/selenium/wiki/ChromeDriver";)
selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver 
executable needs to be available in the path.                 Please download 
from http://code.google.com/p/selenium/downloads/list                and read 
up at http://code.google.com/p/selenium/wiki/ChromeDriver' 
>>> 

It can also be found if you dig inside the source code:

$ grep -nrC1 'chromedriver' py
py/selenium/webdriver/chrome/webdriver.py-31-    You will need to download the 
ChromeDriver executable from
py/selenium/webdriver/chrome/webdriver.py:32:    
http://code.google.com/p/chromedriver/downloads/list
py/selenium/webdriver/chrome/webdriver.py-33-    """
py/selenium/webdriver/chrome/webdriver.py-34-
py/selenium/webdriver/chrome/webdriver.py:35:    def __init__(self, 
executable_path="chromedriver", port=0,
py/selenium/webdriver/chrome/webdriver.py-36-                 
chrome_options=None):


The mentioned URL provides only pre-compiled binaries. The source code for 
'chromedriver' is ultimately found in Chromium source tree:

http://src.chromium.org/viewvc/chrome/trunk/src/chrome/test/chromedriver/

And, unfortunately, it's not build by default in 'chromium-browser'
package.

As a result, out-of-the-box the Chrome webdriver simply does not work in
Ubuntu, even if you have Chrome and/or Chromium installed.

Package description is very misleading when it says it supports Chrome
and fails to mention this download requirement anywhere in its
debian/README* files. If 'chromedriver' is not available in repositories
(hence no way to add it as package dependency), this should be clearly
stated in debian/control.

** Affects: python-selenium (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: python-selenium (Debian)
     Importance: Unknown
         Status: Unknown

** Bug watch added: Debian Bug tracker #700061
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700061

** Also affects: python-selenium (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700061
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1188271

Title:
  Chome webdriver requires downloading (and building/installing)
  external files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-selenium/+bug/1188271/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to