Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubekins-e2e fails to run a bazel build when wrapped by runner.sh #18706

Closed
michaelmdresser opened this issue Aug 6, 2020 · 15 comments
Closed
Assignees
Labels
area/images kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@michaelmdresser
Copy link
Contributor

michaelmdresser commented Aug 6, 2020

What happened:
When running a bazel build command as part of a prow job spec (testing with mkpod/mkpj deploying to a GKE cluster), it fails building python-gflags. When the command is not wrapped by runner.sh, it works fine.

What you expected to happen:
The build should complete without incident.

How to reproduce it (as minimally and precisely as possible):
Write a periodic job spec like so:

periodics:
- interval: 3h
  cluster: k8s-infra-prow-build
  name: minimal-reproduce-bazel-failure
  spec:
    containers:
    - image: gcr.io/k8s-testimages/kubekins-e2e:v20200802-ff98b58-master
      command:
      - runner.sh
      args:
      - "/bin/bash"
      - "-c"
      - git clone https://github.com/kubernetes/cloud-provider-gcp;
        cd cloud-provider-gcp;
        bazel build //release:release-tars;

Use mkpj.sh --job="minimal-reproduce-bazel-failure > pj.yaml. Then mkpod --prow-job="pj.yaml" > pod.yaml.

Generated pod spec:

apiVersion: v1
kind: Pod
metadata:
  annotations:
    prow.k8s.io/job: minimal-reproduce-bazel-failure
  creationTimestamp: null
  labels:
    created-by-prow: "true"
    prow.k8s.io/build-id: ""
    prow.k8s.io/id: 3ca4b638-d80e-11ea-b0ec-0242c0a80902
    prow.k8s.io/job: minimal-reproduce-bazel-failure
    prow.k8s.io/type: periodic
  name: 3ca4b638-d80e-11ea-b0ec-0242c0a80902
spec:
  automountServiceAccountToken: false
  containers:
  - args:
    - /bin/bash
    - -c
    - git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp;
      bazel build //release:release-tars;
    command:
    - runner.sh
    env:
    - name: GOPROXY
      value: https://proxy.golang.org
    - name: BUILD_ID
    - name: BUILD_NUMBER
    - name: CI
      value: "true"
    - name: JOB_NAME
      value: minimal-reproduce-bazel-failure
    - name: JOB_SPEC
      value: '{"type":"periodic","job":"minimal-reproduce-bazel-failure","prowjobid":"3ca4b638-d80e-11ea-b0ec-0242c0a80902"}'
    - name: JOB_TYPE
      value: periodic
    - name: PROW_JOB_ID
      value: 3ca4b638-d80e-11ea-b0ec-0242c0a80902
    image: gcr.io/k8s-testimages/kubekins-e2e:v20200802-ff98b58-master
    name: test
    resources: {}
    terminationMessagePolicy: FallbackToLogsOnError
  restartPolicy: Never
status: {}


Deploy to a cluster with: kubectl apply -f pod.yaml.

Watch logs with kubectl. Observe the following error output:

fatal: not a git repository (or any of the parent directories): .git
+ /bin/bash -c 'git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp; bazel build //release:release-tars;'
Cloning into 'cloud-provider-gcp'...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: Call stack for the definition of repository 'pip_deps' which is a pip_import (rule definition at /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/rules_python/python/pip.bzl:51:14):
 - <builtin>
 - /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/py_repositories.bzl:36:9
 - /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/deps.bzl:35:5
 - /workspace/cloud-provider-gcp/WORKSPACE:68:1
Loading: 0 packages loaded
ERROR: An error occurred during the fetch of repository 'pip_deps':
   pip_import failed: Collecting six==1.11.0 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Saved ./six-1.11.0-py2.py3-none-any.whl
