Closed grimlck closed 11 years ago
When you copy orphan make sure messages got copied too.
Enviado desde mi teléfono inteligente Sony Xperia™
Micha notifications@github.com escribió:
I was trying to build a theme from scratch following the docs. But after copying the orphan theme to the themes folder of the site and calling nikola build it breaks with:
Traceback (most recent call last): File "/Users/micha/pythonprojects/.virtualenvs/nikola_temp/bin/nikola", line 57, in <module> site = nikola.Nikola(**config) File "/Users/micha/pythonprojects/.virtualenvs/nikola_temp/lib/python2.7/site-packages/nikola/nikola.py", line 114, in __init__ self.config['TRANSLATIONS']) File "/Users/micha/pythonprojects/.virtualenvs/nikola_temp/lib/python2.7/site-packages/nikola/utils.py", line 194, in load_messages english = __import__('messages_en') ImportError: No module named messages_en
When copying over the "messages" folder from the "default" theme it build without problems.
Reply to this email directly or view it on GitHub: https://github.com/ralsina/nikola/issues/205
Maybe you could add this information to the docs?
On 01/01/13 12:14, Micha wrote:
Maybe you could add this information to the docs?
— Reply to this email directly or view it on GitHub https://github.com/ralsina/nikola/issues/205#issuecomment-11790025.
Well, the command used in the docs does this ;-)
But yes, I will be more explicit.
You mean cp -RL path/to/orphan ? That didn't work for me, because "messages" is not a symlink to "../default/messages" instead it is an ordinary text file. Here the output of ls -lah:
20B 1 Jan 14:02 ../lib/python2.7/site-packages/nikola/data/themes/orphan/messages
On 01/01/13 13:20, Micha wrote:
You mean /cp -RL path/to/orphan/ ? That didn't work for me, because "messages" is not a symlink to "../default/messages" instead it is an ordinary text file. Here the output of /ls -lah/:
20B 1 Jan 14:02 ../lib/python2.7/site-packages/nikola/data/themes/orphan/messages
That's weird, it is a symbolic link in the repo:
https://github.com/ralsina/nikola/blob/master/nikola/data/themes/orphan/messages
Hm.. I've installed nikola from the zip archive with pip into a virtualenv. Maybe this constellation causes the issue. When cloning the repo with git clone the symbolic links are left intact.
Yes, looks like I am going to have to release on tar.gz from now on :-/
IMHO, you don't need to switch to a tar.gz release. This https://github.com/ralsina/nikola/pull/218 should resolve this issue.
I was trying to build a theme from scratch following the docs. But after copying the orphan theme to the themes folder of the site and calling nikola build it breaks with:
When copying over the "messages" folder from the "default" theme it build without problems.