This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2409 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit e885bad8584f96cdde5bedec83c9ef207c24ebeb Author: leonidfrolov <[email protected]> AuthorDate: Thu Oct 7 13:29:41 2021 +0300 [DATALAB-2409]: fixed scikit_learn version variable --- infrastructure-provisioning/src/general/conf/datalab.ini | 2 +- infrastructure-provisioning/src/general/lib/os/fab.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure-provisioning/src/general/conf/datalab.ini b/infrastructure-provisioning/src/general/conf/datalab.ini index 7d399e3..1884a1c 100644 --- a/infrastructure-provisioning/src/general/conf/datalab.ini +++ b/infrastructure-provisioning/src/general/conf/datalab.ini @@ -120,7 +120,7 @@ matplotlib = 3.4.2 pandas = 1.3.1 sympy = 1.8 pillow = 8.3.1 -scikit-learn = 0.24.2 +scikit_learn = 0.24.2 diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py index 088d81d..e2f3439 100644 --- a/infrastructure-provisioning/src/general/lib/os/fab.py +++ b/infrastructure-provisioning/src/general/lib/os/fab.py @@ -334,12 +334,12 @@ def ensure_python_venv(python_venv_version): pip_command = '/opt/python/python{0}/bin/pip{1}'.format(python_venv_version, python_venv_version[:3]) conn.sudo('''bash -l -c '{0} && {1} install -UI pip=={2}' '''.format(venv_command, pip_command, os.environ['conf_pip_version'])) - conn.sudo('''bash -l -c '{} && {} install -UI ipython=={} ipykernel=={} NumPy=={} SciPy=={} Matplotlib=={} - pandas=={} Sympy=={} Pillow=={} scikit-learn=={} --no-cache-dir' ''' + conn.sudo('''bash -l -c '{} && {} install -UI ipython=={} ipykernel=={} NumPy=={} SciPy=={} Matplotlib=={} ''' + '''pandas=={} Sympy=={} Pillow=={} scikit-learn=={} --no-cache-dir' ''' .format(venv_command, pip_command, os.environ['pip_packages_ipython'], os.environ['pip_packages_ipykernel'], os.environ['pip_packages_numpy'], os.environ['pip_packages_scipy'], os.environ['pip_packages_matplotlib'], os.environ['pip_packages_pandas'], os.environ['pip_packages_sympy'], os.environ['pip_packages_pillow'], - os.environ['pip_packages_scikit-learn'])) + os.environ['pip_packages_scikit_learn'])) except Exception as err: logging.error('Function ensure_python_venv error:', str(err)) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
