Error using Synapse ML: JavaPackage object is not callable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 06:23 AM
I am using DBR version 10.1. I want to use Synapse ML package. I am able to install and import it by following instructions on the link: https://github.com/microsoft/SynapseML. However when I try to run the code it gives me the error shown in the attached screenshot. Would you have any idea how to solve this issue if one doesn't have admin privileges'? Thanks
- Labels:
-
DBR
-
Synapse ML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 06:13 AM
Hello @Vikram Mahawal
Thank you for posting to the Databricks community.
The error is documented here
https://github.com/microsoft/SynapseML/issues/1296
It seems like it cannot find the jar files to load the classes
Can you try installing the below maven library on the cluster and retry?
com.microsoft.azure:synapseml_2.12:0.9.5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 07:44 AM
Hi @Arvind Ravish , Thank you for the reply. However, I am unable to install the maven library com.microsoft.azure:synapseml_2.12:0.9.5 on the cluster or workspace. The options to install are greyed out as can be seen from the attached screenshot.
Also FYI, I get the 'JavaPackage object is not callable' error shown in the previous screenshot when I try to run the code on the link: https://microsoft.github.io/SynapseML/docs/features/lightgbm/LightGBM%20-%20Overview/
Is it something that the administrator of the cluster would be able to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 05:27 AM
Hi @Kaniz Fatma ,
Just FYI. I had faced this issue some time back and this has still not been solved.
Not sure if the whitelisting issue and this issue are related.
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2022 09:24 PM
Hello @Vikram Mahawal
Clusters need to be in the running state to install/uninstall the libraries. Could you please start the cluster and try installing it.
If you are still stuck, please file a support case with us, so we can take a look.
Thanks

