title: findspark.init() IndexError: list index out of range error
body: <p>When running the following in a Python 3.5 Jupyter environment I get the error below. Any ideas on what is causing it?</p>
  
  <pre><code>import findspark
  findspark.init()
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>IndexError                                Traceback (most recent call
  last) &lt;ipython-input-20-2ad2c7679ebc&gt; in &lt;module&gt;()
        1 import findspark
  ----&gt; 2 findspark.init()
        3 
        4 import pyspark
  
  /.../anaconda/envs/pyspark/lib/python3.5/site-packages/findspark.py in init(spark_home, python_path, edit_rc, edit_profile)
      132     # add pyspark to sys.path
      133     spark_python = os.path.join(spark_home, 'python')
  --&gt; 134     py4j = glob(os.path.join(spark_python, 'lib', 'py4j-*.zip'))[0]
      135     sys.path[:0] = [spark_python, py4j]
      136 
  
  IndexError: list index out of range
  </code></pre>