[Python-modules-team] Bug#834669: djangorestframework-gis: FTBFS in testing (failing tests)

Santiago Vila sanvila at debian.org
Wed Aug 17 22:21:01 UTC 2016


Package: src:djangorestframework-gis
Version: 0.10.1-1
Severity: serious

Dear maintainer:

I tried to build this package 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

[... snipped ...]

  File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 343, in _reverse_with_prefix
    possibilities = self.reverse_dict.getlist(lookup_view)
  File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 240, in reverse_dict
    return self._reverse_dict[language_code]
KeyError: 'en-gb'

======================================================================
ERROR: test_inBBOXFilter_filtering (django_restframework_gis_tests.test_filters.TestRestFrameworkGisFilters)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/django_restframework_gis_tests/test_filters.py", line 21, in setUp
    self.location_contained_in_bbox_list_url = reverse('api_geojson_location_list_contained_in_bbox_filter')
  File "/usr/lib/python2.7/dist-packages/django/urls/base.py", line 91, in reverse
    return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
  File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 343, in _reverse_with_prefix
    possibilities = self.reverse_dict.getlist(lookup_view)
  File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 240, in reverse_dict
    return self._reverse_dict[language_code]
KeyError: 'en-gb'

======================================================================
ERROR: test_inBBOXFilter_filtering_none (django_restframework_gis_tests.test_filters.TestRestFrameworkGisFilters)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/django_restframework_gis_tests/test_filters.py", line 21, in setUp
    self.location_contained_in_bbox_list_url = reverse('api_geojson_location_list_contained_in_bbox_filter')
  File "/usr/lib/python2.7/dist-packages/django/urls/base.py", line 91, in reverse
    return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
  File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 343, in _reverse_with_prefix
    possibilities = self.reverse_dict.getlist(lookup_view)
  File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 240, in reverse_dict
    return self._reverse_dict[language_code]
KeyError: 'en-gb'

----------------------------------------------------------------------
Ran 54 tests in 0.011s

FAILED (errors=51, skipped=3)
Creating test database for alias 'default'...
Destroying test database for alias 'default'...
E: pybuild pybuild:274: test: plugin custom failed with: exit code=1: python2.7 ./runtests.py
dh_auto_test: pybuild --test -i python{version} -p 2.7 --system=custom --test-args={interpreter} ./runtests.py returned exit code 13
debian/rules:12: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:9: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense and the fact that I was
using "dpkg-buildpackage -A" is quite irrelevant.

For this particular package, I've also checked that it fails to build
from source in the reproducible builds site:

https://tests.reproducible-builds.org/

Thanks.



More information about the Python-modules-team mailing list