cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Valued Contributor
Valued Contributor

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
Valued Contributor
Valued Contributor

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.