Closed mzch closed 3 years ago
The issue is that you've installed version 0.10.2, which does not support Python 3.
Please try any of the versions 0.11.x
I'll add a Python version test to the earlier versions, thanks for reporting this issue.
I'm on master, and I'm still getting this error @evgenyfadeev with Python 3.7.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
result = template.render(RequestContext(request))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
response = response or self.get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
return callback(request, **param_dict)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
result = template.render(RequestContext(request, data))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
result = template.render(RequestContext(request))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
response = response or self.get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
return callback(request, **param_dict)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
result = template.render(RequestContext(request, data))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
result = template.render(RequestContext(request))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
response = response or self.get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
return callback(request, **param_dict)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
result = template.render(RequestContext(request, data))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
result = template.render(RequestContext(request))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
response = response or self.get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
return callback(request, **param_dict)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
result = template.render(RequestContext(request, data))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
result = template.render(RequestContext(request))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/wsgiref/handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/wsgi.py", line 141, in __call__
response = self.get_response(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/base.py", line 75, in get_response
response = self._middleware_chain(request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
return callback(request, **param_dict)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
result = template.render(RequestContext(request, data))
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
return super(Template, self).render(context, request)
File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
return self.template.render(context)
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
{% extends "two_column_body.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
{% include "meta/html_head_javascript.html" %}
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'r
I think the problem here is that we're declaring
Jinja2>=2.10
But Jinji 3.1.0 has in the build notes,
Markup and escape should be imported from MarkupSafe.
Which is causing a problem
If I switch
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
askbot['data']['languageCode'] = '{{ current_language_code|escapejs }}';
{% if request.user.is_authenticated %}
to
askbot['data']['languageCode'] = '{{ current_language_code|escapejs }}';
{% if request.user.is_authenticated %}
askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
I get this instead,
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
askbot['data']['languageCode'] = '{{ current_language_code|escapejs }}';
File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/templatetags/extra_filters_jinja.py", line 448, in escapejs
return jinja2.Markup("".join(_js_escapes.get(l, l) for l in value))
AttributeError: module 'jinja2' has no attribute 'Markup'
[22/Jul/2022 22:47:39] "GET /favicon.ico HTTP/1.1" 500 59`
And I think that may be the core source of the problem.
I've just limited Jinja2 by <3.1, did that help? Works in my environment... I'm testing builds from scratch now.
In admi panel I tired to remove a user, then
Internal Server Error
occurred.