Ouranosinc / xclim

Library of derived climate variables, ie climate indicators, based on xarray.
https://xclim.readthedocs.io/en/stable/
Apache License 2.0
329 stars 58 forks source link

Error running `xclim` on TravisCI due to being unable to run `gcc` when importing xclim #224

Closed tommylees112 closed 5 years ago

tommylees112 commented 5 years ago

Description

Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.

I am trying to pass the TravisCI tests. In order to do so it is necessary to install xclim on a remote server using pip.

The build that errorred is here.

What I Did

The environment.yml file is here

 The config in travis.yml

language: python
services:
  - docker

# https://docs.travis-ci.com/user/languages/c/
matrix:
  include:
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-7
      env:
        - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"

before_install:
  - eval "${MATRIX_EVAL}"
  - docker build -t ml_drought .
  # https://stackoverflow.com/a/56116249/9940782
  - docker run ml_drought /bin/bash -c "conda upgrade -n base -c defaults --override-channels conda"
  - docker run ml_drought /bin/bash -c "source activate esowc-drought; pytest; mypy src"
  # https://github.com/travis-ci/travis-ci/issues/7940
  - sudo rm -f /etc/boto.cfg

install:
  - sudo apt-get update
  - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

  - conda env create -f environment.ubuntu.cpu.yml
  - source activate esowc-drought

script:
  - mypy src
  - pytest

notifications:
  slack:
    rooms:
      - drought-research:6LfQgoVyKQgyamPA8yICbwaJ#ecmwf_summer_of_code

The crash:

Worker information
hostname: bb34d87d-cff3-45a1-acf0-2424e72a83c5@1.production-1-worker-com-gce-9mrt
version: v6.2.0 https://github.com/travis-ci/worker/tree/5e5476e01646095f48eec13196fdb3faf8f5cbf7
instance: travis-job-c9b55965-7a72-4da6-8e6e-881199107798 travis-ci-garnet-trusty-1512502259-986baf0 (via amqp)
startup: 6.304791265s
system_info
Build system information
Build language: python
Build group: stable
Build dist: trusty
Build id: 113894668
Job id: 204529158
Runtime kernel version: 4.4.0-101-generic
travis-build version: 0a1b60afb
Build image provisioning date and time
Tue Dec  5 19:58:13 UTC 2017
Operating System Details
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty
Cookbooks Version
7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6
git version
git version 2.15.1
bash version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
docker version
Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:42:38 2017
 OS/Arch:      linux/amd64
Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:41:20 2017
 OS/Arch:      linux/amd64
 Experimental: false
clang version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-5.0.0/bin
jq version
jq-1.5
bats version
Bats 0.4.0
shellcheck version
0.4.6
shfmt version
v2.0.0
ccache version
ccache version 3.1.9
Copyright (C) 2002-2007 Andrew Tridgell
Copyright (C) 2009-2011 Joel Rosdahl
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
cmake version
cmake version 3.9.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
heroku version
heroku-cli/6.14.39-addc925 (linux-x64) node-v9.2.0
imagemagick version
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
md5deep version
4.2
mercurial version
Mercurial Distributed SCM (version 4.2.2)
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-2017 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mysql version
mysql  Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using  EditLine wrapper
openssl version
OpenSSL 1.0.1f 6 Jan 2014
packer version
Packer v1.0.2
Your version of Packer is out of date! The latest version
is 1.1.2. You can update by downloading from www.packer.io
postgresql client version
psql (PostgreSQL) 9.6.6
ragel version
Ragel State Machine Compiler version 6.8 Feb 2013
Copyright (c) 2001-2009 by Adrian Thurston
subversion version
svn, version 1.8.8 (r1568071)
   compiled Aug 10 2017, 17:20:39 on x86_64-pc-linux-gnu
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.3
  - handles 'http' scheme
  - handles 'https' scheme
sudo version
Sudo version 1.8.9p5
Configure options: --prefix=/usr -v --with-all-insults --with-pam --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-timeout=15 --with-password-timeout=0 --with-passprompt=[sudo] password for %p:  --without-lecture --with-tty-tickets --disable-root-mailer --enable-admin-flag --with-sendmail=/usr/sbin/sendmail --with-timedir=/var/lib/sudo --mandir=/usr/share/man --libexecdir=/usr/lib/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --with-selinux
Sudoers policy plugin version 1.8.9p5
Sudoers file grammar version 43
Sudoers path: /etc/sudoers
Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: authpriv
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Root may run sudo
Allow some information gathering to give useful error messages
Require fully-qualified hostnames in the sudoers file
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 15.0 minutes
Password prompt timeout: 0.0 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/lib/sudo
Default password prompt: [sudo] password for %p: 
Default user to run commands as: root
Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Path to the editor for use by visudo: /usr/bin/editor
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
File descriptors >= 3 will be closed before executing a command
Environment variables to check for sanity:
    TZ
    TERM
    LINGUAS
    LC_*
    LANGUAGE
    LANG
    COLORTERM
Environment variables to remove:
    RUBYOPT
    RUBYLIB
    PYTHONUSERBASE
    PYTHONINSPECT
    PYTHONPATH
    PYTHONHOME
    TMPPREFIX
    ZDOTDIR
    READNULLCMD
    NULLCMD
    FPATH
    PERL5DB
    PERL5OPT
    PERL5LIB
    PERLLIB
    PERLIO_DEBUG 
    JAVA_TOOL_OPTIONS
    SHELLOPTS
    GLOBIGNORE
    PS4
    BASH_ENV
    ENV
    TERMCAP
    TERMPATH
    TERMINFO_DIRS
    TERMINFO
    _RLD*
    LD_*
    PATH_LOCALE
    NLSPATH
    HOSTALIASES
    RES_OPTIONS
    LOCALDOMAIN
    CDPATH
    IFS
Environment variables to preserve:
    JAVA_HOME
    TRAVIS
    CI
    DEBIAN_FRONTEND
    XAUTHORIZATION
    XAUTHORITY
    PS2
    PS1
    PATH
    LS_COLORS
    KRB5CCNAME
    HOSTNAME
    HOME
    DISPLAY
    COLORS
Locale to use while parsing sudoers: C
Directory in which to store input/output logs: /var/log/sudo-io
File in which to store the input/output log: %{seq}
Add an entry to the utmp/utmpx file when allocating a pty
PAM service name to use
PAM service name to use for login shells
Create a new PAM session for the command to run in
Maximum I/O log sequence number: 0
Local IP address and netmask pairs:
    10.240.0.28/255.255.255.255
    172.17.0.1/255.255.0.0
Sudoers I/O plugin version 1.8.9p5
gzip version
gzip 1.6
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Jean-loup Gailly.
zip version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon.  Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.
Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 21 2013.
Zip special compilation options:
    USE_EF_UT_TIME       (store Universal Time)
    BZIP2_SUPPORT        (bzip2 library version 1.0.6, 6-Sept-2010)
        bzip2 code and library copyright (c) Julian R Seward
        (See the bzip2 license for terms of use)
    SYMLINK_SUPPORT      (symbolic links supported)
    LARGE_FILE_SUPPORT   (can read and write large files on file system)
    ZIP64_SUPPORT        (use Zip64 to store large files in archives)
    UNICODE_SUPPORT      (store and read UTF-8 Unicode paths)
    STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
    UIDGID_NOT_16BIT     (old Unix 16-bit UID/GID extra field not used)
    [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)
Encryption notice:
    The encryption code of this program is not copyrighted and is
    put in the public domain.  It was originally written in Europe
    and, to the best of our knowledge, can be freely distributed
    in both source and object forms from any country, including
    the USA under License Exception TSU of the U.S. Export
    Administration Regulations (section 740.13(e)) of 6 June 2002.
Zip environment options:
             ZIP:  [none]
          ZIPOPT:  [none]
vim version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18)
Included patches: 1-52
Extra patches: 8.0.0056
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             +rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions      
iptables version
iptables v1.4.21
curl version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
wget version
GNU Wget 1.15 built on linux-gnu.
rsync version
rsync  version 3.1.0  protocol version 31
gimme version
v1.2.0
nvm version
0.33.6
perlbrew version
/home/travis/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.80
phpenv version
rbenv 1.1.1-25-g6aa70b6
rvm version
rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
default ruby version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
CouchDB version
couchdb 1.6.1
ElasticSearch version
5.5.0
Installed Firefox version
firefox 56.0.2
MongoDB version
MongoDB 3.4.10
PhantomJS version
2.1.1
Pre-installed PostgreSQL versions
9.2.24
9.3.20
9.4.15
9.5.10
9.6.6
RabbitMQ Version
3.6.14
Redis version
redis-server 4.0.6
riak version
2.2.3
Pre-installed Go versions
1.7.4
ant version
Apache Ant(TM) version 1.9.3 compiled on April 8 2014
mvn version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /usr/local/maven-3.5.2
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix"
gradle version
------------------------------------------------------------
Gradle 4.0.1
------------------------------------------------------------
Build time:   2017-07-07 14:02:41 UTC
Revision:     38e5dc0f772daecca1d2681885d3d85414eb6826
Groovy:       2.4.11
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_151 (Oracle Corporation 25.151-b12)
OS:           Linux 4.4.0-98-generic amd64
lein version
Leiningen 2.8.1 on Java 1.8.0_151 Java HotSpot(TM) 64-Bit Server VM
Pre-installed Node.js versions
v4.8.6
v6.12.0
v6.12.1
v8.9
v8.9.1
phpenv versions
  system
  5.6
* 5.6.32 (set by /home/travis/.phpenv/version)
  7.0
  7.0.25
  7.1
  7.1.11
  hhvm
  hhvm-stable
composer --version
Composer version 1.5.2 2017-09-11 16:59:25
Pre-installed Ruby versions
ruby-2.2.7
ruby-2.3.4
ruby-2.4.1
docker_mtu
docker stop/waiting
docker start/running, process 3684
resolvconf
resolvconf stop/waiting
resolvconf start/running
apt
Adding APT Sources
1.51s$ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
gpg: keyring `/tmp/tmpy_gelb21/secring.gpg' created
gpg: keyring `/tmp/tmpy_gelb21/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpy_gelb21/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
Installing APT Packages
10.30s$ travis_apt_get_update
99.56s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install g++-7
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  cpp-7 gcc-7 gcc-7-base gcc-8-base gcc-9-base libasan4 libatomic1 libcc1-0
  libcilkrts5 libgcc-7-dev libgcc1 libgomp1 libisl15 libitm1 liblsan0 libmpfr4
  libmpx2 libquadmath0 libstdc++-7-dev libstdc++6 libtsan0 libubsan0
