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

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

commit f22e51307728fc6e51d945ce83982cda9665314e
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Jan 18 12:00:48 2022 +0200

    [DATALAB-2631]: fixed activate command not found
---
 infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py 
b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index dca9c9b..f59a305 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -1560,7 +1560,7 @@ def installing_python(region, bucket, user_name, 
cluster_name, application='', p
             subprocess.run('sudo echo "[global]" >> /etc/pip.conf', 
shell=True, check=True)
             subprocess.run('sudo echo "timeout = 600" >> /etc/pip.conf', 
shell=True, check=True)
         subprocess.run('sudo -i virtualenv /opt/python/python' + 
python_version, shell=True, check=True)
-        venv_command = '/bin/bash /opt/python/python' + python_version + 
'/bin/activate'
+        venv_command = '/bin/bash source /opt/python/python' + python_version 
+ '/bin/activate'
         pip_command = '/opt/python/python' + python_version + '/bin/pip' + 
python_version[:3]
         if region == 'cn-north-1':
             try:

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

Reply via email to