[Python-modules-team] Bug#832860: flask-restful: FTBFS: dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned exit code 13

Lucas Nussbaum lucas at debian.org
Fri Jul 29 08:01:41 UTC 2016


Source: flask-restful
Version: 0.3.4-1
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160728 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> make[2]: Entering directory '/«PKGBUILDDIR»/docs'
> sphinx-build -b html -d _build/doctrees   . _build/html
> Running Sphinx v1.4.5
> making output directory...
> loading pickled environment... not yet created
> loading intersphinx inventory from http://flask.pocoo.org/docs/objects.inv...
> WARNING: intersphinx inventory 'http://flask.pocoo.org/docs/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [Errno 111] Connection refused>
> loading intersphinx inventory from https://docs.python.org/2/objects.inv...
> WARNING: intersphinx inventory 'https://docs.python.org/2/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
> loading intersphinx inventory from http://pythonhosted.org/six/objects.inv...
> WARNING: intersphinx inventory 'http://pythonhosted.org/six/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [Errno 111] Connection refused>
> loading intersphinx inventory from https://docs.python.org/3/objects.inv...
> WARNING: intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 9 source files that are out of date
> updating environment: 9 added, 0 changed, 0 removed
> reading sources... [ 11%] api
> reading sources... [ 22%] extending
> reading sources... [ 33%] fields
> reading sources... [ 44%] index
> reading sources... [ 55%] installation
> reading sources... [ 66%] intermediate-usage
> reading sources... [ 77%] quickstart
> reading sources... [ 88%] reqparse
> reading sources... [100%] testing
> 
> /«PKGBUILDDIR»/flask_restful/reqparse.py:docstring of reqparse.Argument.parse:5: WARNING: Field list ends without a blank line; unexpected unindent.
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [ 11%] api
> writing output... [ 22%] extending
> writing output... [ 33%] fields
> writing output... [ 44%] index
> writing output... [ 55%] installation
> writing output... [ 66%] intermediate-usage
> writing output... [ 77%] quickstart
> writing output... [ 88%] reqparse
> writing output... [100%] testing
> /«PKGBUILDDIR»/docs/intermediate-usage.rst:80: WARNING: undefined label: blueprints (if the link has no caption the label must precede a section header)
> 
> generating indices... genindex
> writing additional pages... search
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en) ... done
> dumping object inventory... done
> build succeeded, 6 warnings.
> 
> Build finished. The HTML pages are in _build/html.
> make[2]: Leaving directory '/«PKGBUILDDIR»/docs'
> make[1]: Leaving directory '/«PKGBUILDDIR»'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:184: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose tests
> ..[2016-07-28 10:53:05,512] ERROR in __init__: Internal Error
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request
>     rv = self.dispatch_request()
>   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File "flask_restful/__init__.py", line 475, in wrapper
>     return self.make_response(data, code, headers=headers)
>   File "flask_restful/__init__.py", line 512, in make_response
>     raise InternalServerError()
> InternalServerError: 500: Internal Server Error
> [2016-07-28 10:53:05,513] ERROR in __init__: Internal Error
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1988, in wsgi_app
>     response = self.full_dispatch_request()
>   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1641, in full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File "flask_restful/__init__.py", line 270, in error_router
>     return original_handler(e)
>   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1531, in handle_user_exception
>     assert exc_value is e
> AssertionError
> [2016-07-28 10:53:05,513] ERROR in app: Exception on / [GET]
> Traceback (most recent call last):
>   File "flask_restful/__init__.py", line 267, in error_router
>     return self.handle_error(e)
>   File "flask_restful/__init__.py", line 352, in handle_error
>     resp = self.make_response(data, code, headers)
>   File "flask_restful/__init__.py", line 512, in make_response
>     raise InternalServerError()
> InternalServerError: 500: Internal Server Error
> ........................[2016-07-28 10:53:05,533] ERROR in __init__: Internal Error
> .............[2016-07-28 10:53:05,547] ERROR in __init__: Internal Error
> ..[2016-07-28 10:53:05,550] ERROR in __init__: Internal Error
> ..........................................E.......EE..EEEEEEEEE...................................................................................................................................................................................................................................................................................
> ======================================================================
> ERROR: Verify that url_for works when an Api object is mounted on a
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api.py", line 769, in test_url_for_with_blueprint
>     api.add_resource(HelloWorld, '/foo/<string:bar>')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_add_resource_endpoint (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 52, in test_add_resource_endpoint
>     api.add_resource(view, '/foo', endpoint='bar')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_add_resource_endpoint_after_registration (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 63, in test_add_resource_endpoint_after_registration
>     api.add_resource(view, '/foo', endpoint='bar')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_error_routing (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 123, in test_error_routing
>     api.add_resource(HelloWorld(), '/hi', endpoint="hello")
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_non_blueprint_non_rest_error_routing (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 166, in test_non_blueprint_non_rest_error_routing
>     api.add_resource(HelloWorld(), '/hi', endpoint="hello")
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_non_blueprint_rest_error_routing (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 137, in test_non_blueprint_rest_error_routing
>     api.add_resource(HelloWorld(), '/hi', endpoint="hello")
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_registration_prefix_overrides_blueprint_prefix (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 96, in test_registration_prefix_overrides_blueprint_prefix
>     api.add_resource(HelloWorld, '/hi', endpoint='hello')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_url_part_order_aeb (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 114, in test_url_part_order_aeb
>     api.add_resource(HelloWorld, '/hi', endpoint='hello')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_url_with_api_and_blueprint_prefix (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 105, in test_url_with_api_and_blueprint_prefix
>     api.add_resource(HelloWorld, '/hi', endpoint='hello')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_url_with_api_prefix (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 69, in test_url_with_api_prefix
>     api.add_resource(HelloWorld, '/hi', endpoint='hello')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_url_with_blueprint_prefix (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 78, in test_url_with_blueprint_prefix
>     api.add_resource(HelloWorld, '/hi', endpoint='hello')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ======================================================================
> ERROR: test_url_with_registration_prefix (tests.test_api_with_blueprint.APIWithBlueprintTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/test_api_with_blueprint.py", line 87, in test_url_with_registration_prefix
>     api.add_resource(HelloWorld, '/hi', endpoint='hello')
>   File "flask_restful/__init__.py", line 396, in add_resource
>     self._register_view(self.app, resource, *urls, **kwargs)
>   File "flask_restful/__init__.py", line 426, in _register_view
>     if endpoint in app.view_functions.keys():
> AttributeError: 'Blueprint' object has no attribute 'view_functions'
> 
> ----------------------------------------------------------------------
> Ran 379 tests in 0.157s
> 
> FAILED (errors=12)
> E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose tests
> dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned exit code 13

The full build log is available from:
   http://people.debian.org/~lucas/logs/2016/07/28/flask-restful_0.3.4-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list