Collecting addict==2.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/62/55/bbfdbdd6c44c78a0715d5569d579497cd41efa75b6ac84d6939c67e6f870/addict-2.1.2.tar.gz
Collecting PyYAML==5.1 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz (274kB)
Collecting python-gflags==3.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/df/ec/e31302d355bcb9d207d9b858adc1ecc4a6d8c855730c8ba4ddbdd3f8eb8d/python-gflags-3.1.2.tar.gz (52kB)
Skipping six, due to already being wheel.
Building wheels for collected packages: addict, PyYAML, python-gflags
  Running setup.py bdist_wheel for addict: started
  Running setup.py bdist_wheel for addict: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/addict/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/tmpdlHqIbpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/addict
  copying addict/addict.py -> build/lib.linux-x86_64-2.7/addict
  copying addict/__init__.py -> build/lib.linux-x86_64-2.7/addict
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/addict.py -> build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/__init__.py -> build/bdist.linux-x86_64/wheel/addict
  running install_egg_info
  running egg_info
  writing addict.egg-info/PKG-INFO
  writing top-level names to addict.egg-info/top_level.txt
  writing dependency_links to addict.egg-info/dependency_links.txt
  reading manifest file 'addict.egg-info/SOURCES.txt'
  writing manifest file 'addict.egg-info/SOURCES.txt'
  Copying addict.egg-info to build/bdist.linux-x86_64/wheel/addict-2.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/addict-2.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/addict/setup.py", line 28, in <module>
      test_suite='test_addict'
    File "/tmp/tmpASuLQ5/setuptools-tmp/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for addict
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/PyYAML/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/tmpAeMXH4pip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
  running build_ext
  building '_yaml' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/ext
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
  In file included from ext/_yaml.c:591:
  ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
   #include <yaml.h>
            ^~~~~~~~
  compilation terminated.
  Error compiling module, falling back to pure Python
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/reader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/parser.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/tokens.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/cyaml.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/nodes.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/constructor.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/resolver.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/scanner.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/emitter.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/events.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/dumper.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/composer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/error.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/serializer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/representer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/loader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/__init__.py -> build/bdist.linux-x86_64/wheel/yaml
  running install_egg_info
  running egg_info
  creating lib/PyYAML.egg-info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  Copying lib/PyYAML.egg-info to build/bdist.linux-x86_64/wheel/PyYAML-5.1-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/PyYAML-5.1.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/PyYAML/setup.py", line 314, in <module>
      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for PyYAML
  Running setup.py bdist_wheel for python-gflags: started
  Running setup.py bdist_wheel for python-gflags: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/python-gflags/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/tmpfw33CMpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/gflags
  copying gflags/argument_parser.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flag.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flagvalues.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_unicode_literals_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_formatting_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/exceptions.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/validators.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/__init__.py -> build/lib.linux-x86_64-2.7/gflags
  creating build/lib.linux-x86_64-2.7/gflags/third_party
  copying gflags/third_party/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party
  creating build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  copying gflags/third_party/pep257/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/argument_parser.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flag.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flagvalues.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_unicode_literals_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_formatting_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers.py -> build/bdist.linux-x86_64/wheel/gflags
  creating build/bdist.linux-x86_64/wheel/gflags/third_party
  creating build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/pep257/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party
  copying build/lib.linux-x86_64-2.7/gflags/exceptions.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/validators.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/__init__.py -> build/bdist.linux-x86_64/wheel/gflags
  running install_data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  copying gflags2man.py -> build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  running install_egg_info
  running egg_info
  creating python_gflags.egg-info
  writing python_gflags.egg-info/PKG-INFO
  writing top-level names to python_gflags.egg-info/top_level.txt
  writing dependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
