title: findspark.init() list index out of range error
body: <p>When using findspark.find() I am given the path that spark is installed in, but when trying findspark.init(path) I am getting a list index out of range error using jupyter notebook</p>
  
  <p>I have made sure my SPARK_HOME and PATH variables are correctly set as well</p>
  
  <blockquote>
    <p><em>below code outputs spark home path</em></p>
  </blockquote>
  
  <pre><code>import findspark
  findspark.find()
  </code></pre>
  
  <blockquote>
    <p><em>initializing with output of above spark home path</em></p>
  </blockquote>
  
  <pre><code>import findspark
  findspark.init(path)
  </code></pre>
  
  <blockquote>
    <p><em>throws list index out of range error</em></p>
  </blockquote>
  
  <pre><code>    133     # add pyspark to sys.path
      134     spark_python = os.path.join(spark_home, 'python')
  --&gt; 135     py4j = glob(os.path.join(spark_python, 'lib', 'py4j-*.zip'))[0]
      136     sys.path[:0] = [spark_python, py4j]
      137 
  
      IndexError: list index out of range
  </code></pre>
  
  <p>I dont understand how it can output the correct path, but is unable to initialize spark</p>