This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch 2.5.1-tcpc-deployment
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/2.5.1-tcpc-deployment by this 
push:
     new 31ac305  [DATALAB-2708]: changed how tflite-runtime is installed
31ac305 is described below

commit 31ac30542d826735202a12f2695ee58864198619
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Feb 18 10:33:38 2022 +0200

    [DATALAB-2708]: changed how tflite-runtime is installed
---
 infrastructure-provisioning/src/general/lib/os/fab.py                   | 2 +-
 infrastructure-provisioning/src/tensor/scripts/configure_tensor_node.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py 
b/infrastructure-provisioning/src/general/lib/os/fab.py
index a37d440..838f070 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -1119,7 +1119,7 @@ def remove_unexisting_kernel(os_user):
     if not exists(conn, 
'/home/{}/.ensure_dir/unexisting_kernel_removed'.format(os_user)):
         try:
             conn.sudo('jupyter-kernelspec remove -f python3')
-            conn.sudo('jupyter kernelspec uninstall python3', warn=True)
+            conn.sudo('jupyter kernelspec uninstall -y python3', warn=True)
             conn.sudo('touch 
/home/{}/.ensure_dir/unexisting_kernel_removed'.format(os_user))
         except Exception as err:
             logging.error('Function remove_unexisting_kernel error:', str(err))
diff --git 
a/infrastructure-provisioning/src/tensor/scripts/configure_tensor_node.py 
b/infrastructure-provisioning/src/tensor/scripts/configure_tensor_node.py
index 1f78787..953b987 100644
--- a/infrastructure-provisioning/src/tensor/scripts/configure_tensor_node.py
+++ b/infrastructure-provisioning/src/tensor/scripts/configure_tensor_node.py
@@ -150,7 +150,7 @@ if __name__ == "__main__":
 
     print("Install python venv required libs")
     ensure_venv_libs(args.os_user, venv_libs)
-    ensure_venv_libs(args.os_user, '--extra-index-url 
https://google-coral.github.io/py-repo/ tflite_runtime==2.5.0')
+    datalab.fab.install_venv_pip_pkg(args.os_user, '--extra-index-url 
https://google-coral.github.io/py-repo/ tflite_runtime==2.5.0')
 
     #POST INSTALLATION PROCESS
     print("Updating pyOpenSSL library")

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to