ERROR: no such package '@pip_deps//': pip_import failed: Collecting six==1.11.0 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Saved ./six-1.11.0-py2.py3-none-any.whl
Collecting addict==2.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/62/55/bbfdbdd6c44c78a0715d5569d579497cd41efa75b6ac84d6939c67e6f870/addict-2.1.2.tar.gz
Collecting PyYAML==5.1 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz (274kB)
Collecting python-gflags==3.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/df/ec/e31302d355bcb9d207d9b858adc1ecc4a6d8c855730c8ba4ddbdd3f8eb8d/python-gflags-3.1.2.tar.gz (52kB)
Skipping six, due to already being wheel.
Building wheels for collected packages: addict, PyYAML, python-gflags
  Running setup.py bdist_wheel for addict: started
  Running setup.py bdist_wheel for addict: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/addict/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/tmpdlHqIbpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/addict
  copying addict/addict.py -> build/lib.linux-x86_64-2.7/addict
  copying addict/__init__.py -> build/lib.linux-x86_64-2.7/addict
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/addict.py -> build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/__init__.py -> build/bdist.linux-x86_64/wheel/addict
  running install_egg_info
  running egg_info
  writing addict.egg-info/PKG-INFO
  writing top-level names to addict.egg-info/top_level.txt
  writing dependency_links to addict.egg-info/dependency_links.txt
  reading manifest file 'addict.egg-info/SOURCES.txt'
  writing manifest file 'addict.egg-info/SOURCES.txt'
  Copying addict.egg-info to build/bdist.linux-x86_64/wheel/addict-2.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/addict-2.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/addict/setup.py", line 28, in <module>
      test_suite='test_addict'
    File "/tmp/tmpASuLQ5/setuptools-tmp/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for addict
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/PyYAML/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/tmpAeMXH4pip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
  running build_ext
  building '_yaml' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/ext
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
  In file included from ext/_yaml.c:591:
  ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
   #include <yaml.h>
            ^~~~~~~~
  compilation terminated.
  Error compiling module, falling back to pure Python
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/reader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/parser.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/tokens.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/cyaml.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/nodes.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/constructor.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/resolver.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/scanner.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/emitter.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/events.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/dumper.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/composer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/error.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/serializer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/representer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/loader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/__init__.py -> build/bdist.linux-x86_64/wheel/yaml
  running install_egg_info
  running egg_info
  creating lib/PyYAML.egg-info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  Copying lib/PyYAML.egg-info to build/bdist.linux-x86_64/wheel/PyYAML-5.1-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/PyYAML-5.1.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/PyYAML/setup.py", line 314, in <module>
      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for PyYAML
  Running setup.py bdist_wheel for python-gflags: started
  Running setup.py bdist_wheel for python-gflags: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/python-gflags/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/tmpfw33CMpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/gflags
  copying gflags/argument_parser.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flag.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flagvalues.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_unicode_literals_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_formatting_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/exceptions.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/validators.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/__init__.py -> build/lib.linux-x86_64-2.7/gflags
  creating build/lib.linux-x86_64-2.7/gflags/third_party
  copying gflags/third_party/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party
  creating build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  copying gflags/third_party/pep257/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/argument_parser.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flag.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flagvalues.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_unicode_literals_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_formatting_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers.py -> build/bdist.linux-x86_64/wheel/gflags
  creating build/bdist.linux-x86_64/wheel/gflags/third_party
  creating build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/pep257/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party
  copying build/lib.linux-x86_64-2.7/gflags/exceptions.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/validators.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/__init__.py -> build/bdist.linux-x86_64/wheel/gflags
  running install_data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  copying gflags2man.py -> build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  running install_egg_info
  running egg_info
  creating python_gflags.egg-info
  writing python_gflags.egg-info/PKG-INFO
  writing top-level names to python_gflags.egg-info/top_level.txt
  writing dependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
ERROR: no such package '@pip_deps//': pip_import failed: Collecting six==1.11.0 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Saved ./six-1.11.0-py2.py3-none-any.whl
Collecting addict==2.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/62/55/bbfdbdd6c44c78a0715d5569d579497cd41efa75b6ac84d6939c67e6f870/addict-2.1.2.tar.gz
Collecting PyYAML==5.1 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz (274kB)
Collecting python-gflags==3.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/df/ec/e31302d355bcb9d207d9b858adc1ecc4a6d8c855730c8ba4ddbdd3f8eb8d/python-gflags-3.1.2.tar.gz (52kB)
Skipping six, due to already being wheel.
Building wheels for collected packages: addict, PyYAML, python-gflags
  Running setup.py bdist_wheel for addict: started
  Running setup.py bdist_wheel for addict: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/addict/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/tmpdlHqIbpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/addict
  copying addict/addict.py -> build/lib.linux-x86_64-2.7/addict
  copying addict/__init__.py -> build/lib.linux-x86_64-2.7/addict
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/addict.py -> build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/__init__.py -> build/bdist.linux-x86_64/wheel/addict
  running install_egg_info
  running egg_info
  writing addict.egg-info/PKG-INFO
  writing top-level names to addict.egg-info/top_level.txt
  writing dependency_links to addict.egg-info/dependency_links.txt
  reading manifest file 'addict.egg-info/SOURCES.txt'
  writing manifest file 'addict.egg-info/SOURCES.txt'
  Copying addict.egg-info to build/bdist.linux-x86_64/wheel/addict-2.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/addict-2.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/addict/setup.py", line 28, in <module>
      test_suite='test_addict'
    File "/tmp/tmpASuLQ5/setuptools-tmp/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for addict
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/PyYAML/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/tmpAeMXH4pip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
  running build_ext
  building '_yaml' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/ext
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
  In file included from ext/_yaml.c:591:
  ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
   #include <yaml.h>
            ^~~~~~~~
  compilation terminated.
  Error compiling module, falling back to pure Python
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/reader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/parser.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/tokens.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/cyaml.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/nodes.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/constructor.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/resolver.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/scanner.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/emitter.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/events.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/dumper.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/composer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/error.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/serializer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/representer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/loader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/__init__.py -> build/bdist.linux-x86_64/wheel/yaml
  running install_egg_info
  running egg_info
  creating lib/PyYAML.egg-info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  Copying lib/PyYAML.egg-info to build/bdist.linux-x86_64/wheel/PyYAML-5.1-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/PyYAML-5.1.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/PyYAML/setup.py", line 314, in <module>
      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for PyYAML
  Running setup.py bdist_wheel for python-gflags: started
  Running setup.py bdist_wheel for python-gflags: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0D6_gI/python-gflags/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/tmpfw33CMpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/gflags
  copying gflags/argument_parser.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flag.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flagvalues.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_unicode_literals_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_formatting_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/exceptions.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/validators.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/__init__.py -> build/lib.linux-x86_64-2.7/gflags
  creating build/lib.linux-x86_64-2.7/gflags/third_party
  copying gflags/third_party/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party
  creating build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  copying gflags/third_party/pep257/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/argument_parser.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flag.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flagvalues.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_unicode_literals_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_formatting_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers.py -> build/bdist.linux-x86_64/wheel/gflags
  creating build/bdist.linux-x86_64/wheel/gflags/third_party
  creating build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/pep257/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party
  copying build/lib.linux-x86_64-2.7/gflags/exceptions.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/validators.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/__init__.py -> build/bdist.linux-x86_64/wheel/gflags
  running install_data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  copying gflags2man.py -> build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  running install_egg_info
  running egg_info
  creating python_gflags.egg-info
  writing python_gflags.egg-info/PKG-INFO
  writing top-level names to python_gflags.egg-info/top_level.txt
  writing dependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-0D6_gI/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpASuLQ5/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''
  
  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
