You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/02/18 08:43:27 UTC
[incubator-datalab] 01/01: [DATALAB-2708]: changed how tflite-runtime is installed
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2708
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 6994305e95b6e3e2badd8ffae6644021b43cb267
Author: leonidfrolov <fr...@gmail.com>
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 041700e..f77dfa3 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -1115,7 +1115,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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org