usc-isi-i2 / Web-Karma

Information Integration Tool

Home Page:http://www.isi.edu/integration/karma/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lack of error messaging on failed PyTransform

huerdong opened this issue · comments

From feedback from one of our collaborators (@nvander), it seems Karma does not produce error messaging in offline mode when a PyTransform fails, specifically when a particular package does not exist. This issue occurs because we are deploying Karma into a Docker environment and due to a bug one of our packages was not included in the environment.

Steps to reproduce the behavior:

  1. Add a Python package into the Karma python folder
  2. Load a dataset on WebKarma
  3. Create a model on that data using the previously mentioned package.
  4. Publish the model
  5. Remove the package from the folder.
  6. Apply the model to the dataset via offline mode
  7. Karma will apply the model without errors, but will generate empty and erroneous RDF due to the missing package.

Expected behavior
Karma should return an error message when it encounters an issue applying a PyTransform. It should still proceed with applying the model, but the error message would be useful for users to identify problems in their environment or pipeline.