INFO: Elapsed time: 17.502s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
+ EXIT_VALUE=1
+ set +o xtrace

Also reproducible with exec. Replace the container args with some wait or infinite tail, then use exec for the same result: kubectl exec -it PODNAME -- runner.sh /bin/bash -c 'git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp; bazel build //release:release-tars'

Please provide links to example occurrences, if any:

Anything else we need to know?:
Running the commands without runner.sh succeeds without incident. Also, I have spent quite a bit of time doing nearly this exact same process with presubmit jobs without incident. I'm not sure if this some quirk of job spec generation. This issue does not occur when using gcr.io/k8s-testimages/krte:v20200726-f8d6253-1.16 as the container and replacing runner.sh with wrapper.sh.

@michaelmdresser
Copy link
Contributor Author

May be related to: #18604

@BenTheElder
Copy link
Member

is this fixed after #18735 ?
cc @hasheddan

@hasheddan
Copy link
Contributor

@BenTheElder I believe it should be, but will leave it to @michaelmdresser to confirm

@michaelmdresser
Copy link
Contributor Author

I'm encountering the same error usingimage: gcr.io/k8s-testimages/kubekins-e2e:v20200811-4afd9ba-master.

@BenTheElder
Copy link
Member

BenTheElder commented Aug 11, 2020 via email

@michaelmdresser
Copy link
Contributor Author

michaelmdresser commented Aug 11, 2020

From what I recall, doing roughly this with an older image (~1 month ago) used to work. The two images notes in this issue definitely are not working. I can try this with a further back image if you'd like to see the results.

@BenTheElder
Copy link
Member

BenTheElder commented Aug 11, 2020 via email

@dims
Copy link
Member

dims commented Aug 11, 2020

@michaelmdresser can you please share logs when run using latest image? i explicitly tested this scenario by hand last friday.

@michaelmdresser
Copy link
Contributor Author

My mkpj.sh and/or mkpod are running into some issues right now. As soon as I have those resolved I will post a full log of the failure with the latest image.

@michaelmdresser
Copy link
Contributor Author

I found these logs for the latest container from before my mkpj.sh and/or mkpod started bugging out.

Container logs:

fatal: not a git repository (or any of the parent directories): .git
+ /bin/bash -c 'git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp; bazel build //release:release-tars;'
Cloning into 'cloud-provider-gcp'...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: Call stack for the definition of repository 'pip_deps' which is a pip_import (rule definition at /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/rules_python/python/pip.bzl:51:14):
 - <builtin>
 - /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/py_repositories.bzl:36:9
 - /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/deps.bzl:35:5
 - /workspace/cloud-provider-gcp/WORKSPACE:68:1
Loading: 0 packages loaded
ERROR: An error occurred during the fetch of repository 'pip_deps':
   pip_import failed: Collecting six==1.11.0 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Saved ./six-1.11.0-py2.py3-none-any.whl
