I would like to start a blog and after a few thinking I decided I wanted a static blog,
and that I want to use a Python based static site generator. Adfter a few reading I would like to use Nikola,
so today I have installed Nikola on my Arch distribution with Python 3.4 using pip
(note, this won't be my production server, I just wanted to try it a bit on my own laptop):
pip install nikola[extras,tests]
The installation seems to have happened without issues.
I then tried to create my blog using:
nikola init mysite
This however fails with the message:
[2014-05-25T13:37:38Z] WARNING: Nikola: Could not guess locale for language en, using locale C
Traceback (most recent call last):
File "/home/luca/.local/bin/nikola", line 9, in <module>
load_entry_point('Nikola==7.0.0', 'console_scripts', 'nikola')()
File "/home/luca/.local/lib/python3.4/site-packages/nikola/__main__.py", line 124, in main
site = Nikola(**config)
File "/home/luca/.local/lib/python3.4/site-packages/nikola/nikola.py", line 517, in __init__
self.plugin_manager.collectPlugins()
File "/home/luca/.local/lib/python3.4/site-packages/yapsy/PluginManager.py", line 527, in collectPlugins
self.locatePlugins()
File "/home/luca/.local/lib/python3.4/site-packages/yapsy/PluginManager.py", line 442, in locatePlugins
self._candidates, npc = self.getPluginLocator().locatePlugins()
File "/home/luca/.local/lib/python3.4/site-packages/yapsy/PluginFileLocator.py", line 430, in locatePlugins
plugin_info = self._getInfoForPluginFromAnalyzer(analyzer, dirpath, filename)
File "/home/luca/.local/lib/python3.4/site-packages/yapsy/PluginFileLocator.py", line 384, in _getInfoForPluginFromAnalyzer
plugin_info_dict,config_parser = analyzer.getInfosDictFromPlugin(dirpath, filename)
File "/home/luca/.local/lib/python3.4/site-packages/yapsy/PluginFileLocator.py", line 264, in getInfosDictFromPlugin
raise ValueError("Missing *name* of the plugin in extracted infos.")
ValueError: Missing *name* of the plugin in extracted infos.
I asked on Gihub and @Kwpolska told me he could reproduce the issue and that this is due to my locale settings/
After checking I think that my locale is configured correctly, but it still doesn't work, though.
The output of locale -a is:
while the output of locale is:
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
where it is said that the error is due to the fact that LC_ALL is empty.
So I set LC_ALL like this: export LC_ALL="en_GB.UTF-8"
and the output of locale is now in fact:
locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8
I then tried to create my site again (nikola init mysite)
but I keep getting the same error.
Could you please help me to understand if my locale is set correctly? or if I am doing something wrong
with the initialization of my nikola blog.
Thanks a lot in advance to all of you for the help!