title: Selenium WebDriver driver issue Mac
body: <p>I am trying to use Selenium on a Mac and I have some issue concerning the drivers.
  Here is my code :</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  import pandas as pd
  
  driver = webdriver.Chrome()
  </code></pre>
  
  <p>I have downloaded chromedriver and put the file in my path. However when I try to launch a WebDriver instance I get the following error :</p>
  
  <pre><code>WebDriverException: 'geckodriver' executable needs to be in PATH. 
  </code></pre>
  
  <p>So after a loads of research I tried this :</p>
  
  <pre><code>chromedriver = "/Users/luka1/chromedriver"
  driver = webdriver.Chrome(chromedriver)
  </code></pre>
  
  <p>However here again I run into an error which is : </p>
  
  <pre><code>LookupError: unknown encoding: idna
  </code></pre>
  
  <p>So I looked again and apparently the solution is to import encodings.idna, however when I try to do so I get "ModuleNotFoundError: No module named 'encodings.idna'" (I do have the encodings module though).</p>
  
  <p>I don't know how to solve this knowing that the chromedriver really is my path and every other solution fails. The code runs just great on my pc however. I also tried with gecko driver in case it was just a problem with Chrome but I have the same issue.</p>
  
  <p>I use Anaconda and I have the Mac OS Mojave 10.14.3 version.</p>
  
  <p>Thank you for your help !</p>