<!DOCTYPE html><html><head><title></title></head><body><div>Hi there,</div><div><br></div><div>Before going into the code and fixing this myself, I was wondering if anyone had come across the following error before. This is with the latest version of the code from the repository.</div><div><br></div><div>This occurs with Postgres, but not with SQLite (we have had to roll back from postgres to SQLite because of this error):</div><div><br></div><div><b>  </b><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"><b>File "/home/kallithea/kallithea/kallithea/lib/webutils.py", line 577, in age</b></span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"><b>    if prevdate > now:</b></span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"><b>TypeError: can't compare offset-naive and offset-aware datetimes</b></span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"><b>Traceback (most recent call last):</b></span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/appwrappers/session.py", line 71, in __call__</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    response = self.next_handler(controller, environ, context)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/appwrappers/i18n.py", line 71, in __call__</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return self.next_handler(controller, environ, context)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/wsgiapp.py", line 243, in _dispatch</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return controller(environ, context)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/controllers/base.py", line 531, in __call__</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return super(BaseController, self).__call__(environ, context)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/controllers/dispatcher.py", line 118, in __call__</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    response = self._perform_call(context)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/controllers/dispatcher.py", line 107, in _perform_call</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    r = self._call(action, params, remainder=remainder, context=context)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/controllers/decoratedcontroller.py", line 129, in _call</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    output = controller_caller(context_config, bound_controller_callable, remainder, params)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/controllers/decoration.py", line 21, in _decorated_controller_caller</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return application_controller_caller(tg_config, controller, remainder, params)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/tg/configurator/components/dispatch.py", line 114, in _call_controller</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return controller(*remainder, **params)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/controllers/admin/repo_groups.py", line 278, in show_by_name</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return self.show(group_name)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/decorator.py", line 232, in fun</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return caller(func, *(extras + args), **kw)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/lib/auth.py", line 575, in __wrapper</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return func(*fargs, **fkwargs)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/controllers/admin/repo_groups.py", line 291, in show</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    c.data = RepoModel().get_repos_as_dict(repos_list,</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/model/repo.py", line 178, in get_repos_as_dict</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    "last_change": last_change(repo.last_db_change),</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/model/repo.py", line 130, in last_change</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return _render("last_change", last_change)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/kallithea/model/repo.py", line 102, in _render_datatable</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return tmpl.render_unicode(</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/mako/template.py", line 439, in render_unicode</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    return runtime._render(</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/mako/runtime.py", line 874, in _render</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    _render_context(</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/mako/runtime.py", line 920, in _render_context</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    _exec_template(callable_, context, args=args, kwargs=kwargs)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "/home/kallithea/kallithea/venv/lib/python3.9/site-packages/mako/runtime.py", line 943, in _exec_template</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">    callable_(context, *args, **kwargs)</span></div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">  File "data_table__dt_elements_html", line 133, in render_last_change</span></div><div><br></div><div><br></div><div>Thanks</div><div>Jamie</div></body></html>