Collecting addict==2.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/62/55/bbfdbdd6c44c78a0715d5569d579497cd41efa75b6ac84d6939c67e6f870/addict-2.1.2.tar.gz
Collecting PyYAML==5.1 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz (274kB)
Collecting python-gflags==3.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/df/ec/e31302d355bcb9d207d9b858adc1ecc4a6d8c855730c8ba4ddbdd3f8eb8d/python-gflags-3.1.2.tar.gz (52kB)
Skipping six, due to already being wheel.
Building wheels for collected packages: addict, PyYAML, python-gflags
  Running setup.py bdist_wheel for addict: started
  Running setup.py bdist_wheel for addict: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/addict/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/tmpKzEccepip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/addict
  copying addict/addict.py -> build/lib.linux-x86_64-2.7/addict
  copying addict/__init__.py -> build/lib.linux-x86_64-2.7/addict
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/addict.py -> build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/__init__.py -> build/bdist.linux-x86_64/wheel/addict
  running install_egg_info
  running egg_info
  writing addict.egg-info/PKG-INFO
  writing top-level names to addict.egg-info/top_level.txt
  writing dependency_links to addict.egg-info/dependency_links.txt
  reading manifest file 'addict.egg-info/SOURCES.txt'
  writing manifest file 'addict.egg-info/SOURCES.txt'
  Copying addict.egg-info to build/bdist.linux-x86_64/wheel/addict-2.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/addict-2.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/addict/setup.py", line 28, in <module>
      test_suite='test_addict'
    File "/tmp/tmpdT3Yzl/setuptools-tmp/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for addict
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/PyYAML/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/tmp57qZO7pip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
  running build_ext
  building '_yaml' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/ext
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
  In file included from ext/_yaml.c:591:
  ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
   #include <yaml.h>
            ^~~~~~~~
  compilation terminated.
  Error compiling module, falling back to pure Python
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/reader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/parser.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/tokens.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/cyaml.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/nodes.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/constructor.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/resolver.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/scanner.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/emitter.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/events.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/dumper.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/composer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/error.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/serializer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/representer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/loader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/__init__.py -> build/bdist.linux-x86_64/wheel/yaml
  running install_egg_info
  running egg_info
  creating lib/PyYAML.egg-info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  Copying lib/PyYAML.egg-info to build/bdist.linux-x86_64/wheel/PyYAML-5.1-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/PyYAML-5.1.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/PyYAML/setup.py", line 314, in <module>
      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for PyYAML
  Running setup.py bdist_wheel for python-gflags: started
  Running setup.py bdist_wheel for python-gflags: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/python-gflags/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/tmp9zpOzVpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/gflags
  copying gflags/argument_parser.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flag.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flagvalues.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_unicode_literals_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_formatting_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/exceptions.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/validators.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/__init__.py -> build/lib.linux-x86_64-2.7/gflags
  creating build/lib.linux-x86_64-2.7/gflags/third_party
  copying gflags/third_party/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party
  creating build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  copying gflags/third_party/pep257/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/argument_parser.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flag.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flagvalues.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_unicode_literals_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_formatting_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers.py -> build/bdist.linux-x86_64/wheel/gflags
  creating build/bdist.linux-x86_64/wheel/gflags/third_party
  creating build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/pep257/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party
  copying build/lib.linux-x86_64-2.7/gflags/exceptions.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/validators.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/__init__.py -> build/bdist.linux-x86_64/wheel/gflags
  running install_data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  copying gflags2man.py -> build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  running install_egg_info
  running egg_info
  creating python_gflags.egg-info
  writing python_gflags.egg-info/PKG-INFO
  writing top-level names to python_gflags.egg-info/top_level.txt
  writing dependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
