title: Unable to open Firefox browser using Selenium
body: <p>I am getting this error message when I try to use a python script to open a firefox browser on Ubuntu Linux 14.04:</p>
  
  <pre><code>File "seleniumtest.py", line 3, in &lt;module&gt;
  browser = webdriver.Firefox()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 145, in __init__
  self.service.start()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, 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 8] Exec format error
  </code></pre>
  
  <p>The sample code is:</p>
  
  <pre><code>from selenium import webdriver
  browser = webdriver.Firefox()
  browser.get('https://www.google.com')
  </code></pre>
  
  <p>Dependencies like geckodriver have been installed.</p>
  
  <pre><code>wget https://github.com/mozilla/geckodriver/releases/download/v0.13.0/geckodriver-v0.13.0-linux64.tar.gz
  tar -xvzf geckodriver-v0.13.0-linux64.tar.gz
  rm geckodriver-v0.13.0-linux64.tar.gz
  chmod +x geckodriver
  cp geckodriver /usr/local/bin/
  </code></pre>
  
  <p>With the addition of "executable_path="/usr/local/bin/geckodriver", the output is as follows:</p>
  
  <pre><code>File "seleniumtest.py", line 3, in &lt;module&gt;
  browser = webdriver.Firefox(executable_path="/usr/local/bin/geckodriver")
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 145, in __init__
  self.service.start()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, 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 8] Exec format error
  </code></pre>