jpmml / sklearn2pmml

Python library for converting Scikit-Learn pipelines to PMML
GNU Affero General Public License v3.0
685 stars 113 forks source link

pkl file not found error #29

Closed nprasad18 closed 7 years ago

nprasad18 commented 7 years ago
sklearn2pmml(bnb_pipeline, "menu_description_ml.pmml", with_repr = True, debug = True)

When I run the above command inside ipython, I see following error -

python:  3.5.2
sklearn:  0.18.1
sklearn.externals.joblib: 0.10.3
pandas:  0.18.1
sklearn_pandas:  1.3.0
sklearn2pmml:  0.17.4
java -cp /root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/pmml-agent-1.3.5.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jaxb-core-2.2.11.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jpmml-converter-1.2.2.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/slf4j-api-1.7.24.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jpmml-sklearn-1.2.10.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/serpent-1.17.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/pyrolite-4.18.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jcommander-1.48.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jpmml-lightgbm-1.0.4.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/pmml-model-metro-1.3.5.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/istack-commons-runtime-2.21.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/pmml-schema-1.3.5.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jaxb-runtime-2.2.11.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/guava-20.0.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/jpmml-xgboost-1.1.6.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/pmml-model-1.3.5.jar:/root/.local/lib/python3.5/site-packages/sklearn2pmml/resources/slf4j-jdk14-1.7.24.jar org.jpmml.sklearn.Main --pkl-pipeline-input /tmp/pipeline-fyqa1gdv.pkl.z --pmml-output menu_description_ml.pmml
Preserved joblib dump file(s):  /tmp/pipeline-fyqa1gdv.pkl.z

When I manually running the command, java is not able to run find /tmp/pipiline-XXXXXXX.pkl.z

Questions: When does the pipiline-XXXXXXX.pkl.z. Does it failing because of permission issues (I am running inside docker container)

vruusmann commented 7 years ago

Does the /tmp/pipeline-fyqa1gdv.pkl.z exist? If it doesn't then there might be a problem with file permissions (although, by convention, the /tmp/ directory should be always writable for all users).

It looks like a local environment misconfiguration issue. I don't see anything related to PMML in the above error report.