ERROR: no such package '@pip_deps//': pip_import failed: Collecting six==1.11.0 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Saved ./six-1.11.0-py2.py3-none-any.whl
Collecting addict==2.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/62/55/bbfdbdd6c44c78a0715d5569d579497cd41efa75b6ac84d6939c67e6f870/addict-2.1.2.tar.gz
Collecting PyYAML==5.1 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz (274kB)
Collecting python-gflags==3.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/df/ec/e31302d355bcb9d207d9b858adc1ecc4a6d8c855730c8ba4ddbdd3f8eb8d/python-gflags-3.1.2.tar.gz (52kB)
Skipping six, due to already being wheel.
Building wheels for collected packages: addict, PyYAML, python-gflags
  Running setup.py bdist_wheel for addict: started
  Running setup.py bdist_wheel for addict: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/addict/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/tmpKzEccepip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/addict
  copying addict/addict.py -> build/lib.linux-x86_64-2.7/addict
  copying addict/__init__.py -> build/lib.linux-x86_64-2.7/addict
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/addict.py -> build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/__init__.py -> build/bdist.linux-x86_64/wheel/addict
  running install_egg_info
  running egg_info
  writing addict.egg-info/PKG-INFO
  writing top-level names to addict.egg-info/top_level.txt
  writing dependency_links to addict.egg-info/dependency_links.txt
  reading manifest file 'addict.egg-info/SOURCES.txt'
  writing manifest file 'addict.egg-info/SOURCES.txt'
  Copying addict.egg-info to build/bdist.linux-x86_64/wheel/addict-2.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/addict-2.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/addict/setup.py", line 28, in <module>
      test_suite='test_addict'
    File "/tmp/tmpdT3Yzl/setuptools-tmp/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for addict
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/PyYAML/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/tmp57qZO7pip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
  running build_ext
  building '_yaml' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/ext
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
  In file included from ext/_yaml.c:591:
  ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
   #include <yaml.h>
            ^~~~~~~~
  compilation terminated.
  Error compiling module, falling back to pure Python
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/reader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/parser.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/tokens.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/cyaml.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/nodes.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/constructor.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/resolver.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/scanner.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/emitter.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/events.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/dumper.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/composer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/error.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/serializer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/representer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/loader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/__init__.py -> build/bdist.linux-x86_64/wheel/yaml
  running install_egg_info
  running egg_info
  creating lib/PyYAML.egg-info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  Copying lib/PyYAML.egg-info to build/bdist.linux-x86_64/wheel/PyYAML-5.1-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/PyYAML-5.1.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/PyYAML/setup.py", line 314, in <module>
      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for PyYAML
  Running setup.py bdist_wheel for python-gflags: started
  Running setup.py bdist_wheel for python-gflags: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/python-gflags/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/tmp9zpOzVpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/gflags
  copying gflags/argument_parser.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flag.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flagvalues.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_unicode_literals_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_formatting_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/exceptions.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/validators.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/__init__.py -> build/lib.linux-x86_64-2.7/gflags
  creating build/lib.linux-x86_64-2.7/gflags/third_party
  copying gflags/third_party/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party
  creating build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  copying gflags/third_party/pep257/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/argument_parser.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flag.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flagvalues.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_unicode_literals_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_formatting_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers.py -> build/bdist.linux-x86_64/wheel/gflags
  creating build/bdist.linux-x86_64/wheel/gflags/third_party
  creating build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/pep257/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party
  copying build/lib.linux-x86_64-2.7/gflags/exceptions.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/validators.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/__init__.py -> build/bdist.linux-x86_64/wheel/gflags
  running install_data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  copying gflags2man.py -> build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  running install_egg_info
  running egg_info
  creating python_gflags.egg-info
  writing python_gflags.egg-info/PKG-INFO
  writing top-level names to python_gflags.egg-info/top_level.txt
  writing dependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
