buddycloud / buddycloud.com

buddycloud static site generation and gh_pages
http://buddycloud.com
Other
18 stars 18 forks source link

Build seems to be broken #32

Closed imaginator closed 10 years ago

imaginator commented 10 years ago

I'm not sure what changed, but it seems that the build isn't happy. There was a pull request from Lloyd but I don't see how that could have changed things.

➜  buddycloud.com git:(master) ✗ make devserver
/Users/simon/Documents/src/buddycloud.com/develop_server.sh restart
Killing pelican.server
Stale PID, deleting
Starting up Pelican and pelican.server
DEBUG: Adding current directory to system path
DEBUG: Temporarily adding PLUGIN_PATH to system path
DEBUG: Restoring system path
DEBUG: Missing dependencies for asc
  --- AutoReload Mode: Monitoring `content`, `theme` and `settings` for changes. ---
DEBUG: Temporarily adding PLUGIN_PATH to system path
DEBUG: Restoring system path

-> Modified: content, theme, settings. re-generating...
DEBUG: template list: [u'!simple/archives.html', u'!simple/article.html', u'!simple/author.html', u'!simple/authors.html', u'!simple/base.html', u'!simple/categories.html', u'!simple/category.html', u'!simple/gosquared.html', u'!simple/index.html', u'!simple/page.html', u'!simple/pagination.html', u'!simple/tag.html', u'!simple/tags.html', u'!simple/translations.html', u'.DS_Store', u'archives.html', u'article.html', u'author.html', u'authors.html', u'base.html', u'categories.html', u'category.html', u'gosquared.html', u'includes/addthis.html', u'includes/article_info.html', u'includes/comment_count.html', u'includes/comments.html', u'includes/disqus_script.html', u'includes/ga.html', u'includes/github.html', u'includes/sidebar.html', u'includes/taglist.html', u'includes/translations.html', u'index.html', u'page.html', u'pagination.html', u'style-guide.html', u'tag.html', u'tags.html', u'translations.html']
DEBUG: template list: [u'!simple/archives.html', u'!simple/article.html', u'!simple/author.html', u'!simple/authors.html', u'!simple/base.html', u'!simple/categories.html', u'!simple/category.html', u'!simple/gosquared.html', u'!simple/index.html', u'!simple/page.html', u'!simple/pagination.html', u'!simple/tag.html', u'!simple/tags.html', u'!simple/translations.html', u'.DS_Store', u'archives.html', u'article.html', u'author.html', u'authors.html', u'base.html', u'categories.html', u'category.html', u'gosquared.html', u'includes/addthis.html', u'includes/article_info.html', u'includes/comment_count.html', u'includes/comments.html', u'includes/disqus_script.html', u'includes/ga.html', u'includes/github.html', u'includes/sidebar.html', u'includes/taglist.html', u'includes/translations.html', u'index.html', u'page.html', u'pagination.html', u'style-guide.html', u'tag.html', u'tags.html', u'translations.html']
DEBUG: template list: [u'!simple/archives.html', u'!simple/article.html', u'!simple/author.html', u'!simple/authors.html', u'!simple/base.html', u'!simple/categories.html', u'!simple/category.html', u'!simple/gosquared.html', u'!simple/index.html', u'!simple/page.html', u'!simple/pagination.html', u'!simple/tag.html', u'!simple/tags.html', u'!simple/translations.html', u'.DS_Store', u'archives.html', u'article.html', u'author.html', u'authors.html', u'base.html', u'categories.html', u'category.html', u'gosquared.html', u'includes/addthis.html', u'includes/article_info.html', u'includes/comment_count.html', u'includes/comments.html', u'includes/disqus_script.html', u'includes/ga.html', u'includes/github.html', u'includes/sidebar.html', u'includes/taglist.html', u'includes/translations.html', u'index.html', u'page.html', u'pagination.html', u'style-guide.html', u'tag.html', u'tags.html', u'translations.html']
DEBUG: read file CNAME -> Static
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c3210; u'static_generator_preread'>.send(<pelican.generators.StaticGenerator object at 0x1109d88d0>)
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c3250; u'static_generator_context'>.send(<pelican.generators.StaticGenerator object at 0x1109d88d0>, <metadata>)
DEBUG: read file pages/all-features.html -> Page
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c3190; u'page_generator_preread'>.send(<pelican.generators.PagesGenerator object at 0x1109e0790>)
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c31d0; u'page_generator_context'>.send(<pelican.generators.PagesGenerator object at 0x1109e0790>, <metadata>)
DEBUG: read file pages/api.md -> Page
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c3190; u'page_generator_preread'>.send(<pelican.generators.PagesGenerator object at 0x1109e0790>)
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c31d0; u'page_generator_context'>.send(<pelican.generators.PagesGenerator object at 0x1109e0790>, <metadata>)
DEBUG: read file pages/software.html -> Page
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c3190; u'page_generator_preread'>.send(<pelican.generators.PagesGenerator object at 0x1109e0790>)
DEBUG: signal <blinker.base.NamedSignal object at 0x1103c31d0; u'page_generator_context'>.send(<pelican.generators.PagesGenerator object at 0x1109e0790>, <metadata>)
-> copying /Users/simon/Documents/src/buddycloud.com/content/CNAME to CNAME
-> writing /Users/simon/Documents/src/buddycloud.com/output/feeds/all.atom.xml
-> writing /Users/simon/Documents/src/buddycloud.com/output/index.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/style-guide.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/api.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/all-features.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/software.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/contact.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/features.html
-> writing /Users/simon/Documents/src/buddycloud.com/output/get-started.html
CRITICAL: (ExpatError('not well-formed (invalid token): line 41, column 12',),)
CRITICAL: not well-formed (invalid token): line 41, column 12
Traceback (most recent call last):
  File "/usr/local/bin/pelican", line 9, in <module>
    load_entry_point('pelican==3.3', 'console_scripts', 'pelican')()
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pelican/__init__.py", line 350, in main
    pelican.run()
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pelican/__init__.py", line 181, in run
    p.generate_output(writer)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pelican/generators.py", line 535, in generate_output
    override_output=hasattr(page, 'override_save_as'))
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pelican/writers.py", line 211, in write_file
    override_output)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pelican/writers.py", line 148, in _write_file
    output = template.render(localcontext)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/simon/Documents/src/buddycloud.com/buddycloud-theme/templates/page.html", line 4, in top-level template code
    {% set toc_info = page.content|extract_toc_info %}
  File "/Users/simon/Documents/src/buddycloud.com/jinjaext/table_of_contents.py", line 56, in extractTableOfContentsInfo
    root = ElementTree.fromstring("<root>"+content+"</root>")
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 41, column 12
imaginator commented 10 years ago

Seems to be working. Ignore my bad HTML...

imaginator commented 10 years ago

Actually - even with my hacking and checking HTML, still can't get it to work

guilhermesgb commented 10 years ago

I've found the problem with the page and fixed it.

Now these kinds of things won't break the build anymore. Also now you will be given info about the page that's having parsing issues.

These build problems are always happening because of silly HTML problems - usually a tag missing. The problem is our jinja extension for generating Table of Contents is using a XML parser to parse the content and these kinds of parsers are very strict about what should be considered an well-formed XML document. I'm going to search for HTML parsers (which should be more flexible towards these kinds of things) so that I can replace my XML parser.

imaginator commented 10 years ago

Thanks for fixing this Guilherme!

On 18 March 2014 16:07, Guilherme Santos notifications@github.com wrote:

Closed #32 https://github.com/buddycloud/buddycloud.com/issues/32.

— Reply to this email directly or view it on GitHubhttps://github.com/buddycloud/buddycloud.com/issues/32 .

Simon Tennant | buddycloud.com | +49 17 8545 0880 | office hours: goo.gl/tQgxP