Suggested packages:
  gcc-7-locales g++-7-multilib gcc-7-doc libstdc++6-7-dbg gcc-7-multilib
  libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg
  liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg
  libquadmath0-dbg libstdc++-7-doc
The following NEW packages will be installed:
  cpp-7 g++-7 gcc-7 gcc-7-base gcc-8-base gcc-9-base libasan4 libcc1-0
  libcilkrts5 libgcc-7-dev libisl15 liblsan0 libmpx2 libstdc++-7-dev libubsan0
The following packages will be upgraded:
  libatomic1 libgcc1 libgomp1 libitm1 libmpfr4 libquadmath0 libstdc++6
  libtsan0
8 upgraded, 15 newly installed, 0 to remove and 300 not upgraded.
Need to get 27.7 MB of archives.
After this operation, 109 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 gcc-9-base amd64 9.1.0-2ubuntu2~14.04.2 [17.6 kB]
Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libgcc1 amd64 1:9.1.0-2ubuntu2~14.04.2 [40.5 kB]
Get:3 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libstdc++6 amd64 9.1.0-2ubuntu2~14.04.2 [381 kB]
Get:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 gcc-7-base amd64 7.4.0-1ubuntu1~14.04~ppa1 [18.7 kB]
Get:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libasan4 amd64 7.4.0-1ubuntu1~14.04~ppa1 [355 kB]
Get:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libatomic1 amd64 9.1.0-2ubuntu2~14.04.2 [9,150 B]
Get:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libcc1-0 amd64 9.1.0-2ubuntu2~14.04.2 [47.1 kB]
Get:8 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libcilkrts5 amd64 7.4.0-1ubuntu1~14.04~ppa1 [42.3 kB]
Get:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libgomp1 amd64 9.1.0-2ubuntu2~14.04.2 [88.8 kB]
Get:10 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libisl15 amd64 0.15-3~14.04 [507 kB]
Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libitm1 amd64 9.1.0-2ubuntu2~14.04.2 [27.7 kB]
Get:12 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 liblsan0 amd64 9.1.0-2ubuntu2~14.04.2 [137 kB]
Get:13 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libmpfr4 amd64 3.1.3-1~14.04 [178 kB]
Get:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 gcc-8-base amd64 8.1.0-5ubuntu1~14.04 [18.3 kB]
Get:15 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libmpx2 amd64 8.1.0-5ubuntu1~14.04 [11.7 kB]
Get:16 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libquadmath0 amd64 9.1.0-2ubuntu2~14.04.2 [145 kB]
Get:17 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libtsan0 amd64 9.1.0-2ubuntu2~14.04.2 [297 kB]
Get:18 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libubsan0 amd64 7.4.0-1ubuntu1~14.04~ppa1 [124 kB]
Get:19 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 cpp-7 amd64 7.4.0-1ubuntu1~14.04~ppa1 [6,663 kB]
Get:20 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libgcc-7-dev amd64 7.4.0-1ubuntu1~14.04~ppa1 [2,376 kB]
Get:21 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 gcc-7 amd64 7.4.0-1ubuntu1~14.04~ppa1 [7,374 kB]
Get:22 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~14.04~ppa1 [1,303 kB]
Get:23 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty/main amd64 g++-7 amd64 7.4.0-1ubuntu1~14.04~ppa1 [7,495 kB]
Fetched 27.7 MB in 1min 31s (301 kB/s)
Selecting previously unselected package gcc-9-base:amd64.
(Reading database ... 93695 files and directories currently installed.)
Preparing to unpack .../gcc-9-base_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking gcc-9-base:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Processing triggers for ccache (3.1.9-1) ...
Updating symlinks in /usr/lib/ccache ...
Setting up gcc-9-base:amd64 (9.1.0-2ubuntu2~14.04.2) ...
(Reading database ... 93701 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libgcc1:amd64 (1:9.1.0-2ubuntu2~14.04.2) over (1:4.9.3-0ubuntu4) ...
Setting up libgcc1:amd64 (1:9.1.0-2ubuntu2~14.04.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
(Reading database ... 93701 files and directories currently installed.)
Preparing to unpack .../libstdc++6_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libstdc++6:amd64 (9.1.0-2ubuntu2~14.04.2) over (4.8.4-2ubuntu1~14.04.3) ...
Setting up libstdc++6:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
Selecting previously unselected package gcc-7-base:amd64.
(Reading database ... 93702 files and directories currently installed.)
Preparing to unpack .../gcc-7-base_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Selecting previously unselected package libasan4:amd64.
Preparing to unpack .../libasan4_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking libasan4:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Preparing to unpack .../libatomic1_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libatomic1:amd64 (9.1.0-2ubuntu2~14.04.2) over (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libcc1-0:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Preparing to unpack .../libgomp1_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libgomp1:amd64 (9.1.0-2ubuntu2~14.04.2) over (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.15-3~14.04_amd64.deb ...
Unpacking libisl15:amd64 (0.15-3~14.04) ...
Preparing to unpack .../libitm1_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libitm1:amd64 (9.1.0-2ubuntu2~14.04.2) over (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking liblsan0:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Preparing to unpack .../libmpfr4_3.1.3-1~14.04_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.3-1~14.04) over (3.1.2-1) ...
Selecting previously unselected package gcc-8-base:amd64.
Preparing to unpack .../gcc-8-base_8.1.0-5ubuntu1~14.04_amd64.deb ...
Unpacking gcc-8-base:amd64 (8.1.0-5ubuntu1~14.04) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../libmpx2_8.1.0-5ubuntu1~14.04_amd64.deb ...
Unpacking libmpx2:amd64 (8.1.0-5ubuntu1~14.04) ...
Preparing to unpack .../libquadmath0_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libquadmath0:amd64 (9.1.0-2ubuntu2~14.04.2) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libtsan0_9.1.0-2ubuntu2~14.04.2_amd64.deb ...
Unpacking libtsan0:amd64 (9.1.0-2ubuntu2~14.04.2) over (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking libubsan0:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Selecting previously unselected package cpp-7.
Preparing to unpack .../cpp-7_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking cpp-7 (7.4.0-1ubuntu1~14.04~ppa1) ...
Selecting previously unselected package libgcc-7-dev:amd64.
Preparing to unpack .../libgcc-7-dev_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking libgcc-7-dev:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Selecting previously unselected package gcc-7.
Preparing to unpack .../gcc-7_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking gcc-7 (7.4.0-1ubuntu1~14.04~ppa1) ...
Selecting previously unselected package libstdc++-7-dev:amd64.
Preparing to unpack .../libstdc++-7-dev_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Selecting previously unselected package g++-7.
Preparing to unpack .../g++-7_7.4.0-1ubuntu1~14.04~ppa1_amd64.deb ...
Unpacking g++-7 (7.4.0-1ubuntu1~14.04~ppa1) ...
Processing triggers for ccache (3.1.9-1) ...
Updating symlinks in /usr/lib/ccache ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up gcc-7-base:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up libasan4:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up libatomic1:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up libcc1-0:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up libcilkrts5:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up libgomp1:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up libisl15:amd64 (0.15-3~14.04) ...
Setting up libitm1:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up liblsan0:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up libmpfr4:amd64 (3.1.3-1~14.04) ...
Setting up gcc-8-base:amd64 (8.1.0-5ubuntu1~14.04) ...
Setting up libmpx2:amd64 (8.1.0-5ubuntu1~14.04) ...
Setting up libquadmath0:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up libtsan0:amd64 (9.1.0-2ubuntu2~14.04.2) ...
Setting up libubsan0:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up cpp-7 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up libgcc-7-dev:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up gcc-7 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~14.04~ppa1) ...
Setting up g++-7 (7.4.0-1ubuntu1~14.04~ppa1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
services
0.01s$ sudo service docker start
start: Job is already running: docker
git.checkout
0.84s$ git clone --depth=50 --branch=analysis/event_detect https://github.com/esowc/ml_drought.git esowc/ml_drought
Cloning into 'esowc/ml_drought'...
remote: Enumerating objects: 94, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 316 (delta 62), reused 58 (delta 46), pack-reused 222
Receiving objects: 100% (316/316), 3.61 MiB | 16.51 MiB/s, done.
Resolving deltas: 100% (155/155), done.
$ cd esowc/ml_drought
$ git checkout -qf aeb87484e89add7e6c81865f2fcde06301e28f06
Setting environment variables from .travis.yml
$ export MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
0.01s$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.3
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6)
before_install.1
0.00s$ eval "${MATRIX_EVAL}"
136.60s$ docker build -t ml_drought .
Sending build context to Docker daemon  12.58MB
Step 1/9 : FROM continuumio/miniconda3
latest: Pulling from continuumio/miniconda3
Status: Downloaded newer image for continuumio/miniconda3:latest
 ---> 6b5cf97566c3
Step 2/9 : RUN mkdir /ml_drought
 ---> Running in be707709a9a2
 ---> 2b3f48df3bbb
Removing intermediate container be707709a9a2
Step 3/9 : WORKDIR /ml_drought
 ---> 9ada6fa34b91
Removing intermediate container cef609784d91
Step 4/9 : COPY environment.ubuntu.cpu.yml .
 ---> 0c981450632b
Step 5/9 : RUN conda env create -f ./environment.ubuntu.cpu.yml
 ---> Running in fbf0e02c3394
Collecting package metadata: ...working... done
Solving environment: ...working... done
Downloading and Extracting Packages
beautifulsoup4-4.7.1 | 140 KB    | ########## | 100% 
attrs-19.1.0         | 32 KB     | ########## | 100% 
moto-1.3.8           | 413 KB    | ########## | 100% 
gmp-6.1.2            | 751 KB    | ########## | 100% 
cffi-1.12.3          | 218 KB    | ########## | 100% 
jsonpointer-2.0      | 9 KB      | ########## | 100% 
jpeg-9c              | 251 KB    | ########## | 100% 
pyflakes-2.1.1       | 49 KB     | ########## | 100% 
jsonpickle-1.1       | 27 KB     | ########## | 100% 
bzip2-1.0.6          | 415 KB    | ########## | 100% 
icu-58.2             | 22.6 MB   | ########## | 100% 
docker-py-4.0.1      | 166 KB    | ########## | 100% 
docker-pycreds-0.4.0 | 11 KB     | ########## | 100% 
libxml2-2.9.9        | 2.0 MB    | ########## | 100% 
jsonpatch-1.23       | 12 KB     | ########## | 100% 
more-itertools-4.3.0 | 83 KB     | ########## | 100% 
ca-certificates-2019 | 146 KB    | ########## | 100% 
boto-2.49.0          | 838 KB    | ########## | 100% 
pluggy-0.11.0        | 17 KB     | ########## | 100% 
hdf4-4.2.13          | 952 KB    | ########## | 100% 
pycryptodome-3.7.3   | 5.9 MB    | ########## | 100% 
tk-8.6.8             | 3.1 MB    | ########## | 100% 
libblas-3.8.0        | 6 KB      | ########## | 100% 
xz-5.2.4             | 366 KB    | ########## | 100% 
netcdf4-1.5.1.2      | 539 KB    | ########## | 100% 
idna-2.8             | 100 KB    | ########## | 100% 
pathos-0.2.3         | 47 KB     | ########## | 100% 
aws-xray-sdk-0.95    | 34 KB     | ########## | 100% 
curl-7.62.0          | 143 KB    | ########## | 100% 
s3transfer-0.2.0     | 89 KB     | ########## | 100% 
libcurl-7.62.0       | 517 KB    | ########## | 100% 
python-jose-2.0.2    | 17 KB     | ########## | 100% 
jsondiff-1.1.2       | 8 KB      | ########## | 100% 
sqlite-3.28.0        | 1.9 MB    | ########## | 100% 
libgfortran-ng-7.3.0 | 1.3 MB    | ########## | 100% 
wrapt-1.11.1         | 45 KB     | ########## | 100% 
ecdsa-0.13           | 39 KB     | ########## | 100% 
openblas-0.3.6       | 15.8 MB   | ########## | 100% 
cdsapi-0.1.4         | 13 KB     | ########## | 100% 
requests-2.21.0      | 84 KB     | ########## | 100% 
boto3-1.9.153        | 69 KB     | ########## | 100% 
lxml-4.3.3           | 1.5 MB    | ########## | 100% 
libssh2-1.8.2        | 257 KB    | ########## | 100% 
itsdangerous-1.1.0   | 16 KB     | ########## | 100% 
markupsafe-1.1.1     | 26 KB     | ########## | 100% 
python-dateutil-2.8. | 219 KB    | ########## | 100% 
py-1.8.0             | 65 KB     | ########## | 100% 
libxslt-1.1.32       | 539 KB    | ########## | 100% 
pycparser-2.19       | 171 KB    | ########## | 100% 
pysocks-1.6.8        | 22 KB     | ########## | 100% 
zlib-1.2.11          | 101 KB    | ########## | 100% 
liblapack-3.8.0      | 6 KB      | ########## | 100% 
libnetcdf-4.6.2      | 1.3 MB    | ########## | 100% 
atomicwrites-1.3.0   | 9 KB      | ########## | 100% 
pyopenssl-19.0.0     | 81 KB     | ########## | 100% 
jsonschema-3.0.0a3   | 80 KB     | ########## | 100% 
responses-0.9.0      | 17 KB     | ########## | 100% 
xmltodict-0.12.0     | 11 KB     | ########## | 100% 
mccabe-0.6.1         | 8 KB      | ########## | 100% 
yaml-0.1.7           | 78 KB     | ########## | 100% 
mypy-0.701           | 924 KB    | ########## | 100% 
openssl-1.1.1b       | 4.0 MB    | ########## | 100% 
appdirs-1.4.3        | 11 KB     | ########## | 100% 
docutils-0.14        | 692 KB    | ########## | 100% 
cfn-lint-0.20.2      | 1.4 MB    | ########## | 100% 
pox-0.2.5            | 23 KB     | ########## | 100% 
cookies-2.2.1        | 37 KB     | ########## | 100% 
wheel-0.33.1         | 34 KB     | ########## | 100% 
chardet-3.0.4        | 167 KB    | ########## | 100% 
soupsieve-1.9.1      | 58 KB     | ########## | 100% 
typed-ast-1.3.5      | 204 KB    | ########## | 100% 
pytz-2019.1          | 227 KB    | ########## | 100% 
botocore-1.12.153    | 3.3 MB    | ########## | 100% 
libiconv-1.15        | 2.0 MB    | ########## | 100% 
websocket-client-0.5 | 58 KB     | ########## | 100% 
xarray-0.12.1        | 387 KB    | ########## | 100% 
packaging-19.0       | 23 KB     | ########## | 100% 
asn1crypto-0.24.0    | 154 KB    | ########## | 100% 
pip-19.1             | 1.8 MB    | ########## | 100% 
flake8-3.7.7         | 125 KB    | ########## | 100% 
hdf5-1.10.4          | 5.3 MB    | ########## | 100% 
entrypoints-0.3      | 11 KB     | ########## | 100% 
libffi-3.2.1         | 46 KB     | ########## | 100% 
mypy_extensions-0.4. | 9 KB      | ########## | 100% 
werkzeug-0.15.4      | 254 KB    | ########## | 100% 
dill-0.2.9           | 112 KB    | ########## | 100% 
pyyaml-5.1           | 183 KB    | ########## | 100% 
pandas-0.24.2        | 11.1 MB   | ########## | 100% 
flask-1.0.3          | 68 KB     | ########## | 100% 
pytest-flake8-1.0.4  | 11 KB     | ########## | 100% 
ncurses-6.1          | 1.3 MB    | ########## | 100% 
backports.weakref-1. | 8 KB      | ########## | 100% 
ppft-1.6.4.9         | 58 KB     | ########## | 100% 
multiprocess-0.70.7  | 183 KB    | ########## | 100% 
numpy-1.16.3         | 4.3 MB    | ########## | 100% 
backports.tempfile-1 | 10 KB     | ########## | 100% 
urllib3-1.24.2       | 149 KB    | ########## | 100% 
cftime-1.0.3.4       | 306 KB    | ########## | 100% 
setuptools-41.0.1    | 616 KB    | ########## | 100% 
future-0.17.1        | 700 KB    | ########## | 100% 
click-7.0            | 61 KB     | ########## | 100% 
libcblas-3.8.0       | 6 KB      | ########## | 100% 
cryptography-2.6.1   | 607 KB    | ########## | 100% 
mock-3.0.5           | 44 KB     | ########## | 100% 
aws-sam-translator-1 | 83 KB     | ########## | 100% 
six-1.12.0           | 22 KB     | ########## | 100% 
certifi-2019.3.9     | 149 KB    | ########## | 100% 
readline-7.0         | 391 KB    | ########## | 100% 
jinja2-2.10.1        | 91 KB     | ########## | 100% 
pytest-4.4.2         | 345 KB    | ########## | 100% 
backports-1.0        | 4 KB      | ########## | 100% 
pyrsistent-0.15.2    | 89 KB     | ########## | 100% 
psutil-5.4.8         | 312 KB    | ########## | 100% 
jmespath-0.9.4       | 20 KB     | ########## | 100% 
pyparsing-2.4.0      | 55 KB     | ########## | 100% 
pycodestyle-2.5.0    | 36 KB     | ########## | 100% 
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Ran pip subprocess with arguments:
['/opt/conda/envs/esowc-drought/bin/python', '-m', 'pip', 'install', '-U', '-r', '/ml_drought/condaenv.vlfu759h.requirements.txt']
Pip subprocess output:
Collecting xclim (from -r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/e1/2b/0d5c0423ae8204211dbd2d5c2b8b87e3128ee32d31372054af9e5ab81376/xclim-0.9b0-py2.py3-none-any.whl (33.4MB)
Requirement already satisfied, skipping upgrade: pandas>=0.23 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (0.24.2)
Collecting pyproj>=1.9.5.1 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/c6/c9/4418c5833ac2aac9f9b91eebc569c70ddc5073aecec8eb9f021eab86a5fa/pyproj-2.1.3-cp37-cp37m-manylinux1_x86_64.whl (10.8MB)
Collecting dask[complete] (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/58/80/6059587dcf80821fbccdc1f06b6d3fd29b64c9b38fbf1ea42889460de3de/dask-1.2.2-py2.py3-none-any.whl (717kB)
Collecting bottleneck>=1.2.1 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/05/ae/cedf5323f398ab4e4ff92d6c431a3e1c6a186f9b41ab3e8258dff786a290/Bottleneck-1.2.1.tar.gz (105kB)
Collecting boltons>=18.0 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/32/e8/f1fcb6ba6b70d2582e7d5cb4710b4ac39f6da1976286f5306be79913d545/boltons-19.1.0-py2.py3-none-any.whl (163kB)
Requirement already satisfied, skipping upgrade: cftime>=1.0.3 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (1.0.3.4)
Collecting scipy>=1.2 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/5d/bd/c0feba81fb60e231cf40fc8a322ed5873c90ef7711795508692b1481a4ae/scipy-1.3.0-cp37-cp37m-manylinux1_x86_64.whl (25.2MB)
Collecting inspect2 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/72/27/c979524f27502080ab84833a6a5a8264f3cac4d7aa982ee67cf50842a5ab/inspect2-0.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: netCDF4>=1.4 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (1.5.1.2)
Collecting pint>=0.8 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/15/9d/bf177ebbc57d25e9e296addc14a1303d1e34d7964af5df428a8332349c42/Pint-0.9-py2.py3-none-any.whl (138kB)
Requirement already satisfied, skipping upgrade: xarray>=0.12.0 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (0.12.1)
Collecting unittest2 (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Requirement already satisfied, skipping upgrade: six in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (1.12.0)
Requirement already satisfied, skipping upgrade: numpy>=1.15 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (1.16.3)
Requirement already satisfied, skipping upgrade: pytz>=2011k in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from pandas>=0.23->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (2019.1)
Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.0 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from pandas>=0.23->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (2.8.0)
Collecting cloudpickle>=0.2.1; extra == "complete" (from dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/24/fb/4f92f8c0f40a0d728b4f3d5ec5ff84353e705d8ff5e3e447620ea98b06bd/cloudpickle-1.1.1-py2.py3-none-any.whl
Collecting toolz>=0.7.3; extra == "complete" (from dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/14/d0/a73c15bbeda3d2e7b381a36afb0d9cd770a9f4adc5d1532691013ba881db/toolz-0.9.0.tar.gz (45kB)
Collecting partd>=0.3.8; extra == "complete" (from dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/9e/f5/c02903ad5a444c9f80e4d1fe4d512afd76e3801de2fba80ea9ed28f9290c/partd-0.3.10-py3-none-any.whl
Collecting distributed>=1.22; extra == "complete" (from dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/16/00/c2883c4e234b493b81521e5f825cad89004210ca928f3ca161a1dafd8598/distributed-1.28.1-py2.py3-none-any.whl (517kB)
Collecting argparse (from unittest2->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting traceback2 (from unittest2->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
Collecting locket (from partd>=0.3.8; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/d0/22/3c0f97614e0be8386542facb3a7dcfc2584f7b83608c02333bced641281c/locket-0.2.0.tar.gz
Requirement already satisfied, skipping upgrade: psutil>=5.0 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (5.4.8)
Collecting tornado>=5 (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/03/3f/5f89d99fca3c0100c8cede4f53f660b126d39e0d6a1e943e95cc3ed386fb/tornado-6.0.2.tar.gz (481kB)
Collecting zict>=0.1.3 (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/bd/45/a2e6f95a850cd407d785f2f8624b02e72baf6ab910aea4bdcac7e18b4871/zict-0.1.4-py2.py3-none-any.whl
Collecting msgpack (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/a8/7b/630049fc4af9e68a625738612edc264ce7cb586c5001a2d4d2209a4f61c1/msgpack-0.6.1-cp37-cp37m-manylinux1_x86_64.whl (245kB)
Requirement already satisfied, skipping upgrade: click>=6.6 in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (7.0)
Collecting sortedcontainers!=2.0.0,!=2.0.1 (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/13/f3/cf85f7c3a2dbd1a515d51e1f1676d971abe41bba6f4ab5443240d9a78e5b/sortedcontainers-2.1.0-py2.py3-none-any.whl
Collecting tblib (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/64/b5/ebb1af4d843047ccd7292b92f5e5f8643153e8b95d14508d9fe3b35f7004/tblib-1.4.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: pyyaml in /opt/conda/envs/esowc-drought/lib/python3.7/site-packages (from distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1)) (5.1)
Collecting linecache2 (from traceback2->unittest2->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/c7/a3/c5da2a44c85bfbb6eebcfc1dde24933f8704441b98fdde6528f4831757a6/linecache2-1.0.0-py2.py3-none-any.whl
Collecting heapdict (from zict>=0.1.3->distributed>=1.22; extra == "complete"->dask[complete]->xclim->-r /ml_drought/condaenv.vlfu759h.requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/e2/ca/f5feba2f939c97629dbce52a17acc95a0d10256ef620334795379dda8ce6/HeapDict-1.0.0.tar.gz
Building wheels for collected packages: bottleneck, toolz, locket, tornado, heapdict
  Building wheel for bottleneck (setup.py): started
  Building wheel for bottleneck (setup.py): finished with status 'error'
  Running setup.py clean for bottleneck
  Building wheel for toolz (setup.py): started
  Building wheel for toolz (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/f4/0c/f6/ce6b2d1aa459ee97cc3c0f82236302bd62d89c86c700219463
  Building wheel for locket (setup.py): started
  Building wheel for locket (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/26/1e/e8/4fa236ec931b1a0cdd61578e20d4934d7bf188858723b84698
  Building wheel for tornado (setup.py): started
  Building wheel for tornado (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/61/7e/7a/5e02e60dc329aef32ecf70e0425319ee7e2198c3a7cf98b4a2
  Building wheel for heapdict (setup.py): started
  Building wheel for heapdict (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/40/b9/42/344857b482c954f48bcff6db72d388e30bf2bee4ed14706faa
Successfully built toolz locket tornado heapdict
Failed to build bottleneck
Installing collected packages: pyproj, cloudpickle, toolz, locket, partd, tornado, heapdict, zict, msgpack, sortedcontainers, tblib, distributed, dask, bottleneck, boltons, scipy, inspect2, pint, argparse, linecache2, traceback2, unittest2, xclim
  Running setup.py install for bottleneck: started
    Running setup.py install for bottleneck: finished with status 'error'
CondaEnvException: Pip failed
Pip subprocess error:
  ERROR: Complete output from command /opt/conda/envs/esowc-drought/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-mvf968by/bottleneck/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-wc0mbbkr --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/bottleneck
  copying bottleneck/__init__.py -> build/lib.linux-x86_64-3.7/bottleneck
  copying bottleneck/version.py -> build/lib.linux-x86_64-3.7/bottleneck
  creating build/lib.linux-x86_64-3.7/bottleneck/slow
  copying bottleneck/slow/reduce.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
  copying bottleneck/slow/nonreduce.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
  copying bottleneck/slow/__init__.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
  copying bottleneck/slow/nonreduce_axis.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
  copying bottleneck/slow/move.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
  creating build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/input_modifcation_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/nonreduce_axis_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/__init__.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/util.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/nonreduce_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/list_input_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/scalar_input_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/move_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  copying bottleneck/tests/reduce_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
  creating build/lib.linux-x86_64-3.7/bottleneck/benchmark
  copying bottleneck/benchmark/bench.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
  copying bottleneck/benchmark/autotimeit.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
  copying bottleneck/benchmark/__init__.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
  copying bottleneck/benchmark/bench_detailed.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
  creating build/lib.linux-x86_64-3.7/bottleneck/src
  copying bottleneck/src/__init__.py -> build/lib.linux-x86_64-3.7/bottleneck/src
  copying bottleneck/src/template.py -> build/lib.linux-x86_64-3.7/bottleneck/src
  copying bottleneck/LICENSE -> build/lib.linux-x86_64-3.7/bottleneck
  running build_ext
  building 'bottleneck.reduce' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/bottleneck
  creating build/temp.linux-x86_64-3.7/bottleneck/src
  gcc -pthread -B /opt/conda/envs/esowc-drought/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/esowc-drought/lib/python3.7/site-packages/numpy/core/include -I/opt/conda/envs/esowc-drought/include/python3.7m -c bottleneck/src/reduce.c -o build/temp.linux-x86_64-3.7/bottleneck/src/reduce.o -O2
  unable to execute 'gcc': No such file or directory
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for bottleneck
    ERROR: Complete output from command /opt/conda/envs/esowc-drought/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-mvf968by/bottleneck/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pa5g4swc/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    running build_ext
    building 'bottleneck.reduce' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/bottleneck
    creating build/temp.linux-x86_64-3.7/bottleneck/src
    gcc -pthread -B /opt/conda/envs/esowc-drought/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/esowc-drought/lib/python3.7/site-packages/numpy/core/include -I/opt/conda/envs/esowc-drought/include/python3.7m -c bottleneck/src/reduce.c -o build/temp.linux-x86_64-3.7/bottleneck/src/reduce.o -O2
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/opt/conda/envs/esowc-drought/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-mvf968by/bottleneck/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pa5g4swc/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-mvf968by/bottleneck/
The command '/bin/sh -c conda env create -f ./environment.ubuntu.cpu.yml' returned a non-zero code: 1
The command "docker build -t ml_drought ." failed and exited with 1 during .
Your build has been stopped.
huard commented 5 years ago

xclim can be installed with conda as of yesterday. Another option is to install bottleneck using conda instead of letting pip do the installation. Your environment seems to be missing the gcc compiler, which seems weird. Let us know how it goes.

tommylees112 commented 5 years ago

The build passed!!! :+1:

name: esowc-drought
channels:
  - conda-forge
  - defaults
dependencies:
  - appdirs=1.4.3
  - asn1crypto=0.24.0
  - atomicwrites=1.3.0
  - attrs=19.1.0
  - aws-sam-translator=1.11.0
  - aws-xray-sdk=0.95
  - backports=1.0
  - backports.tempfile=1.0
  - backports.weakref=1.0.post1
  - beautifulsoup4=4.7.1
  - boto=2.49.0
  - boto3=1.9.153
  - botocore=1.12.153
  - bzip2=1.0.6
  - ca-certificates=2019.3.9
  - cdsapi=0.1.4
  - certifi=2019.3.9
  - cffi=1.12.3
  - cfn-lint=0.20.2
  - cftime=1.0.3.4
  - chardet=3.0.4
  - click=7.0
  - cookies=2.2.1
  - cryptography=2.6.1
  - curl=7.62.0
  - dill=0.2.9
  - docker-py=4.0.1
  - docker-pycreds=0.4.0
  - docutils=0.14
  - ecdsa=0.13
  - entrypoints=0.3
  - flake8=3.7.7
  - flask=1.0.3
  - future=0.17.1
  - gmp=6.1.2
  - hdf4=4.2.13
  - hdf5=1.10.4
  - icu=58.2
  - idna=2.8
  - itsdangerous=1.1.0
  - jinja2=2.10.1
  - jmespath=0.9.4
  - jpeg=9c
  - jsondiff=1.1.2
  - jsonpatch=1.23
  - jsonpickle=1.1
  - jsonpointer=2.0
  - jsonschema=3.0.0a3
  - libblas=3.8.0
  - libcblas=3.8.0
  - libcurl=7.62.0
  - libedit=3.1.20181209
  - libffi=3.2.1
  - libgcc-ng=8.2.0
  - libgfortran-ng=7.3.0
  - libiconv=1.15
  - liblapack=3.8.0
  - libnetcdf=4.6.2
  - libssh2=1.8.2
  - libstdcxx-ng=8.2.0
  - libxml2=2.9.9
  - libxslt=1.1.32
  - lxml=4.3.3
  - markupsafe=1.1.1
  - mccabe=0.6.1
  - mock=3.0.5
  - more-itertools=4.3.0
  - moto=1.3.8
  - multiprocess=0.70.7
  - mypy=0.701
  - mypy_extensions=0.4.1
  - ncurses=6.1
  - netcdf4=1.5.1.2
  - numpy=1.16.3
  - openblas=0.3.6
  - openssl=1.1.1b
  - packaging=19.0
  - pandas=0.24.2
  - pathos=0.2.3
  - pip=19.1
  # - pip:
    # - xclim
    # - git+https://github.com/Ouranosinc/xclim.git@8438b0e5001c4014d0a318b974863e2b4dc4cc41#egg=xclim
  - pluggy=0.11.0
  - pox=0.2.5
  - ppft=1.6.4.9
  - psutil=5.4.8
  - py=1.8.0
  - pycodestyle=2.5.0
  - pycparser=2.19
  - pycryptodome=3.7.3
  - pyflakes=2.1.1
  - pyopenssl=19.0.0
  - pyparsing=2.4.0
  - pyrsistent=0.15.2
  - pysocks=1.6.8
  - pytest=4.4.2
  - pytest-flake8=1.0.4
  - python=3.7.3
  - python-dateutil=2.8.0
  - python-jose=2.0.2
  - pytz=2019.1
  - pyyaml=5.1
  - readline=7.0
  - requests=2.21.0
  - responses=0.9.0
  - s3transfer=0.2.0
  - setuptools=41.0.1
  - six=1.12.0
  - soupsieve=1.9.1
  - sqlite=3.28.0
  - tk=8.6.8
  - typed-ast=1.3.5
  - urllib3=1.24.2
  - websocket-client=0.56.0
  - werkzeug=0.15.4
  - wheel=0.33.1
  - wrapt=1.11.1
  - xarray=0.12.1
  - xmltodict=0.12.0
  - xz=5.2.4
  - xclim=0.9b0
  - yaml=0.1.7
  - zlib=1.2.11

thanks for uploading to conda-forge