cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

JavaPackage' object is not callable :: Mlean

Seenu45
New Contributor II

Hi Folks,

We are working on production Databricks project using Mleap.

when run below code on databricks, it throws error like " 'JavaPackage' object is not callable"

code :

import mleap.pyspark from mleap.pyspark.spark_support import SimpleSparkSerializer model.serializeToBundle("jar:file:/databricks/mleap_python_model_export/20news_pipeline-json.zip", sparkTransformed)

Error:

TypeError: 'JavaPackage' object is not callable

Please help me with this.

Thanks

Srinivas

1 ACCEPTED SOLUTION

Accepted Solutions

shyam_9
Databricks Employee
Databricks Employee

Hi @Seenu45​ ,

Please go through this GitHub issue, it is also same issue,

https://github.com/combust/mleap/issues/172

View solution in original post

3 REPLIES 3

shyam_9
Databricks Employee
Databricks Employee

Hi @Seenu45​ ,

Please go through this GitHub issue, it is also same issue,

https://github.com/combust/mleap/issues/172

Seenu45
New Contributor II

Thanks syamspr. it is working now.

LishuaiJ
New Contributor II

How did you solve it? It seems the link did not provide any good answers.