title: Python - Selenium in Ubuntu OSError: [Errno 20] Not a directory
body: <p>After installing Selenium in Ubuntu and adding geckodriver to path I get this error when I run </p>
  
  <pre><code>from selenium import webdriver
  
  driver = webdriver.Firefox()
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 135, in __init__
  self.service.start()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 64, in start
  stdout=self.log_file, stderr=self.log_file)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
  errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
  raise child_exception
  OSError: [Errno 20] Not a directory
  </code></pre>
  
  <p>What's going on?</p>
  
  <p>EDIT: Solved using chromedriver instead of geckodriver.</p>