Package: src:python-enmerkar; Maintainer for src:python-enmerkar is Debian OpenStack <team+openstack@tracker.debian.org>;
Reported by: Lucas Nussbaum <lucas@debian.org>
Date: Fri, 24 Jun 2022 11:33:06 UTC
Severity: serious
Tags: bookworm, ftbfs, sid
Found in version python-enmerkar/0.7.1-3
Fixed in version python-enmerkar/0.7.1-4
Done: Thomas Goirand <zigo@debian.org>
Bug is archived. No further changes may be made.
View this report as an mbox folder, status mbox, maintainer mbox
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenStack <team+openstack@tracker.debian.org>:
Bug#1013603; Package src:python-enmerkar.
(Fri, 24 Jun 2022 11:33:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Lucas Nussbaum <lucas@debian.org>:
New Bug report received and forwarded. Copy sent to Debian OpenStack <team+openstack@tracker.debian.org>.
(Fri, 24 Jun 2022 11:33:08 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: python-enmerkar
Version: 0.7.1-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20220624 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> make[1]: pyversions: No such file or directory
> py3versions: no X-Python3-Version in control file, using supported versions
> pkgos-dh_auto_install --no-py2 --in-tmp
> + PKGOS_USE_PY2=yes
> + PKGOS_USE_PY3=yes
> + PKGOS_IN_TMP=no
> + PKGOS_USE_PY2=no
> + shift
> + PKGOS_IN_TMP=yes
> + shift
> + dpkg-parsechangelog -SSource
> + SRC_PKG_NAME=python-enmerkar
> + echo python-enmerkar
> + sed s/python-//
> + PY_MODULE_NAME=enmerkar
> + [ no = yes ]
> + [ yes = yes ]
> + py3versions -vr
> + PYTHON3S=3.9 3.10
> + [ no = yes ]
> + [ yes = yes ]
> + [ yes = yes ]
> + TARGET_DIR=tmp
> + pwd
> + python3.9 setup.py install --install-layout=deb --root /<<PKGBUILDDIR>>/debian/tmp
> running install
> /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
> warnings.warn(
> running build
> running build_py
> creating build
> creating build/lib
> creating build/lib/enmerkar
> copying enmerkar/__init__.py -> build/lib/enmerkar
> copying enmerkar/middleware.py -> build/lib/enmerkar
> copying enmerkar/extract.py -> build/lib/enmerkar
> creating build/lib/enmerkar/management
> copying enmerkar/management/__init__.py -> build/lib/enmerkar/management
> creating build/lib/enmerkar/templatetags
> copying enmerkar/templatetags/__init__.py -> build/lib/enmerkar/templatetags
> copying enmerkar/templatetags/babel.py -> build/lib/enmerkar/templatetags
> creating build/lib/enmerkar/management/commands
> copying enmerkar/management/commands/__init__.py -> build/lib/enmerkar/management/commands
> copying enmerkar/management/commands/babel.py -> build/lib/enmerkar/management/commands
> running install_lib
> creating /<<PKGBUILDDIR>>/debian/tmp
> creating /<<PKGBUILDDIR>>/debian/tmp/usr
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar
> copying build/lib/enmerkar/__init__.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar
> copying build/lib/enmerkar/middleware.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar
> copying build/lib/enmerkar/extract.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands
> copying build/lib/enmerkar/management/commands/__init__.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands
> copying build/lib/enmerkar/management/commands/babel.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands
> copying build/lib/enmerkar/management/__init__.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management
> creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags
> copying build/lib/enmerkar/templatetags/__init__.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags
> copying build/lib/enmerkar/templatetags/babel.py -> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/__init__.py to __init__.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/middleware.py to middleware.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/extract.py to extract.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands/__init__.py to __init__.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands/babel.py to babel.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/__init__.py to __init__.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags/__init__.py to __init__.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags/babel.py to babel.cpython-39.pyc
> running install_egg_info
> running egg_info
> creating enmerkar.egg-info
> writing enmerkar.egg-info/PKG-INFO
> writing dependency_links to enmerkar.egg-info/dependency_links.txt
> writing entry points to enmerkar.egg-info/entry_points.txt
> writing requirements to enmerkar.egg-info/requires.txt
> writing top-level names to enmerkar.egg-info/top_level.txt
> writing manifest file 'enmerkar.egg-info/SOURCES.txt'
> reading manifest file 'enmerkar.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '*.pyc' found anywhere in distribution
> warning: no previously-included files matching '*.pyo' found anywhere in distribution
> no previously-included directories found matching 'docs/_build'
> adding license file 'COPYING'
> adding license file 'AUTHORS'
> writing manifest file 'enmerkar.egg-info/SOURCES.txt'
> Copying enmerkar.egg-info to /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar-0.7.1.egg-info
> Skipping SOURCES.txt
> running install_scripts
> + pwd
> + python3.10 setup.py install --install-layout=deb --root /<<PKGBUILDDIR>>/debian/tmp
> running install
> /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
> warnings.warn(
> running build
> running build_py
> running install_lib
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/__init__.py to __init__.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/middleware.py to middleware.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/extract.py to extract.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands/__init__.py to __init__.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/commands/babel.py to babel.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/management/__init__.py to __init__.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags/__init__.py to __init__.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar/templatetags/babel.py to babel.cpython-310.pyc
> running install_egg_info
> running egg_info
> writing enmerkar.egg-info/PKG-INFO
> writing dependency_links to enmerkar.egg-info/dependency_links.txt
> writing entry points to enmerkar.egg-info/entry_points.txt
> writing requirements to enmerkar.egg-info/requires.txt
> writing top-level names to enmerkar.egg-info/top_level.txt
> reading manifest file 'enmerkar.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '*.pyc' found anywhere in distribution
> warning: no previously-included files matching '*.pyo' found anywhere in distribution
> no previously-included directories found matching 'docs/_build'
> adding license file 'COPYING'
> adding license file 'AUTHORS'
> writing manifest file 'enmerkar.egg-info/SOURCES.txt'
> removing '/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar-0.7.1.egg-info' (and everything under it)
> Copying enmerkar.egg-info to /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/enmerkar-0.7.1.egg-info
> Skipping SOURCES.txt
> running install_scripts
> + pwd
> + rm -rf /<<PKGBUILDDIR>>/debian/python*/usr/lib/python*/dist-packages/*.pth
> + pwd
> + rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python*/dist-packages/*.pth
> + pwd
> + [ -d /<<PKGBUILDDIR>>/debian/python-enmerkar/usr/bin ]
> set -e ; for pyvers in 3.9 3.10; do \
> python$pyvers -m pytest tests ; \
> done
> ============================= test session starts ==============================
> platform linux -- Python 3.9.13, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
> rootdir: /<<PKGBUILDDIR>>
> plugins: django-3.5.1, cov-3.0.0
> collected 33 items
>
> tests/test_command.py . [ 3%]
> tests/test_extract.py ............................ [ 87%]
> tests/test_render.py FFFF [100%]
>
> =================================== FAILURES ===================================
> ____________________________ test_babel_render[en] _____________________________
>
> request = <WSGIRequest: GET '/'>
>
> @wraps(get_response)
> def inner(request):
> try:
> > response = get_response(request)
>
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def __call__(self, request):
> # Exit out to async mode, if needed
> if asyncio.iscoroutinefunction(self.get_response):
> return self.__acall__(request)
> response = None
> if hasattr(self, "process_request"):
> > response = self.process_request(request)
>
> /usr/lib/python3/dist-packages/django/utils/deprecation.py:133:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def process_request(self, request):
> urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)
> (
> i18n_patterns_used,
> prefixed_default_language,
> > ) = is_language_prefix_patterns_used(urlconf)
>
> /usr/lib/python3/dist-packages/django/middleware/locale.py:24:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> urlconf = 'testproject.urls'
>
> @functools.lru_cache(maxsize=None)
> def is_language_prefix_patterns_used(urlconf):
> """
> Return a tuple of two booleans: (
> `True` if i18n_patterns() (LocalePrefixPattern) is used in the URLconf,
> `True` if the default language should be prefixed
> )
> """
> > for url_pattern in get_resolver(urlconf).url_patterns:
>
> /usr/lib/python3/dist-packages/django/conf/urls/i18n.py:31:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e56310>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def url_patterns(self):
> # urlconf_module might be a valid set of patterns, so we default to it
> > patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:696:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e562b0>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def urlconf_module(self):
> if isinstance(self.urlconf_name, str):
> > return import_module(self.urlconf_name)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None
>
> def import_module(name, package=None):
> """Import a module.
>
> The 'package' argument is required when performing a relative import. It
> specifies the package to use as the anchor point from which to resolve the
> relative import to an absolute import.
>
> """
> level = 0
> if name.startswith('.'):
> if not package:
> msg = ("the 'package' argument is required to perform a relative "
> "import for {!r}")
> raise TypeError(msg.format(name))
> for character in name:
> if character != '.':
> break
> level += 1
> > return _bootstrap._gcd_import(name[level:], package, level)
>
> /usr/lib/python3.9/importlib/__init__.py:127:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None, level = 0
>
> > ???
>
> <frozen importlib._bootstrap>:1030:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:1007:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:986:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> spec = ModuleSpec(name='testproject.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f8855807820>, origin='/<<PKGBUILDDIR>>/tests/testproject/urls.py')
>
> > ???
>
> <frozen importlib._bootstrap>:680:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <_frozen_importlib_external.SourceFileLoader object at 0x7f8855807820>
> module = <module 'testproject.urls' from '/<<PKGBUILDDIR>>/tests/testproject/urls.py'>
>
> > ???
>
> <frozen importlib._bootstrap_external>:850:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> f = <built-in function exec>
> args = (<code object <module> at 0x7f8855812b30, file "/<<PKGBUILDDIR>>/tests/testproject/...c', '__doc__': None, '__file__': '/<<PKGBUILDDIR>>/tests/testproject/urls.py', ...})
> kwds = {}
>
> > ???
>
> <frozen importlib._bootstrap>:228:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
>
> During handling of the above exception, another exception occurred:
>
> client = <django.test.client.Client object at 0x7f8855b39fa0>, locale = 'en'
>
> @pytest.mark.parametrize('locale', ('en', 'fi', 'sv', 'pt-BR'))
> def test_babel_render(client, locale):
> """
> Test the middleware and the rendery bits.
> """
> > response = client.get('/', HTTP_ACCEPT_LANGUAGE=locale)
>
> tests/test_render.py:12:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/django/test/client.py:836: in get
> response = super().get(path, data=data, secure=secure, **extra)
> /usr/lib/python3/dist-packages/django/test/client.py:424: in get
> return self.generic(
> /usr/lib/python3/dist-packages/django/test/client.py:541: in generic
> return self.request(**r)
> /usr/lib/python3/dist-packages/django/test/client.py:805: in request
> response = self.handler(environ)
> /usr/lib/python3/dist-packages/django/test/client.py:153: in __call__
> response = self.get_response(request)
> /usr/lib/python3/dist-packages/django/core/handlers/base.py:140: in get_response
> response = self._middleware_chain(request)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner
> response = response_for_exception(request, exc)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:139: in response_for_exception
> response = handle_uncaught_exception(
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:183: in handle_uncaught_exception
> callback = resolver.resolve_error_handler(500)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:710: in resolve_error_handler
> callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
> /usr/lib/python3/dist-packages/django/utils/functional.py:49: in __get__
> res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689: in urlconf_module
> return import_module(self.urlconf_name)
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1030: in _gcd_import
> ???
> <frozen importlib._bootstrap>:1007: in _find_and_load
> ???
> <frozen importlib._bootstrap>:986: in _find_and_load_unlocked
> ???
> <frozen importlib._bootstrap>:680: in _load_unlocked
> ???
> <frozen importlib._bootstrap_external>:850: in exec_module
> ???
> <frozen importlib._bootstrap>:228: in _call_with_frames_removed
> ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
> ____________________________ test_babel_render[fi] _____________________________
>
> request = <WSGIRequest: GET '/'>
>
> @wraps(get_response)
> def inner(request):
> try:
> > response = get_response(request)
>
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def __call__(self, request):
> # Exit out to async mode, if needed
> if asyncio.iscoroutinefunction(self.get_response):
> return self.__acall__(request)
> response = None
> if hasattr(self, "process_request"):
> > response = self.process_request(request)
>
> /usr/lib/python3/dist-packages/django/utils/deprecation.py:133:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def process_request(self, request):
> urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)
> (
> i18n_patterns_used,
> prefixed_default_language,
> > ) = is_language_prefix_patterns_used(urlconf)
>
> /usr/lib/python3/dist-packages/django/middleware/locale.py:24:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> urlconf = 'testproject.urls'
>
> @functools.lru_cache(maxsize=None)
> def is_language_prefix_patterns_used(urlconf):
> """
> Return a tuple of two booleans: (
> `True` if i18n_patterns() (LocalePrefixPattern) is used in the URLconf,
> `True` if the default language should be prefixed
> )
> """
> > for url_pattern in get_resolver(urlconf).url_patterns:
>
> /usr/lib/python3/dist-packages/django/conf/urls/i18n.py:31:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e56310>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def url_patterns(self):
> # urlconf_module might be a valid set of patterns, so we default to it
> > patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:696:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e562b0>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def urlconf_module(self):
> if isinstance(self.urlconf_name, str):
> > return import_module(self.urlconf_name)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None
>
> def import_module(name, package=None):
> """Import a module.
>
> The 'package' argument is required when performing a relative import. It
> specifies the package to use as the anchor point from which to resolve the
> relative import to an absolute import.
>
> """
> level = 0
> if name.startswith('.'):
> if not package:
> msg = ("the 'package' argument is required to perform a relative "
> "import for {!r}")
> raise TypeError(msg.format(name))
> for character in name:
> if character != '.':
> break
> level += 1
> > return _bootstrap._gcd_import(name[level:], package, level)
>
> /usr/lib/python3.9/importlib/__init__.py:127:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None, level = 0
>
> > ???
>
> <frozen importlib._bootstrap>:1030:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:1007:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:986:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> spec = ModuleSpec(name='testproject.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f88554b7040>, origin='/<<PKGBUILDDIR>>/tests/testproject/urls.py')
>
> > ???
>
> <frozen importlib._bootstrap>:680:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <_frozen_importlib_external.SourceFileLoader object at 0x7f88554b7040>
> module = <module 'testproject.urls' from '/<<PKGBUILDDIR>>/tests/testproject/urls.py'>
>
> > ???
>
> <frozen importlib._bootstrap_external>:850:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> f = <built-in function exec>
> args = (<code object <module> at 0x7f885565c240, file "/<<PKGBUILDDIR>>/tests/testproject/...c', '__doc__': None, '__file__': '/<<PKGBUILDDIR>>/tests/testproject/urls.py', ...})
> kwds = {}
>
> > ???
>
> <frozen importlib._bootstrap>:228:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
>
> During handling of the above exception, another exception occurred:
>
> client = <django.test.client.Client object at 0x7f88554b78e0>, locale = 'fi'
>
> @pytest.mark.parametrize('locale', ('en', 'fi', 'sv', 'pt-BR'))
> def test_babel_render(client, locale):
> """
> Test the middleware and the rendery bits.
> """
> > response = client.get('/', HTTP_ACCEPT_LANGUAGE=locale)
>
> tests/test_render.py:12:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/django/test/client.py:836: in get
> response = super().get(path, data=data, secure=secure, **extra)
> /usr/lib/python3/dist-packages/django/test/client.py:424: in get
> return self.generic(
> /usr/lib/python3/dist-packages/django/test/client.py:541: in generic
> return self.request(**r)
> /usr/lib/python3/dist-packages/django/test/client.py:805: in request
> response = self.handler(environ)
> /usr/lib/python3/dist-packages/django/test/client.py:153: in __call__
> response = self.get_response(request)
> /usr/lib/python3/dist-packages/django/core/handlers/base.py:140: in get_response
> response = self._middleware_chain(request)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner
> response = response_for_exception(request, exc)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:139: in response_for_exception
> response = handle_uncaught_exception(
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:183: in handle_uncaught_exception
> callback = resolver.resolve_error_handler(500)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:710: in resolve_error_handler
> callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
> /usr/lib/python3/dist-packages/django/utils/functional.py:49: in __get__
> res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689: in urlconf_module
> return import_module(self.urlconf_name)
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1030: in _gcd_import
> ???
> <frozen importlib._bootstrap>:1007: in _find_and_load
> ???
> <frozen importlib._bootstrap>:986: in _find_and_load_unlocked
> ???
> <frozen importlib._bootstrap>:680: in _load_unlocked
> ???
> <frozen importlib._bootstrap_external>:850: in exec_module
> ???
> <frozen importlib._bootstrap>:228: in _call_with_frames_removed
> ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
> ____________________________ test_babel_render[sv] _____________________________
>
> request = <WSGIRequest: GET '/'>
>
> @wraps(get_response)
> def inner(request):
> try:
> > response = get_response(request)
>
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def __call__(self, request):
> # Exit out to async mode, if needed
> if asyncio.iscoroutinefunction(self.get_response):
> return self.__acall__(request)
> response = None
> if hasattr(self, "process_request"):
> > response = self.process_request(request)
>
> /usr/lib/python3/dist-packages/django/utils/deprecation.py:133:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def process_request(self, request):
> urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)
> (
> i18n_patterns_used,
> prefixed_default_language,
> > ) = is_language_prefix_patterns_used(urlconf)
>
> /usr/lib/python3/dist-packages/django/middleware/locale.py:24:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> urlconf = 'testproject.urls'
>
> @functools.lru_cache(maxsize=None)
> def is_language_prefix_patterns_used(urlconf):
> """
> Return a tuple of two booleans: (
> `True` if i18n_patterns() (LocalePrefixPattern) is used in the URLconf,
> `True` if the default language should be prefixed
> )
> """
> > for url_pattern in get_resolver(urlconf).url_patterns:
>
> /usr/lib/python3/dist-packages/django/conf/urls/i18n.py:31:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e56310>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def url_patterns(self):
> # urlconf_module might be a valid set of patterns, so we default to it
> > patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:696:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e562b0>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def urlconf_module(self):
> if isinstance(self.urlconf_name, str):
> > return import_module(self.urlconf_name)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None
>
> def import_module(name, package=None):
> """Import a module.
>
> The 'package' argument is required when performing a relative import. It
> specifies the package to use as the anchor point from which to resolve the
> relative import to an absolute import.
>
> """
> level = 0
> if name.startswith('.'):
> if not package:
> msg = ("the 'package' argument is required to perform a relative "
> "import for {!r}")
> raise TypeError(msg.format(name))
> for character in name:
> if character != '.':
> break
> level += 1
> > return _bootstrap._gcd_import(name[level:], package, level)
>
> /usr/lib/python3.9/importlib/__init__.py:127:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None, level = 0
>
> > ???
>
> <frozen importlib._bootstrap>:1030:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:1007:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:986:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> spec = ModuleSpec(name='testproject.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f8855586970>, origin='/<<PKGBUILDDIR>>/tests/testproject/urls.py')
>
> > ???
>
> <frozen importlib._bootstrap>:680:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <_frozen_importlib_external.SourceFileLoader object at 0x7f8855586970>
> module = <module 'testproject.urls' from '/<<PKGBUILDDIR>>/tests/testproject/urls.py'>
>
> > ???
>
> <frozen importlib._bootstrap_external>:850:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> f = <built-in function exec>
> args = (<code object <module> at 0x7f88558e12f0, file "/<<PKGBUILDDIR>>/tests/testproject/...c', '__doc__': None, '__file__': '/<<PKGBUILDDIR>>/tests/testproject/urls.py', ...})
> kwds = {}
>
> > ???
>
> <frozen importlib._bootstrap>:228:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
>
> During handling of the above exception, another exception occurred:
>
> client = <django.test.client.Client object at 0x7f88555876d0>, locale = 'sv'
>
> @pytest.mark.parametrize('locale', ('en', 'fi', 'sv', 'pt-BR'))
> def test_babel_render(client, locale):
> """
> Test the middleware and the rendery bits.
> """
> > response = client.get('/', HTTP_ACCEPT_LANGUAGE=locale)
>
> tests/test_render.py:12:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/django/test/client.py:836: in get
> response = super().get(path, data=data, secure=secure, **extra)
> /usr/lib/python3/dist-packages/django/test/client.py:424: in get
> return self.generic(
> /usr/lib/python3/dist-packages/django/test/client.py:541: in generic
> return self.request(**r)
> /usr/lib/python3/dist-packages/django/test/client.py:805: in request
> response = self.handler(environ)
> /usr/lib/python3/dist-packages/django/test/client.py:153: in __call__
> response = self.get_response(request)
> /usr/lib/python3/dist-packages/django/core/handlers/base.py:140: in get_response
> response = self._middleware_chain(request)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner
> response = response_for_exception(request, exc)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:139: in response_for_exception
> response = handle_uncaught_exception(
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:183: in handle_uncaught_exception
> callback = resolver.resolve_error_handler(500)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:710: in resolve_error_handler
> callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
> /usr/lib/python3/dist-packages/django/utils/functional.py:49: in __get__
> res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689: in urlconf_module
> return import_module(self.urlconf_name)
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1030: in _gcd_import
> ???
> <frozen importlib._bootstrap>:1007: in _find_and_load
> ???
> <frozen importlib._bootstrap>:986: in _find_and_load_unlocked
> ???
> <frozen importlib._bootstrap>:680: in _load_unlocked
> ???
> <frozen importlib._bootstrap_external>:850: in exec_module
> ???
> <frozen importlib._bootstrap>:228: in _call_with_frames_removed
> ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
> ___________________________ test_babel_render[pt-BR] ___________________________
>
> request = <WSGIRequest: GET '/'>
>
> @wraps(get_response)
> def inner(request):
> try:
> > response = get_response(request)
>
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def __call__(self, request):
> # Exit out to async mode, if needed
> if asyncio.iscoroutinefunction(self.get_response):
> return self.__acall__(request)
> response = None
> if hasattr(self, "process_request"):
> > response = self.process_request(request)
>
> /usr/lib/python3/dist-packages/django/utils/deprecation.py:133:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <LocaleMiddleware get_response=convert_exception_to_response.<locals>.inner>
> request = <WSGIRequest: GET '/'>
>
> def process_request(self, request):
> urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)
> (
> i18n_patterns_used,
> prefixed_default_language,
> > ) = is_language_prefix_patterns_used(urlconf)
>
> /usr/lib/python3/dist-packages/django/middleware/locale.py:24:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> urlconf = 'testproject.urls'
>
> @functools.lru_cache(maxsize=None)
> def is_language_prefix_patterns_used(urlconf):
> """
> Return a tuple of two booleans: (
> `True` if i18n_patterns() (LocalePrefixPattern) is used in the URLconf,
> `True` if the default language should be prefixed
> )
> """
> > for url_pattern in get_resolver(urlconf).url_patterns:
>
> /usr/lib/python3/dist-packages/django/conf/urls/i18n.py:31:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e56310>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def url_patterns(self):
> # urlconf_module might be a valid set of patterns, so we default to it
> > patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:696:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <django.utils.functional.cached_property object at 0x7f8855e562b0>
> instance = <URLResolver 'testproject.urls' (None:None) '^/'>
> cls = <class 'django.urls.resolvers.URLResolver'>
>
> def __get__(self, instance, cls=None):
> """
> Call the function and put the return value in instance.__dict__ so that
> subsequent attribute access on the instance returns the cached value
> instead of calling cached_property.__get__().
> """
> if instance is None:
> return self
> > res = instance.__dict__[self.name] = self.func(instance)
>
> /usr/lib/python3/dist-packages/django/utils/functional.py:49:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <URLResolver 'testproject.urls' (None:None) '^/'>
>
> @cached_property
> def urlconf_module(self):
> if isinstance(self.urlconf_name, str):
> > return import_module(self.urlconf_name)
>
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None
>
> def import_module(name, package=None):
> """Import a module.
>
> The 'package' argument is required when performing a relative import. It
> specifies the package to use as the anchor point from which to resolve the
> relative import to an absolute import.
>
> """
> level = 0
> if name.startswith('.'):
> if not package:
> msg = ("the 'package' argument is required to perform a relative "
> "import for {!r}")
> raise TypeError(msg.format(name))
> for character in name:
> if character != '.':
> break
> level += 1
> > return _bootstrap._gcd_import(name[level:], package, level)
>
> /usr/lib/python3.9/importlib/__init__.py:127:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', package = None, level = 0
>
> > ???
>
> <frozen importlib._bootstrap>:1030:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:1007:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> name = 'testproject.urls', import_ = <function _gcd_import at 0x7f8857c48310>
>
> > ???
>
> <frozen importlib._bootstrap>:986:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> spec = ModuleSpec(name='testproject.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f88556a97c0>, origin='/<<PKGBUILDDIR>>/tests/testproject/urls.py')
>
> > ???
>
> <frozen importlib._bootstrap>:680:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <_frozen_importlib_external.SourceFileLoader object at 0x7f88556a97c0>
> module = <module 'testproject.urls' from '/<<PKGBUILDDIR>>/tests/testproject/urls.py'>
>
> > ???
>
> <frozen importlib._bootstrap_external>:850:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> f = <built-in function exec>
> args = (<code object <module> at 0x7f885562b920, file "/<<PKGBUILDDIR>>/tests/testproject/...c', '__doc__': None, '__file__': '/<<PKGBUILDDIR>>/tests/testproject/urls.py', ...})
> kwds = {}
>
> > ???
>
> <frozen importlib._bootstrap>:228:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
>
> During handling of the above exception, another exception occurred:
>
> client = <django.test.client.Client object at 0x7f88556a9bb0>, locale = 'pt-BR'
>
> @pytest.mark.parametrize('locale', ('en', 'fi', 'sv', 'pt-BR'))
> def test_babel_render(client, locale):
> """
> Test the middleware and the rendery bits.
> """
> > response = client.get('/', HTTP_ACCEPT_LANGUAGE=locale)
>
> tests/test_render.py:12:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/django/test/client.py:836: in get
> response = super().get(path, data=data, secure=secure, **extra)
> /usr/lib/python3/dist-packages/django/test/client.py:424: in get
> return self.generic(
> /usr/lib/python3/dist-packages/django/test/client.py:541: in generic
> return self.request(**r)
> /usr/lib/python3/dist-packages/django/test/client.py:805: in request
> response = self.handler(environ)
> /usr/lib/python3/dist-packages/django/test/client.py:153: in __call__
> response = self.get_response(request)
> /usr/lib/python3/dist-packages/django/core/handlers/base.py:140: in get_response
> response = self._middleware_chain(request)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner
> response = response_for_exception(request, exc)
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:139: in response_for_exception
> response = handle_uncaught_exception(
> /usr/lib/python3/dist-packages/django/core/handlers/exception.py:183: in handle_uncaught_exception
> callback = resolver.resolve_error_handler(500)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:710: in resolve_error_handler
> callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
> /usr/lib/python3/dist-packages/django/utils/functional.py:49: in __get__
> res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:689: in urlconf_module
> return import_module(self.urlconf_name)
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1030: in _gcd_import
> ???
> <frozen importlib._bootstrap>:1007: in _find_and_load
> ???
> <frozen importlib._bootstrap>:986: in _find_and_load_unlocked
> ???
> <frozen importlib._bootstrap>:680: in _load_unlocked
> ???
> <frozen importlib._bootstrap_external>:850: in exec_module
> ???
> <frozen importlib._bootstrap>:228: in _call_with_frames_removed
> ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> import time
>
> > from django.conf.urls import url
> E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
>
> tests/testproject/urls.py:3: ImportError
> =========================== short test summary info ============================
> FAILED tests/test_render.py::test_babel_render[en] - ImportError: cannot impo...
> FAILED tests/test_render.py::test_babel_render[fi] - ImportError: cannot impo...
> FAILED tests/test_render.py::test_babel_render[sv] - ImportError: cannot impo...
> FAILED tests/test_render.py::test_babel_render[pt-BR] - ImportError: cannot i...
> ========================= 4 failed, 29 passed in 1.42s =========================
> make[1]: *** [debian/rules:19: override_dh_auto_install] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/06/24/python-enmerkar_0.7.1-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220624&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply sent
to Thomas Goirand <zigo@debian.org>:
You have taken responsibility.
(Thu, 30 Jun 2022 16:12:03 GMT) (full text, mbox, link).
Notification sent
to Lucas Nussbaum <lucas@debian.org>:
Bug acknowledged by developer.
(Thu, 30 Jun 2022 16:12:03 GMT) (full text, mbox, link).
Message #10 received at 1013603-close@bugs.debian.org (full text, mbox, reply):
Source: python-enmerkar Source-Version: 0.7.1-4 Done: Thomas Goirand <zigo@debian.org> We believe that the bug you reported is fixed in the latest version of python-enmerkar, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1013603@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Thomas Goirand <zigo@debian.org> (supplier of updated python-enmerkar package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Thu, 30 Jun 2022 17:13:38 +0200 Source: python-enmerkar Architecture: source Version: 0.7.1-4 Distribution: unstable Urgency: medium Maintainer: Debian OpenStack <team+openstack@tracker.debian.org> Changed-By: Thomas Goirand <zigo@debian.org> Closes: 1013603 Changes: python-enmerkar (0.7.1-4) unstable; urgency=medium . * Add django-4.x-django.conf.urls.url-is-removed.patch (Closes: #1013603). Checksums-Sha1: 5ece916cd71414fc9636447657fbb87a720468f1 2289 python-enmerkar_0.7.1-4.dsc 1b5a806dd1ccf140f6de8ff30f31e3d495c405ed 3548 python-enmerkar_0.7.1-4.debian.tar.xz 9a12d9231cafedf2af6f596cb24717db1ac17e9d 9012 python-enmerkar_0.7.1-4_amd64.buildinfo Checksums-Sha256: 14dbba89ac13e1ca52d7763028601c3b0645e04a5258f31c650b6a8db3699093 2289 python-enmerkar_0.7.1-4.dsc 1e2c07e2ca86b9feeed81ef68aed2754fd84715d08c56b150b7c3df30af53a27 3548 python-enmerkar_0.7.1-4.debian.tar.xz 05964ac8d55733ce13b35cc9cb1dbef91bcb8196ec720d9df79413ecc258d774 9012 python-enmerkar_0.7.1-4_amd64.buildinfo Files: 182938c8d97830db2c1f4f17bd59e3bf 2289 python optional python-enmerkar_0.7.1-4.dsc 87a36ba366e17ba4718b2e7b7ac43bd7 3548 python optional python-enmerkar_0.7.1-4.debian.tar.xz 7e21808ff2c4997afea3f078caa06bd0 9012 python optional python-enmerkar_0.7.1-4_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmK9vgMACgkQ1BatFaxr Q/7HdRAAlrvJTQgt8CFitu7wdLDc2crIMwSe0WGPldMY+DAFtaY7Vha2zkk8SgmI Ja3ljqFa07RF02T7kFQ7s9qp88n7Z0EILqS3qXqFITHOGJh4zUZlY62vtNItGLz/ WAdPusgo+jwEaVdblpFc+ToD3lcPSIxAxnnHEozrbFfUI7T62esoYqSoKn8Pvrqs 15c4tQAPhbCra53rJCUdkhl8A1rZzNQWNjS5v8/g5bqYx08FmJl9Z5Q62RHjsi5S wwOZztl4L3O4AfPXHXEyg3z/Qi1qdbcJdMvmcxY/Ti1SgZ9kQpzPhOPYIYoCsyVq 6H2XSImtqA+BXFlHbkOoIhikkzWXJ64KvfTJMxfSwbbEEc6cWADkwokG908VBy7c lMJVcujgKLYMkzN7f+W5+PShyr0nSNpY1OV0cTrUUXqxAvTCGmiNALhCuCJs7EAr BudkmesnHB0gNE/vzbcrN3Suji65XP3RbRrIc7XkVZbjog8p2UmwNuOkm/5/FWNf NHtzVKo2wtxiiicOEqvimnhfjacc9zLVz1l9JmsMfWvHv69z208G9iivl1zqEHQ9 HoQtnDErTXBMs8aEyg2lDVo0VtduTa5iQFPOKq8ZcsDdoBh4GHgxjoKIzEGTnGet 54VOlNxc9UfAMoYBOQY3jbC/UkeTQrbXUeqbVNqQXc0rfAQ0qm0= =UwQN -----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 03 Aug 2022 07:24:38 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.