[Python-modules-team] Bug#865663: flask-restful FTBFS: dh_auto_test fails

Adrian Bunk bunk at debian.org
Fri Jun 23 15:18:10 UTC 2017


Source: flask-restful
Version: 0.3.5-1
Severity: serious
Tags: buster sid

Some recent change in unstable makes flask-restful FTBFS:

https://tests.reproducible-builds.org/debian/history/flask-restful.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/flask-restful.html

...
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:184: cd /build/1st/flask-restful-0.3.5/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose tests
...[2017-06-23 02:43:46,629] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "flask_restful/__init__.py", line 481, in wrapper
    return self.make_response(data, code, headers=headers)
  File "flask_restful/__init__.py", line 518, in make_response
    raise InternalServerError()
InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.
[2017-06-23 02:43:46,630] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1504, in handle_user_exception
    assert exc_value is e
AssertionError
[2017-06-23 02:43:46,631] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "flask_restful/__init__.py", line 268, in error_router
    return self.handle_error(e)
  File "flask_restful/__init__.py", line 357, in handle_error
    resp = self.make_response(data, code, headers)
  File "flask_restful/__init__.py", line 518, in make_response
    raise InternalServerError()
InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.
........................[2017-06-23 02:43:46,674] ERROR in app: Exception on /foo [GET]
....E..........[2017-06-23 02:43:46,709] ERROR in app: Exception on /foo [GET]
..[2017-06-23 02:43:46,715] ERROR in app: Exception on /foo [GET]
....................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: Test that HTTPException's headers are extended properly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/flask-restful-0.3.5/.pybuild/pythonX.Y_2.7/build/tests/test_api.py", line 811, in test_exception_header_forwarded
    flask_abort.mapping.update({304: NotModified})
AttributeError: 'function' object has no attribute 'mapping'

----------------------------------------------------------------------
Ran 384 tests in 0.379s

FAILED (errors=1)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /build/1st/flask-restful-0.3.5/.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
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 25



More information about the Python-modules-team mailing list