[Python-modules-team] Bug#843036: python-flake8: FTBFS (failing tests)

Santiago Vila sanvila at debian.org
Thu Nov 3 11:08:15 UTC 2016


Package: src:python-flake8
Version: 3.0.4+dfsg1-2
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/processor.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/utils.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/__main__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/statistics.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/exceptions.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/style_guide.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/defaults.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/checker.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
copying src/flake8/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/api
copying src/flake8/api/legacy.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/api
copying src/flake8/api/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/api
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/formatting
copying src/flake8/formatting/base.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/formatting
copying src/flake8/formatting/default.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/formatting
copying src/flake8/formatting/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/formatting
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/git.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/vcs.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/options.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/setuptools_command.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/cli.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/mercurial.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
copying src/flake8/main/application.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/main
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/options
copying src/flake8/options/manager.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/options
copying src/flake8/options/config.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/options
copying src/flake8/options/aggregator.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/options
copying src/flake8/options/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/options
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/plugins
copying src/flake8/plugins/manager.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/plugins
copying src/flake8/plugins/pyflakes.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/plugins
copying src/flake8/plugins/_trie.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/plugins
copying src/flake8/plugins/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/plugins
copying src/flake8/plugins/notifier.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_2.7/build/flake8/plugins
I: pybuild base:184: /usr/bin/python3 setup.py build 
running build
running build_py
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/processor.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/utils.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/__main__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/statistics.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/exceptions.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/style_guide.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/defaults.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/checker.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
copying src/flake8/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/api
copying src/flake8/api/legacy.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/api
copying src/flake8/api/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/api
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/formatting
copying src/flake8/formatting/base.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/formatting
copying src/flake8/formatting/default.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/formatting
copying src/flake8/formatting/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/formatting
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/git.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/vcs.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/options.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/setuptools_command.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/cli.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/mercurial.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
copying src/flake8/main/application.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/main
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/options
copying src/flake8/options/manager.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/options
copying src/flake8/options/config.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/options
copying src/flake8/options/aggregator.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/options
copying src/flake8/options/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/options
creating /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/plugins
copying src/flake8/plugins/manager.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/plugins
copying src/flake8/plugins/pyflakes.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/plugins
copying src/flake8/plugins/_trie.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/plugins
copying src/flake8/plugins/__init__.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/plugins
copying src/flake8/plugins/notifier.py -> /<<BUILDDIR>>/python-flake8-3.0.4+dfsg1/.pybuild/pythonX.Y_3.5/build/flake8/plugins
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<BUILDDIR>>/python-flake8-3.0.4+dfsg1'
touch tox.ini
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} setup.py test" dh_auto_test
I: pybuild base:184: python2.7 setup.py test
running pytest
Searching for pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3.0,>=0.8.1
Reading https://pypi.python.org/simple/pyflakes/
Download error on https://pypi.python.org/simple/pyflakes/: [Errno 111] Connection refused -- Some packages may not be found!
Couldn't retrieve index page for 'pyflakes'
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 111] Connection refused -- Some packages may not be found!
No local packages or working download links found for pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3.0,>=0.8.1
error: Could not find suitable distribution for Requirement.parse('pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3.0,>=0.8.1')
E: pybuild pybuild:276: test: plugin custom failed with: exit code=1: python2.7 setup.py test
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
debian/rules:9: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<BUILDDIR>>/python-flake8-3.0.4+dfsg1'
debian/rules:6: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The relevant part of the build log is included above.

Seems like the package is trying to access the network.
This should never happen.

Thanks.



More information about the Python-modules-team mailing list