[Reproducible-builds] Bug#796538: python-fitbit: FTBFS: InvocationError: /usr/bin/python3 -m virtualenv --python /usr/bin/python2.7 py

Chris Lamb lamby at debian.org
Sat Aug 22 12:31:41 UTC 2015


Source: python-fitbit
Version: 0.1.3-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

python-fitbit fails to build from source in unstable/amd64. It appears
to be trying to setup a virtualenv (including packages from the
internet?) to test in:

  [..]

     dh_auto_test -O--buildsystem=pybuild
  I: pybuild base:170: cd
  /tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7/build; tox -c
  /tmp/buildd/python-fitbit-0.1.3/tox.ini -e py27
  GLOB sdist-make: /tmp/buildd/python-fitbit-0.1.3/setup.py
  py27 create: /tmp/buildd/python-fitbit-0.1.3/.tox/py27
  ERROR: invocation failed (exit code 1), logfile:
  /tmp/buildd/python-fitbit-0.1.3/.tox/py27/log/py27-0.log
  ERROR: actionid: py27
  msg: getenv
  cmdargs: ['/usr/bin/python3', '-m', 'virtualenv', '--python',
  '/usr/bin/python2.7', 'py27']
  env: {'DEB_BUILD_GNU_SYSTEM': 'linux-gnu', 'DEB_TARGET_GNU_CPU':
  'x86_64', 'DEB_TARGET_ARCH_BITS': '64', 'DEB_HOST_ARCH_CPU': 'amd64',
  'http_proxy': 'http://127.0.0.1:9/', 'PYTHONHASHSEED': '2414728614',
  'GCJFLAGS': '-g -O2 -fstack-protector-strong', 'PYBUILD_NAME':
  'fitbit', 'DEB_BUILD_MULTIARCH': 'x86_64-linux-gnu',
  'DEB_BUILD_ARCH_ENDIAN': 'little', 'LD_PRELOAD': '', 'LDFLAGS':
  '-Wl,-z,relro', 'MAKEFLAGS': '', 'OLDPWD':
  '/tmp/buildd/python-fitbit-0.1.3', 'CXXFLAGS': '-g -O2
  -fstack-protector-strong -Wformat -Werror=format-security', 'FCFLAGS':
  '-g -O2 -fstack-protector-strong', 'VIRTUAL_ENV':
  '/tmp/buildd/python-fitbit-0.1.3/.tox/py27', 'MFLAGS': '',
  'DEB_HOST_ARCH_ENDIAN': 'little', 'DEB_BUILD_ARCH_CPU': 'amd64',
  'LANGUAGE': 'en_GB:en', 'SUDO_UID': '103', 'SUDO_GID': '105',
  'USERNAME': 'root', 'FFLAGS': '-g -O2 -fstack-protector-strong',
  'PATH':
  '/tmp/buildd/python-fitbit-0.1.3/.tox/py27/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games',
  'SUDO_USER': 'jenkins', 'DEB_TARGET_MULTIARCH': 'x86_64-linux-gnu',
  'DEB_HOST_GNU_CPU': 'x86_64', 'DEB_HOST_ARCH_BITS': '64',
  'DEB_BUILD_GNU_TYPE': 'x86_64-linux-gnu', 'PBUILDER_PKGDATADIR':
  '/usr/share/pbuilder', 'DEB_HOST_ARCH_OS': 'linux', 'MAKELEVEL': '1',
  'LOGNAME': 'pbuilder1', 'PWD':
  '/tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7/build',
  'DEB_BUILD_ARCH_BITS': '64', 'OBJCXXFLAGS': '-g -O2
  -fstack-protector-strong -Wformat -Werror=format-security',
  'DEB_HOST_ARCH': 'amd64', '_': '/usr/bin/unshare', 'SHELL':
  '/bin/bash', 'DEB_BUILD_GNU_CPU': 'x86_64', 'DEB_BUILD_OPTIONS':
  'parallel=23', 'LANG': 'C', 'DEB_TARGET_ARCH_OS': 'linux',
  'DEB_TARGET_ARCH_ENDIAN': 'little', 'DEB_BUILD_TIMESTAMP':
  '1423356411', 'DH_INTERNAL_BUILDFLAGS': '1', 'DEB_BUILD_ARCH_OS':
  'linux', 'SUDO_COMMAND': '/usr/bin/timeout -k 12.1h 12h
  /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build
  --configfile /srv/reproducible-results/tmp.Jh70mIMSqT/pbuilderrc_dUrX
  --debbuildopts -b --basetgz
  /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult b1
  --logfile b1/build.log python-fitbit_0.1.3-1.dsc',
  'DEB_HOST_GNU_SYSTEM': 'linux-gnu', 'SOURCE_DATE_EPOCH': '1423356411',
  'DEB_HOST_MULTIARCH': 'x86_64-linux-gnu', 'SHLVL': '2',
  'DEB_TARGET_GNU_SYSTEM': 'linux-gnu', 'DEBIAN_FRONTEND':
  'noninteractive', 'LC_ALL': 'C', 'TERM': 'linux',
  'PBCURRENTCOMMANDLINEOPERATION': '--build', 'https_proxy':
  'https://127.0.0.1:9/', 'MAIL': '/var/mail/root', 'USER': 'pbuilder1',
  'PBUILDER_PKGLIBDIR': '/usr/lib/pbuilder', 'DEB_TARGET_ARCH_CPU':
  'amd64', 'PBUILDER_SYSCONFDIR': '/etc', 'HOME':
  '/tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7',
  'DEB_BUILD_ARCH': 'amd64', 'CPPFLAGS': '-Wdate-time
  -D_FORTIFY_SOURCE=2', 'PYTHONPATH':
  '/tmp/buildd/python-fitbit-0.1.3/debian/python-fitbit/usr/lib/python2.7/dist-packages:/tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7/build',
  'DEB_HOST_GNU_TYPE': 'x86_64-linux-gnu', 'no_proxy': 'localhost',
  'DEB_TARGET_ARCH': 'amd64', 'DEB_TARGET_GNU_TYPE': 'x86_64-linux-gnu',
  'TZ': '/usr/share/zoneinfo/Etc/GMT+12', 'OBJCFLAGS': '-g -O2
  -fstack-protector-strong -Wformat -Werror=format-security', 'CFLAGS':
  '-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'}
  
  New python executable in py27/bin/python2.7
  Also creating executable in py27/bin/python
  Please make sure you remove any previous custom paths from your
  /tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7/.pydistutils.cfg
  file.
  Installing setuptools, pip...
    Complete output from command
    /tmp/buildd/python-f...x/py27/bin/python2.7 -c "import sys, pip;
    sys...d\"] + sys.argv[1:]))" setuptools pip:
    Ignoring indexes: https://pypi.python.org/simple/
  Downloading/unpacking setuptools
  Downloading/unpacking pip
  Installing collected packages: setuptools, pip
  Cleaning up...
  Exception:
  Traceback (most recent call last):
    File
    "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/basecommand.py",
    line 122, in main
      status = self.run(options, args)
    File
    "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/commands/install.py",
    line 295, in run
      requirement_set.install(install_options, global_options,
      root=options.root_path)
    File
    "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py",
    line 1436, in install
      requirement.install(install_options, global_options, *args,
      **kwargs)
    File
    "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py",
    line 672, in install
      self.move_wheel_files(self.source_dir, root=root)
    File
    "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py",
    line 902, in move_wheel_files
      pycompile=self.pycompile,
    File
    "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/wheel.py",
    line 339, in move_wheel_files
      generated.extend(maker.make(spec))
    File
    "/tmp/buildd/python-fitbit-0.1.3/.tox/py27/lib/python-wheels/distlib-0.2.1-py2.py3-none-any.whl/distlib/scripts.py",
    line 353, in make
      self._make_script(entry, filenames, options=options)
    File
    "/tmp/buildd/python-fitbit-0.1.3/.tox/py27/lib/python-wheels/distlib-0.2.1-py2.py3-none-any.whl/distlib/scripts.py",
    line 257, in _make_script
      self._write_script(scriptnames, shebang, script, filenames, ext)
    File
    "/tmp/buildd/python-fitbit-0.1.3/.tox/py27/lib/python-wheels/distlib-0.2.1-py2.py3-none-any.whl/distlib/scripts.py",
    line 231, in _write_script
      self._fileop.write_binary_file(outname, script_bytes)
    File
    "/tmp/buildd/python-fitbit-0.1.3/.tox/py27/lib/python-wheels/distlib-0.2.1-py2.py3-none-any.whl/distlib/util.py",
    line 388, in write_binary_file
      with open(path, 'wb') as f:
  IOError: [Errno 13] Permission denied: '/usr/bin/easy_install-2.7'
  
  Storing debug log for failure in
  /tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7/.pip/pip.log
  ----------------------------------------
  ...Installing setuptools, pip...done.
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/virtualenv.py", line 2378, in
    <module>
      main()
    File "/usr/lib/python3/dist-packages/virtualenv.py", line 830, in
    main
      symlink=options.symlink)
    File "/usr/lib/python3/dist-packages/virtualenv.py", line 1032, in
    create_environment
      install_wheel(to_install, py_executable, search_dirs)
    File "/usr/lib/python3/dist-packages/virtualenv.py", line 975, in
    install_wheel
      'PIP_NO_INDEX': '1'
    File "/usr/lib/python3/dist-packages/virtualenv.py", line 917, in
    call_subprocess
      % (cmd_desc, proc.returncode))
  OSError: Command /tmp/buildd/python-f...x/py27/bin/python2.7 -c
  "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed
  with error code 2
  Running virtualenv with interpreter /usr/bin/python2.7
  
  ERROR: InvocationError: /usr/bin/python3 -m virtualenv --python
  /usr/bin/python2.7 py27 (see
  /tmp/buildd/python-fitbit-0.1.3/.tox/py27/log/py27-0.log)
  ___________________________________ summary
  ____________________________________
  ERROR:   py27: InvocationError: /usr/bin/python3 -m virtualenv
  --python /usr/bin/python2.7 py27 (see
  /tmp/buildd/python-fitbit-0.1.3/.tox/py27/log/py27-0.log)
  E: pybuild pybuild:262: test: plugin distutils failed with: exit
  code=1: cd
  /tmp/buildd/python-fitbit-0.1.3/.pybuild/pythonX.Y_2.7/build; tox -c
  /tmp/buildd/python-fitbit-0.1.3/tox.ini -e py27
  dh_auto_test: pybuild --test --test-tox -i python{version} -p 2.7
  --dir . returned exit code 13
  debian/rules:12: recipe for target 'build' failed
  make: *** [build] Error 25
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

The full build log is attached or can be viewed here:

    https://reproducible.debian.net/logs/unstable/amd64/python-fitbit_0.1.3-1.build1.log.gz


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-fitbit.0.1.3-1.unstable.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150822/42c46b29/attachment.txt>


More information about the Reproducible-builds mailing list