You need to sign in or sign up before continuing.
[debian] Looping error while running tests in python3.6
Hi!
When I build the package for debian based on the latest release of hyperkitty, I get a test failure in python3.6 that triggers an error while logging and this loops for ever.
See attached excerpt (note that the python3.7 tests were ran first, and pass properly)
py3versions: no X-Python3-Version in control file, using supported versions
set -e; \
for python3 in python3.7 python3.6; do \
$python3 /usr/bin/django-admin test --pythonpath=. --settings=hyperkitty.tests.settings_test hyperkitty; \
done
.............s....................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 262 tests in 80.117s
OK (skipped=1)
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
Destroying test database for alias 'default'...
.............s.....................................................................................................................................--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [mlist] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('mlist', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [mlist] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('mlist', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [mlist] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('mlist', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [mlist] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('mlist', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [mlist] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('mlist', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'mlist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [mlist] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('mlist', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'query'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'query'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 896, in _resolve_lookup
current = current[int(bit)]
ValueError: invalid literal for int() with base 10: 'query'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 903, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [query] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f2123dc9730>>, 'LANGUAGES': [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokm\xe5l'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], 'LANGUAGE_CODE': 'en', 'LANGUAGE_BIDI': False, 'MEDIA_URL': '', 'STATIC_URL': '/static/', 'TIME_ZONE': 'UTC', 'request': <WSGIRequest: GET '/profile/favorites'>, 'user': <SimpleLazyObject: <User: testuser>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f21246c8b00>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f2124d6ca90>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LOGIN_URL': 'account_login', 'LOGOUT_URL': 'account_logout', 'INSTALLED_APPS': ('hyperkitty', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', 'django_mailman3.lib.auth.fedora', 'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.stackexchange'), 'site_name': 'example.com', 'HYPERKITTY_VERSION': '1.2.1'}, {}, {'favorites': <Page 1 of 1>, 'subpage': 'favorites'}]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 2765: ordinal not in range(128)
Call stack:
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 603, in run_tests
result = self.run_suite(suite)
File "/usr/lib/python3/dist-packages/django/test/runner.py", line 567, in run_suite
return runner.run(suite)
File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3/dist-packages/django/test/testcases.py", line 213, in __call__
super(SimpleTestCase, self).__call__(result)
File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "./hyperkitty/tests/views/test_accounts.py", line 178, in test_favorites
response = self.client.get(reverse("hk_user_favorites"))
File "/usr/lib/python3/dist-packages/django/test/client.py", line 536, in get
**extra)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 340, in get
return self.generic('GET', path, secure=secure, **r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 416, in generic
return self.request(**r)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 483, in request
response = self.handler(environ)
File "/usr/lib/python3/dist-packages/django/test/client.py", line 144, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/utils/deprecation.py", line 140, in __call__
response = self.get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./hyperkitty/views/accounts.py", line 75, in favorites
"subpage": "favorites",
File "/usr/lib/python3/dist-packages/django/shortcuts.py", line 30, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/usr/lib/python3/dist-packages/django/template/loader.py", line 68, in render_to_string
return template.render(context, request)
File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 66, in render
return self.template.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 207, in render
return self._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/loader_tags.py", line 177, in render
return compiled_parent._render(context)
File "/usr/lib/python3/dist-packages/django/test/utils.py", line 107, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 990, in render
bit = node.render_annotated(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 957, in render_annotated
return self.render(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 315, in render
match = condition.eval(context)
File "/usr/lib/python3/dist-packages/django/template/defaulttags.py", line 892, in eval
return self.value.resolve(context, ignore_failures=True)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 708, in resolve
obj = self.var.resolve(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 849, in resolve
value = self._resolve_lookup(context)
File "/usr/lib/python3/dist-packages/django/template/base.py", line 925, in _resolve_lookup
exc_info=True,
Message: "Exception while resolving variable '%s' in template '%s'."
Arguments: ('query', 'hyperkitty/user_profile/favorites.html')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 882, in _resolve_lookup
current = current[bit]
File "/usr/lib/python3/dist-packages/django/template/context.py", line 87, in __getitem__
raise KeyError(key)
KeyError: 'query'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/template/base.py", line 888, in _resolve_lookup
if isinstance(current, BaseContext) and getattr(type(current), bit):
AttributeError: type object 'RequestContext' has no attribute 'query'
This goes on forever. (Note that after a lot of keyerror mlist, there seem to have some keyerror query that appear at the end of the paste)
May I ask you for some help to debug this properly and find the root cause of this issue?
Thanks!
Edited by Pierre-Elliott Bécue