rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

Poor error message "version info not a dictionary" when instantiating ChromeDriver #316

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install chromedriver (version 0.7)
2. Install chromium (version 21.0.1180.89)
3. Try to create a ChromeDriver

I'm trying from python, and I get this error:

>>> d = webdriver.Chrome()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/selenium-2.32.0-py2.7.egg/selenium/webdriver/chrome/webdriver.py", line 64, in __init__
    desired_capabilities=desired_capabilities)
  File "/usr/lib/python2.7/site-packages/selenium-2.32.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 72, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/usr/lib/python2.7/site-packages/selenium-2.32.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 114, in start_session
    'desiredCapabilities': desired_capabilities,
  File "/usr/lib/python2.7/site-packages/selenium-2.32.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 165, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python2.7/site-packages/selenium-2.32.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 152, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'unknown error: 
version info not a dictionary\n  (Driver info: chromedriver=0.7,platform=Linux 
3.5.4-1-ARCH x86_64)' 

Eventually I found where the error message is coming from: 
chrome/test/chromedriver/chrome_impl.cc:ParseVersionInfo()

I /presume/ this is happening because I have such an old version of chromium; I 
tried connecting to chromedriver running on another machine with a newer 
version of chrome and it worked fine.

It would have saved me some headache if ParseVersionInfo() had given me the 
"Chrome version must be >= 26" error message though, instead of this confusing 
thing :)

Not a high priority, but as I struggled to find information about this error I 
thought I'd file the issue in the hope of saving time for anyone unfortunate 
enough to run into it in the future.

Original issue reported on code.google.com by sqw...@gmail.com on 18 Apr 2013 at 3:46

GoogleCodeExporter commented 9 years ago
THANK YOU SO MUCH!! I was like...what is this werid error...

Original comment by or.fa...@gmail.com on 14 Aug 2013 at 6:18

GoogleCodeExporter commented 9 years ago
Ah thanks!! I was just about to give up on this issue!

Original comment by reachl...@gmail.com on 16 Sep 2013 at 11:09

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
Unable to reproduce issue with ChromeDriver 2.15, Chromium:44, WIndows 7

Please try again and let us know if we differ from what you are trying.

Sample Code:
System.setProperty("webdriver.chrome.driver","drivers/chromedriver.exe");
ChromeOptions options =  new ChromeOptions();
options.setBinary("C:\\Users\\ssudunagunta\\AppData\\Local\\Chromium\\Applicatio
n\\chrome.exe");
WebDriver driver = new ChromeDriver(options);
driver.get("http://www.google.com");

Original comment by ssudunag...@chromium.org on 13 Apr 2015 at 5:29

GoogleCodeExporter commented 9 years ago
Unfortunately I'm not in a position to test at the moment (haven't used 
chromedriver since 2013 and these days I have an up-to-date browser), but 0.7 
was so many versions ago that this bug has probably served its purpose by now.

Original comment by sqw...@gmail.com on 15 Apr 2015 at 2:17