ASPOSE w Databricks

Hi Team,

We are using Python Django Web App with Databricks. The databricks is actually processing the file using ASPOSE words plugin. However when we try to add ASPOSE words into Databricks, then the python kernel crashes. We downgraded the python version from 3.12 to 3.11. However it was still crashing. Let us know how this can be avoided.

To circumvent this error, we installed ASPOSE library using JAR file (aspose-words-25.12-jdk16.jar) from ASPOSE repository. Please find attached logs.

While loading ASPOSE via JVM and utilizing the features such as HtmlSaveOptions, aspose.words.saving.ExportHeadersFootersMode.PER_SECTION, we are getting errors as in the screenshot below.

Regards
Sumukha

@sumukha

  • Are you installing the Aspose.Words package directly in the Databricks environment, and if so, which installation method are you using (e.g., PyPI, wheel)?
  • Does the Python kernel crash occur immediately upon importing Aspose.Words or only during specific operations like loading or saving documents?
  • Are you using Databricks Runtime or Databricks Runtime for Machine Learning, and which version of the runtime is your cluster running?
  • Have you reviewed the cluster driver logs for any error messages or stack traces related to the crash?
  • Does the same code execute successfully outside of Databricks, such as in a local Python environment with the same Aspose.Words and Python versions?
  • Are you attempting to use the .NET or Java version of Aspose.Words through an integration layer like pythonnet or JPype, or are you using a native Python-compatible package?

@sumukha Unfortunately, I cannot see any logs and screenshots in your initial post. Could you please provide more information about the encountered problem? If possible, create a simple console application that will allow us to reproduce the problem? We will check the issue and provide you more information.