daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from selenium import webdriver
  2. from selenium.webdriver.chrome.options import Options
  3.  
  4. options = Options()
  5. options.binary_location = "/usr/bin/chromium-browser"
  6. driver = webdriver.Chrome(executable_path="./chromedriver", options=options)
  7.    
  8. Traceback (most recent call last):
  9.   File "/home/randm/Projects/social/script.py", line 10, in <module>
  10.     driver = webdriver.Chrome(executable_path="./chromedriver", options=options)
  11.   File "/home/randm/Libraries/anaconda3/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
  12.     desired_capabilities=desired_capabilities)
  13.   File "/home/randm/Libraries/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
  14.     self.start_session(capabilities, browser_profile)
  15.   File "/home/randm/Libraries/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
  16.     response = self.execute(Command.NEW_SESSION, parameters)
  17.   File "/home/randm/Libraries/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
  18.     self.error_handler.check_response(response)
  19.   File "/home/randm/Libraries/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
  20.     raise exception_class(message, screen, stacktrace)
  21. selenium.common.exceptions.WebDriverException: Message: unknown error: no chrome binary at /usr/bin/chromium-browser
  22.   (Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.15.0-42-generic x86_64)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top