[Python] problemi con chromedriver:qualche suggerimento?

Marco Ippolito ippolito.marco a gmail.com
Sab 21 Feb 2015 15:31:37 CET


Ciao a tutti,

seguendo le indicazioni trovate qui:
http://blog.likewise.org/2015/01/setting-up-chromedriver-and-the-selenium-webdriver-python-bindings-on-ubuntu-14-dot-04/
ho installato nel mio Ubuntu 14.04 Server Edition Chrome Driver e i
selenium bindings.

pip install selenium
Requirement already satisfied (use --upgrade to upgrade): selenium in
./env/lib/python3.4/site-packages
Cleaning up...

pip install --upgrade selenium
Requirement already up-to-date: selenium in ./env/lib/python3.4/site-packages
Cleaning up...

python
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> d = webdriver.Chrome()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marco/crawlscrape/env/lib/python3.4/site-packages/selenium/webdriver/chrome/webdriver.py",
line 65, in __init__
    keep_alive=True)
  File "/home/marco/crawlscrape/env/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py",
line 73, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/home/marco/crawlscrape/env/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py",
line 121, in start_session
    'desiredCapabilities': desired_capabilities,
  File "/home/marco/crawlscrape/env/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py",
line 173, in execute
    self.error_handler.check_response(response)
  File "/home/marco/crawlscrape/env/lib/python3.4/site-packages/selenium/webdriver/remote/errorhandler.py",
line 166, 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.14.313457
(3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux
3.13.0-32-generic x86_64)

ma come vedete mi dà qualche errore....
ho cercato in giro ma non ho trovato soluzioni soddisfacenti.
Avete qualche suggerimento da darmi?

Marco


Maggiori informazioni sulla lista Python