title: What is wrong with appName function?
body: <p>When I run the spark's main function in jupyter python I get an error at <code>.appName</code> function</p>
  
  <pre><code>spark=ps.sql.SparkSession.builder\
      .master('local[4]')\
       .appName('spark-lecture')\
      .getOrCreate()
  sc= spark.sparkContext
  </code></pre>
  
  <blockquote>
    <p>Py4JError: org.apache.spark.api.python.PythonUtils.getEncryptionEnabled does not exist in the JVM</p>
  </blockquote>