Upgrade of Cloud Pak for Data makes some notebooks unusable in Maximo Health and Predict - Utilities
After Cloud Pak for Data is upgraded to version 4.0, the Watson Studio notebooks and jobs that are used in Maximo® Health and Predict - Utilities no longer work correctly.
Symptom
After Cloud Pak for Data is upgraded to version 4.0, the asset-class specific notebooks and jobs in Watson Studio that are associated with Cloud Pak for Data 3.0 cannot be used in scoring groups in Maximo Health and Predict - Utilities.
Cause
The notebooks and jobs in Watson Studio are not associated with version 3.7 of the Python runtime environment.
Resolution
- Log in to the Cloud Pak for Data dashboard as an administrator.
- Click Quick navigation->All projects.
- In your Maximo Health and Predict - Utilities project, click Assets->Notebooks.
- Associate each notebook that includes
3.0.0
in its name with the Python 3.7 runtime environment.- Clicke of the notebooks, for example
IBM-SCFF-Cables-3.0.0.ipynb
, and click Change Environment. - In the drop down, click Default Python 3.7 (1 vCPU and 2GB RAM) and click Associate.
- Edit the notebook and comment out the following lines by inserting a hash character, that is '#', before each line:
from ctypes import * lib1=cdll.LoadLibrary('/opt/conda/envs/Python-3.7-main/lib/libpython3.7m.so.1.0')
- Click Save Notebook and Save Version.
- Clicke of the notebooks, for example
- In your Maximo Health and Predict - Utilities project, click Jobs.
- Associate each job that includes
3-0-0
in its name with the Python 3.7 runtime environment.- Clicke of the jobs, for example
Run-IBM-SCGF-Cables-3-0-0
, and click Edit Configuration->Next. - In the dropdown, click Default Python 3.7.
- Click Next until you reach the Review and save step.
- Review the details and save your changes.
- Clicke of the jobs, for example