Index page fails to build after upgrading versions

9 views
Skip to first unread message

Yaşar Arabacı

unread,
Jun 30, 2020, 8:34:36 AM6/30/20
to nikola-discuss
Hi,

I have been using Python 2.7/Nikola ?? for a very long time. Today, I
decided to give upgrading a try, because I had just reinstalled my OS.
Here is my current setup, here is the error I am getting

--------------------------------------------------------------------------------------------------------------------
nikola : Scanning posts..done!
At line:1 char:1
+ nikola build 2> nikola.log
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Scanning
posts..done!:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

.  render_taxonomies:output\index.html
TaskError - taskid:render_taxonomies:output\index.html
PythonAction Error
Traceback (most recent call last):
  File "c:\python38\lib\site-packages\doit\action.py", line 437, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "c:\python38\lib\site-packages\nikola\nikola.py", line 1457, in
render_template
    data = self.template_system.render_template(
  File "c:\python38\lib\site-packages\nikola\plugins\template\mako.py",
line 113, in render_template
    data = template.render_unicode(**context)
  File "c:\python38\lib\site-packages\mako\template.py", line 481, in
render_unicode
    return runtime._render(
  File "c:\python38\lib\site-packages\mako\runtime.py", line 878, in _render
    _render_context(
  File "c:\python38\lib\site-packages\mako\runtime.py", line 920, in
_render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "c:\python38\lib\site-packages\mako\runtime.py", line 947, in
_exec_template
    callable_(context, *args, **kwargs)
  File "C:\Users\yasar\Documents\yasar_programlar\ysarnet\cache\.mako.tmp\base.tmpl.py",
line 70, in render_body
    context['self'].content(**pageargs)
  File "C:\Users\yasar\Documents\yasar_programlar\ysarnet\cache\.mako.tmp\index.tmpl.py",
line 146, in render_content
    context['self'].content_header(**pageargs)
  File "C:\Users\yasar\Documents\yasar_programlar\ysarnet\cache\.mako.tmp\index.tmpl.py",
line 195, in render_content_h
eader
    __M_writer(str(feeds_translations.translation_link()))
TypeError: render_translation_link() missing 1 required positional
argument: 'kind'

########################################
render_taxonomies:output\index.html <stdout>:

-----------------------------------------------------------------------------
My Current Setup:
Windows 10 Home Single Language
Python 3.8.3 64 bit
Nikola 8.1.0
doit 0.32.0
mako 1.1.3

Chris Warrick

unread,
Jul 1, 2020, 3:02:58 PM7/1/20
to Nikola—Discuss
This looks like an issue with your theme. In index.tmpl, you have a
call to translation_link with no arguments. Replace it with this:

${feeds_translations.translation_link(kind)}

If you can’t find anything like this in your theme/theme chain, delete
the cache folder and try again.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16
Reply all
Reply to author
Forward
0 new messages