[Python-modules-team] Bug#802757: djangorestframework-gis: FTBFS with djangorestframework 3.2.2-1
Brian May
bam at debian.org
Fri Oct 23 07:36:51 UTC 2015
Source: djangorestframework-gis
Version: 0.8-2
Severity: serious
Justification: Does not build from source
I just uploaded djangorestframework 3.2.2-1 to unstable.
Will see if I can look at this if I get a chance. If not tonight, possibly
tomorrow.
An example of the error - there are several similar errors that occur during
testing.
======================================================================
ERROR: test_HTML_browsable_geojson_location_list (django_restframework_gis_tests.tests.TestRestFrameworkGis)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/django_restframework_gis_tests/tests.py", line 23, in setUp
self.location_list_url = reverse('api_location_list')
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 551, in reverse
return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 415, in _reverse_with_prefix
self._populate()
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 292, in _populate
for name in pattern.reverse_dict:
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 315, in reverse_dict
self._populate()
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 303, in _populate
lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args))
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 231, in callback
self._callback = get_callable(self._callback_str)
File "/usr/lib/python2.7/dist-packages/django/utils/lru_cache.py", line 101, in wrapper
result = user_function(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 97, in get_callable
mod = import_module(mod_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "tests/django_restframework_gis_tests/views.py", line 5, in <module>
from .serializers import *
File "tests/django_restframework_gis_tests/serializers.py", line 2, in <module>
from rest_framework_gis import serializers as gis_serializers
File "/«PKGBUILDDIR»/rest_framework_gis/serializers.py", line 16, in <module>
_geo_field_mapping = ModelSerializer._field_mapping.mapping
AttributeError: type object 'ModelSerializer' has no attribute '_field_mapping'
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Python-modules-team
mailing list