Skip to content

Instantly share code, notes, and snippets.

@treyhunner
Created January 2, 2012 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treyhunner/1551696 to your computer and use it in GitHub Desktop.
Save treyhunner/1551696 to your computer and use it in GitHub Desktop.
Error caused by running `pycco *.py -a -p` on main pycco directory with code from pull request 45.
bender:pycco(laginha|…)% pycco *.py -a -p
pycco = setup.py -> docs/docs/./setup.html
pycco = test.py -> docs/docs/./test.html
Traceback (most recent call last):
File "/usr/local/bin/pycco", line 9, in <module>
load_entry_point('Pycco==0.2.0', 'console_scripts', 'pycco')()
File "/usr/local/lib/python2.6/dist-packages/Pycco-0.2.0-py2.6.egg/pycco/main.py", line 508, in main
process(SOURCES, outdir=opts.outdir, preserve_paths=opts.paths)
File "/usr/local/lib/python2.6/dist-packages/Pycco-0.2.0-py2.6.egg/pycco/main.py", line 418, in process
f.write(generate_documentation(s, preserve_paths=preserve_paths, outdir=outdir))
File "/usr/local/lib/python2.6/dist-packages/Pycco-0.2.0-py2.6.egg/pycco/main.py", line 55, in generate_documentation
return generate_html(source, sections, preserve_paths=preserve_paths, outdir=outdir)
File "/usr/local/lib/python2.6/dist-packages/Pycco-0.2.0-py2.6.egg/pycco/main.py", line 258, in generate_html
"destination" : destination
File "/usr/local/lib/python2.6/dist-packages/Pycco-0.2.0-py2.6.egg/pycco/main.py", line 378, in <lambda>
return lambda context: pystache.render(source, context)
File "/usr/local/lib/python2.6/dist-packages/pystache-0.3.1-py2.6.egg/pystache/__init__.py", line 7, in render
return Template(template, context).render()
File "/usr/local/lib/python2.6/dist-packages/pystache-0.3.1-py2.6.egg/pystache/template.py", line 42, in render
template = self.render_sections(template, context)
File "/usr/local/lib/python2.6/dist-packages/pystache-0.3.1-py2.6.egg/pystache/template.py", line 78, in render_sections
insides.append(self.render(inner, item))
File "/usr/local/lib/python2.6/dist-packages/pystache-0.3.1-py2.6.egg/pystache/template.py", line 43, in render
result = self.render_tags(template, context)
File "/usr/local/lib/python2.6/dist-packages/pystache-0.3.1-py2.6.egg/pystache/template.py", line 96, in render_tags
func = modifiers[tag_type]
KeyError: u'#'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment