'JavaPackage' object is not callable

Open
#733 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, scala, spark

Research direction

Start with pyspark/spark_support.py, especially serializeToBundle and the SimpleSparkSerializer initializer at line 39. Trace how _jvm().ml.combust.mleap.spark.SimpleSparkSerializer is made available in the Spark integration and reproduce the reported TypeError. Done means the affected PySpark serializer can be instantiated without the reported JavaPackage error.

Written by the indexing model from the issue text.

Description

waiting for input

File "E:\Anaconda\lib\site-packages\mleap\pyspark\spark_support.py", line 24, in serializeToBundle
serializer = SimpleSparkSerializer()
File "E:\Anaconda\lib\site-packages\mleap\pyspark\spark_support.py", line 39, in init
self._java_obj = _jvm().ml.combust.mleap.spark.SimpleSparkSerializer()
TypeError: 'JavaPackage' object is not callable

Dominant language
Scala
Stars
1.5k
Forks
313
Avg merge
22m
Merged PRs (30d)
1

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from combust/mleap

All issues in combust/mleap

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.