You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/03/15 14:53:47 UTC

[incubator-dlab] branch develop updated: [DLAB-532] Fixed matplotlib downloading bug

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

omartushevskyi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/develop by this push:
     new eba0942  [DLAB-532] Fixed matplotlib downloading bug
     new 71ed477  Merge pull request #43 from Dyoma33/DLAB-dev-532
eba0942 is described below

commit eba09421f85ec8f417d97a2fdbd6eb0cdd00a06a
Author: Dyoma33 <de...@gmail.com>
AuthorDate: Fri Mar 15 16:34:44 2019 +0200

    [DLAB-532] Fixed matplotlib downloading bug
---
 infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index e091ffe..3f3aa31 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -150,6 +150,8 @@ def install_rstudio(os_user, local_spark_path, rstudio_pass, rstudio_version):
 def ensure_matplot(os_user):
     if not exists('/home/' + os_user + '/.ensure_dir/matplot_ensured'):
         try:
+            sudo("sudo sed -i~orig -e 's/# deb-src/deb-src/' /etc/apt/sources.list")
+            sudo('sudo apt-get update')
             sudo('apt-get build-dep -y python-matplotlib')
             sudo('pip2 install matplotlib==2.0.2 --no-cache-dir')
             sudo('pip3 install matplotlib==2.0.2 --no-cache-dir')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org