jpmml / jpmml-sklearn

Java library and command-line application for converting Scikit-Learn pipelines to PMML
GNU Affero General Public License v3.0
531 stars 117 forks source link

Collecting and posting conversion errors automatically #160

Closed xiaoqiao21 closed 3 years ago

xiaoqiao21 commented 3 years ago

Hi, I want to use sklearn2pmml() function to convert a PMML file. Here is my code to create a pipeline. But I saw an error

RuntimeError: The JPMML-SkLearn conversion application has failed. The Java executable should have printed more information about the failure into its standard output and/or standard error streams

How can I solve it? My version is 0.73.1

vruusmann commented 3 years ago

The Java executable should have printed more information about the failure into its standard output and/or standard error streams

What was printed to the standard output and/or standard error streams?

There's your answer.

vruusmann commented 3 years ago

Reopen once you have this information.

Right now there's nothing for me to comment/do.

vruusmann commented 3 years ago

I'm re-opening and re-purposing this issue.

What the original post indicates is that modern people are rather unfamiliar with the concept of standard output and standard error consoles.

What might help:

  1. Replace the phrase "standard output and/or standard error streams" with phrase "check the console".
  2. If the Python session is interactive, then open a GUI pop-up dialog with the error message and full stack trace.
  3. The GUI pop-up dialog could have a button "post error to GitHub issues".

If the Python session is not interactive, then there should be Python utility functions for collecting and posting errors.