ERROR: no such package '@pip_deps//': pip_import failed: Collecting six==1.11.0 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Saved ./six-1.11.0-py2.py3-none-any.whl
Collecting addict==2.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/62/55/bbfdbdd6c44c78a0715d5569d579497cd41efa75b6ac84d6939c67e6f870/addict-2.1.2.tar.gz
Collecting PyYAML==5.1 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz (274kB)
Collecting python-gflags==3.1.2 (from -r /root/.cache/bazel/_bazel_root/a65c285646524e1d9be564c24867ee44/external/io_bazel_rules_docker/repositories/requirements-pip.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/df/ec/e31302d355bcb9d207d9b858adc1ecc4a6d8c855730c8ba4ddbdd3f8eb8d/python-gflags-3.1.2.tar.gz (52kB)
Skipping six, due to already being wheel.
Building wheels for collected packages: addict, PyYAML, python-gflags
  Running setup.py bdist_wheel for addict: started
  Running setup.py bdist_wheel for addict: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/addict/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/tmpKzEccepip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/addict
  copying addict/addict.py -> build/lib.linux-x86_64-2.7/addict
  copying addict/__init__.py -> build/lib.linux-x86_64-2.7/addict
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/addict.py -> build/bdist.linux-x86_64/wheel/addict
  copying build/lib.linux-x86_64-2.7/addict/__init__.py -> build/bdist.linux-x86_64/wheel/addict
  running install_egg_info
  running egg_info
  writing addict.egg-info/PKG-INFO
  writing top-level names to addict.egg-info/top_level.txt
  writing dependency_links to addict.egg-info/dependency_links.txt
  reading manifest file 'addict.egg-info/SOURCES.txt'
  writing manifest file 'addict.egg-info/SOURCES.txt'
  Copying addict.egg-info to build/bdist.linux-x86_64/wheel/addict-2.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/addict-2.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/addict/setup.py", line 28, in <module>
      test_suite='test_addict'
    File "/tmp/tmpdT3Yzl/setuptools-tmp/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for addict
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/PyYAML/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/tmp57qZO7pip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
  copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
  running build_ext
  building '_yaml' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/ext
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
  In file included from ext/_yaml.c:591:
  ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
   #include <yaml.h>
            ^~~~~~~~
  compilation terminated.
  Error compiling module, falling back to pure Python
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/reader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/parser.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/tokens.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/cyaml.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/nodes.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/constructor.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/resolver.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/scanner.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/emitter.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/events.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/dumper.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/composer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/error.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/serializer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/representer.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/loader.py -> build/bdist.linux-x86_64/wheel/yaml
  copying build/lib.linux-x86_64-2.7/yaml/__init__.py -> build/bdist.linux-x86_64/wheel/yaml
  running install_egg_info
  running egg_info
  creating lib/PyYAML.egg-info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
  Copying lib/PyYAML.egg-info to build/bdist.linux-x86_64/wheel/PyYAML-5.1-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/PyYAML-5.1.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/PyYAML/setup.py", line 314, in <module>
      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for PyYAML
  Running setup.py bdist_wheel for python-gflags: started
  Running setup.py bdist_wheel for python-gflags: finished with status 'error'
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-O_1vBv/python-gflags/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/tmp9zpOzVpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/gflags
  copying gflags/argument_parser.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flag.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flagvalues.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_unicode_literals_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/flags_formatting_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/exceptions.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/validators.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/_helpers_test.py -> build/lib.linux-x86_64-2.7/gflags
  copying gflags/__init__.py -> build/lib.linux-x86_64-2.7/gflags
  creating build/lib.linux-x86_64-2.7/gflags/third_party
  copying gflags/third_party/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party
  creating build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  copying gflags/third_party/pep257/__init__.py -> build/lib.linux-x86_64-2.7/gflags/third_party/pep257
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/argument_parser.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flag.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flagvalues.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_unicode_literals_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/flags_formatting_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers.py -> build/bdist.linux-x86_64/wheel/gflags
  creating build/bdist.linux-x86_64/wheel/gflags/third_party
  creating build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/pep257/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party/pep257
  copying build/lib.linux-x86_64-2.7/gflags/third_party/__init__.py -> build/bdist.linux-x86_64/wheel/gflags/third_party
  copying build/lib.linux-x86_64-2.7/gflags/exceptions.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/validators.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/_helpers_test.py -> build/bdist.linux-x86_64/wheel/gflags
  copying build/lib.linux-x86_64-2.7/gflags/__init__.py -> build/bdist.linux-x86_64/wheel/gflags
  running install_data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  copying gflags2man.py -> build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.data/data/bin
  running install_egg_info
  running egg_info
  creating python_gflags.egg-info
  writing python_gflags.egg-info/PKG-INFO
  writing top-level names to python_gflags.egg-info/top_level.txt
  writing dependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
INFO: Elapsed time: 11.316s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
+ EXIT_VALUE=1
+ set +o xtrace

Running describe pod:

Name:         f7e17544-dc1a-11ea-8fcc-0242c0a80902
Namespace:    default
Priority:     0
Node:         gke-prow-test-pool-bigger-2-25267d50-s62m/10.138.0.14
Start Time:   Tue, 11 Aug 2020 21:38:27 +0000
Labels:       created-by-prow=true
              prow.k8s.io/build-id=
              prow.k8s.io/id=f7e17544-dc1a-11ea-8fcc-0242c0a80902
              prow.k8s.io/job=minimal-reproduce-bazel-failure
              prow.k8s.io/type=periodic
Annotations:  kubernetes.io/limit-ranger: LimitRanger plugin set: cpu request for container test
              prow.k8s.io/job: minimal-reproduce-bazel-failure
Status:       Failed
IP:           10.48.5.21
IPs:          <none>
Containers:
  test:
    Container ID:  docker://4cf01e84364e6d8eb57c063dca46b805db38036b87eed517a63732f5f68da58a
    Image:         gcr.io/k8s-testimages/kubekins-e2e:v20200811-4afd9ba-master
    Image ID:      docker-pullable://gcr.io/k8s-testimages/kubekins-e2e@sha256:65f76c3eb2570ae561641a2a1e399fb0dd38c9cc4e7c18c9b6a694ce1fb02886
    Port:          <none>
    Host Port:     <none>
    Command:
      runner.sh
    Args:
      /bin/bash
      -c
      git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp; bazel build //release:release-tars;
    State:      Terminated
      Reason:   Error
      Message:  ependency_links to python_gflags.egg-info/dependency_links.txt
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest file 'python_gflags.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'README'
  writing manifest file 'python_gflags.egg-info/SOURCES.txt'
  Copying python_gflags.egg-info to build/bdist.linux-x86_64/wheel/python_gflags-3.1.2-py2.7.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/python_gflags-3.1.2.dist-info/WHEEL
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-O_1vBv/python-gflags/setup.py", line 51, in <module>
      'Operating System :: OS Independent',
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/bdist_wheel.py", line 261, in run
      wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpdT3Yzl/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

  ----------------------------------------
  Running setup.py clean for python-gflags
Failed to build addict PyYAML python-gflags
 (  Cache entry deserialization failed, entry ignored
  Failed building wheel for addict
  Failed building wheel for PyYAML
  Failed building wheel for python-gflags
ERROR: Failed to build one or more wheels
)
INFO: Elapsed time: 11.316s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
+ EXIT_VALUE=1
+ set +o xtrace

      Exit Code:    1
      Started:      Tue, 11 Aug 2020 21:39:29 +0000
      Finished:     Tue, 11 Aug 2020 21:39:44 +0000
    Ready:          False
    Restart Count:  0
    Requests:
      cpu:  100m
    Environment:
      GOPROXY:       https://proxy.golang.org
      BUILD_ID:
      BUILD_NUMBER:
      CI:            true
      JOB_NAME:      minimal-reproduce-bazel-failure
      JOB_SPEC:      {"type":"periodic","job":"minimal-reproduce-bazel-failure","prowjobid":"f7e17544-dc1a-11ea-8fcc-0242c0a80902"}
      JOB_TYPE:      periodic
      PROW_JOB_ID:   f7e17544-dc1a-11ea-8fcc-0242c0a80902
    Mounts:          <none>
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:            <none>
QoS Class:          Burstable
Node-Selectors:     <none>
Tolerations:        node.kubernetes.io/not-ready:NoExecute for 300s
                    node.kubernetes.io/unreachable:NoExecute for 300s
Events:             <none>

@BenTheElder BenTheElder added area/images priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Aug 28, 2020
@amwat
Copy link
Contributor

amwat commented Oct 14, 2020

FYI this is still reproducible

docker run -it --entrypoint=runner.sh gcr.io/k8s-testimages/kubekins-e2e:latest-master /bin/bash -c 'git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp; bazel version; bazel build //release:release-tars;'

doesn't work

docker run -it --entrypoint=/bin/bash gcr.io/k8s-testimages/kubekins-e2e:latest-master -c 'git clone https://github.com/kubernetes/cloud-provider-gcp; cd cloud-provider-gcp; bazel version; bazel build //release:release-tars;'

does

@BenTheElder
Copy link
Member

BenTheElder commented Nov 3, 2020

  • SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct || true); export SOURCE_DATE_EPOCH happens in runner.sh
  • if you're not in a repo in particular then it's going to be ''

in the error we see:

    File "/tmp/tmpBGTkV0/wheel-tmp/wheel/archive.py", line 22, in archive_wheelfile
      return make_wheelfile_inner(base_name)
    File "/tmp/tmpBGTkV0/wheel-tmp/wheel/archive.py", line 43, in make_wheelfile_inner
      date_time = time.gmtime(int(timestamp))[0:6]
  ValueError: invalid literal for int() with base 10: ''

I think we need SOURCE_DATE_EPOCH to not propagate to this part of the bazel build and / or we need to ensure that it's valid or unset.

EDIT:
https://github.com/facebookincubator/xar/blob/2d389f2da4812eb93779223ec21ffb0e9c9ebf41/xar/vendor/wheel/archive.py#L37

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 1, 2021
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 3, 2021
@BenTheElder BenTheElder removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Mar 3, 2021
@BenTheElder BenTheElder self-assigned this Mar 3, 2021
@BenTheElder
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/images kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

7 participants