This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
new 5769f59 [DATALAB-2091]: fixed bug with nonexistent python lib
installation
5769f59 is described below
commit 5769f592b17ad04726061d7a93fc0f9568f90744
Author: leonidfrolov <[email protected]>
AuthorDate: Thu May 6 11:46:33 2021 +0300
[DATALAB-2091]: fixed bug with nonexistent python lib installation
---
infrastructure-provisioning/src/general/lib/os/fab.py | 4 ++--
1 file 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 b116f7e..84f4453 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -89,7 +89,7 @@ def install_pip_pkg(requisites, pip_version, lib_group):
conn.sudo('{0} freeze --all | if ! grep -w -i {1} >
/tmp/{0}install_{1}.list; then echo "" > '
'/tmp/{0}install_{1}.list;fi'.format(pip_version,
changed_pip_pkg))
res = conn.sudo('cat
/tmp/{0}install_{1}.list'.format(pip_version,
changed_pip_pkg)).stdout.replace('\n', '')
- if err in installed_out and name not in installed_out:
+ if err and name not in installed_out:
status_msg = 'installation_error'
if 'ERROR: No matching distribution found for {}'.format(name)
in err:
status_msg = 'invalid_name'
@@ -134,7 +134,7 @@ def install_pip_pkg(requisites, pip_version, lib_group):
for pip_pkg in requisites:
name, vers = pip_pkg
status.append({"group": lib_group, "name": name, "version": vers,
"status": 'installation_error', "error_message": err})
- print("Failed to install {} packages".format(pip_version))
+ print("Failed to install {} packages: {}".format(pip_version, err))
return status
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]