title: NotADirectoryError: [Errno 20] Not a directory: '/home/ghost/automation/pwd/geckodriver' with GeckoDrriver Firefox and Selenium using Python3
body: <p>im using pycharm and my pythn </p>
  
  <p>version 3.6.7 pip 9.0.1  </p>
  
  <p>and selenium version  selenium-3.141.0 urllib3-1.24.1</p>
  
  <p>i install selenium using this commands  </p>
  
  <pre><code>pip3 install selenium  
  </code></pre>
  
  <p>then i code like this </p>
  
  <pre><code>from selenium import webdriver
  
  driver = webdriver.Firefox("/home/ghost/automation/pwd/geckodriver")
  
  driver.set_page_load_timeout(30)
  driver.get("https://www.google.com/")
  driver.maximize_window()
  driver.implicitly_wait(120)
  driver.get_screenshot_as_file("google.png")
  driver.quit()
  </code></pre>
  
  <p>**when i run this i get this error **</p>
  
  <pre><code>/home/ghost/PycharmProjects/try/venv/bin/python /home/ghost/PycharmProjects/try/open/testcas1.py
  Traceback (most recent call last):
    File "/home/ghost/PycharmProjects/try/open/testcas1.py", line 3, in &lt;module&gt;
      driver = webdriver.Firefox("/home/ghost/automation/pwd/geckodriver")
    File "/home/ghost/PycharmProjects/try/venv/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 151, in __init__
      firefox_profile = FirefoxProfile(firefox_profile)
    File "/home/ghost/PycharmProjects/try/venv/lib/python3.6/site-packages/selenium/webdriver/firefox/firefox_profile.py", line 80, in __init__
      ignore=shutil.ignore_patterns("parent.lock", "lock", ".parentlock"))
    File "/usr/lib/python3.6/shutil.py", line 309, in copytree
      names = os.listdir(src)
  NotADirectoryError: [Errno 20] Not a directory: '/home/ghost/automation/pwd/geckodriver'
  
  Process finished with exit code 1
  </code></pre>
  
  <p>and in this line  <code>driver = webdriver.Firefox("/home/ghost/automation/pwd/geckodriver")</code>  its correct path of my <code>geckodriver</code>  nd my <strong>geckodriver
   version is 0.23.0</strong></p>
  
  <p>these answers are not help to me </p>
  
  <p><a href="https://stackoverflow.com/a/40399367/8337986">https://stackoverflow.com/a/40399367/8337986</a>
  <a href="https://stackoverflow.com/a/42945346/8337986">https://stackoverflow.com/a/42945346/8337986</a></p>