No module named 'yaml
Hello Dataikers,
I'm trying to start or stop a GKE cluster and i m facing an issue with error :
Failed to stop cluster : <class 'ModuleNotFoundError'> : No module named 'yaml'
On my dss server side :
python3 -c "import yaml; print(yaml.__version__)" → 5.4.1 (command return version)
Do i miss something during configuration ? pre check ?
Many thanks for your help
DSS in release 13.3.0
Best regards
Operating system used: unbuntu 22.04
Operating system used: unbuntu 22.04
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
Which integration are you planing to use? Managed or Unmanaged GKE clusters?
https://doc.dataiku.com/dss/latest/containers/gke/index.html
-
I m planning to use Managed GKE clusters (already created on GCP).
yesterday evening i worked on PyYAML, and the issue seems to come from pyenv, PyYAML need to be installed in it. Like google-api-python-client.
Hard to find official documentation about how pyenv works on dss
Best regards
Frederic
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
If you are planning to use Managed GKE clusters then why are you trying to start or stop the GKE cluster via the command line? Managed clusters means Dataiku does the cluster management for you. For managed GKE clusters the documentation is clear about what tools you need to install and configure:
https://doc.dataiku.com/dss/latest/containers/gke/managed.html
pyenv is the built-in Python code environment. You should not modify or install packages in the built-in code environment. If you need to install Python packages create a new Python code environment and use it in a Jupyter Notebook or Python recipe.