Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spaces in tag names breaks build with difficult error message #1343

Closed
mikemccracken opened this issue Jun 26, 2014 · 2 comments
Closed

spaces in tag names breaks build with difficult error message #1343

mikemccracken opened this issue Jun 26, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@mikemccracken
Copy link

I am importing an octopress blog (which was imported from wordpress, imported from etc etc), and the tags are not uniform.

I had two posts with tags "open source" and "open-source", and attempting to build gives this message:
ERROR: Task generation 'render_site' has duplicated definition of 'render_tags:output/categories/open-source.xml'

It really took some guessing to figure out that the tags were clashing somehow.

@Kwpolska Kwpolska added the bug label Jun 27, 2014
@Kwpolska Kwpolska added this to the v7.0.2 milestone Jun 27, 2014
@Kwpolska
Copy link
Member

This should have been fixed in a more recent version than the v6.2.1 you were using — as stated on Twitter… But it wasn’t:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/doit/doit_cmd.py", line 103, in run
    return self.sub_cmds[command].parse_execute(args)
  File "/usr/lib/python2.7/site-packages/doit/cmd_base.py", line 60, in parse_execute
    return self.execute(params, args)
  File "/usr/lib/python2.7/site-packages/doit/cmd_base.py", line 226, in execute
    args)
  File "/usr/lib/python2.7/site-packages/nikola/__main__.py", line 220, in load_tasks
    self.nikola.gen_tasks('render_site', "Task", 'Group of tasks to render the site.'))
  File "/usr/lib/python2.7/site-packages/doit/loader.py", line 250, in generate_tasks
    for task_dict, x_doc in flat_generator(gen_result, gen_doc):
  File "/usr/lib/python2.7/site-packages/doit/loader.py", line 22, in flat_generator
    for item in gen:
  File "/usr/lib/python2.7/site-packages/nikola/nikola.py", line 1104, in gen_tasks
    for task in flatten(pluginInfo.plugin_object.gen_tasks()):
  File "/usr/lib/python2.7/site-packages/nikola/nikola.py", line 1098, in flatten
    for t in task:
  File "/usr/lib/python2.7/site-packages/nikola/plugins/task/posts.py", line 49, in gen_tasks
    self.site.scan_posts()
  File "/usr/lib/python2.7/site-packages/nikola/nikola.py", line 1205, in scan_posts
    other_tag = [k for k in self.posts_per_tag.keys() if k.lower() == tag.lower()][0]
IndexError: list index out of range

@mikemccracken
Copy link
Author

Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants