title: Java Object not callable while using sparkmeasure
body: <p>I am trying to use Sparkmeausre to check the performance of my Pyspark code. I am using Pycharm Community edition on windows 10, with Pyspark properly configured. I did &quot;<strong>pip install sparkmeasure</strong>&quot; and sparkmeasure was sucessfully installed. Now when I am trying to run this snippet of code.</p>
  <pre><code>from pyspark import  SparkConf , SparkContext
  from pyspark.context import  SparkContext
  from pyspark.sql.session import  SparkSession
  from sparkmeasure import StageMetrics
  
  
  sc = SparkContext(master = &quot;local&quot; , appName = &quot;sparkdemo&quot;)
  spark = SparkSession(sc)
  sm = StageMetrics(spark)
  </code></pre>
  <p>I am getting the error.</p>
  <pre><code>File &quot;C:/Users/nj123/PycharmProjects/pythonProject/sparkdemo.py&quot;, line 9, in &lt;module&gt;
  sm = StageMetrics(spark)
  File &quot;C:\Users\nj123\PycharmProjects\pythonProject\venv\lib\site- 
  packages\sparkmeasure\stagemetrics.py&quot;, line 15, in __init__
  self.stagemetrics = self.sc._jvm.ch.cern.sparkmeasure.StageMetrics(self.sparksession._jsparkSession)
  TypeError: 'JavaPackage' object is not callable
  </code></pre>
  <p>How to resolve this error and to configure sparkmeasure to Pycharm correctly?</p>