dataiku / dss-plugin-reinforcement-learning

Apache License 2.0
2 stars 1 forks source link

Missing Python packages #4

Open tibfab opened 3 years ago

tibfab commented 3 years ago

Hi, installed the plugin incl. code environment successfully. However, if I run it I get the following error:

[14:39:43] [INFO] [dku.utils] - *** Recipe code failed ** [14:39:43] [INFO] [dku.utils] - Begin Python stack [14:39:43] [INFO] [dku.utils] - Traceback (most recent call last): [14:39:43] [INFO] [dku.utils] - File "/media/dss-design-node-ebs/dss_data/jobs/QLEARNINGWITHDSS/Build_Saved_Models_2020-11-09T14-39-40.350/compute_mi6VwW1C_NP/custom-python-recipe/pyoutJQ9s2ba0SjCO/python-exec-wrapper.py", line 206, in [14:39:43] [INFO] [dku.utils] - exec(f.read()) [14:39:43] [INFO] [dku.utils] - File "", line 10, in [14:39:43] [INFO] [dku.utils] - ModuleNotFoundError: No module named 'stable_baselines_training_wrapper'

The list of installed packages in the code environment _plugin_reinforcement-learningmanaged doesn't contain the package _stable_baselines_trainingwrapper, hence the error. What am I missing? Could you please advise how to fix this and use the Plugin with success?

DSS version 8.0.2

Thanks

tibfab commented 3 years ago

After some debugging, I found out that the package _stable_baselines_trainingwrapper is part of the plugin and based on the DSS logs, sys..path points to the correct directory _...dssdata/plugins/dev/reinforcement-learning/python-lib from that the module should be loaded. But still no luck.

tibfab commented 3 years ago

Ok, I've figured it out. It was an ACL permission issue which blocked the user (job owner) from reading the plugin directory (having DSS User Isolation Framework activated). Fixed that as admin by the use of setfacl.