I'm running running into a TemplateError("Cannot load the markdown library") when I try to generate a site.
I'm new to Hyde, so it might be how I've set it up. I'm running Windows 7 and I'm using Python 2.6. I've put both C:\Python26\ and C:\Python26\Scripts into my path and ran the following:
Here are the respective versions I got from running these commands.
hyde 0.8.3
PyYaml 3.10
django 1.3.1
markdown 2.0.3
I created a new site from the default template and tried to generate it via the following commands:
> cd C:\projects
> mkdir newsite
> cd newsite
> hyde create
> hyde gen
The hyde create command gave me the following tree:
content
blog
[...]
media
[...]
portfolio
[...]
about.html
apple-touch-icon.png
favicon.ico
index.html
layout
[...]
.hyde_deps
info.yaml
README.markdown
site.yaml
The hyde gen failed with the following output:
23:00:17 hyde.engine Reading site configuration from [C:\projects\newsite\site.yaml]
23:00:17 hyde.engine Reading site contents
23:00:17 hyde.engine Generating site at [c:\projects\newsite]
23:00:17 hyde.engine Configuring the template environment
23:00:17 hyde.engine Generating site to [C:\projects\newsite\deploy]
23:00:17 hyde.engine.Jinja2 Cannot load the markdown library.
23:00:17 hyde.engine Error occurred when processing template: [C:\projects\newsite\content\index.html]
Traceback (most recent call last):
File "C:\Python26\Scripts\hyde-script.py", line 8, in <module>
load_entry_point('hyde==0.8.3', 'console_scripts', 'hyde')()
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\main.py", line 10, in main
Engine().run()
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\engine.py", line 38, in run
super(Engine, self).run(args)
File "build\bdist.win32\egg\commando.py", line 198, in run
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\engine.py", line 115, in gen
gen.generate_all(incremental=incremental)
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\generator.py", line 204, in generate_all
self.__generate_node__(self.site.content, incremental)
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\generator.py", line 302, in __generate_node__
self.__generate_resource__(resource, incremental)
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\generator.py", line 322, in __generate_resource__
context)
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\ext\templates\jinja.py", line 692, in render_resource
out = template.render(context)
File "C:\Python26\lib\site-packages\jinja2-2.6-py2.6.egg\jinja2\environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "C:\projects\newsite\content\index.html", line 1, in top-level template code
---
File "C:\projects\newsite\layout\base.j2", line 53, in top-level template code
{% block content %}
File "C:\projects\newsite\layout\base.j2", line 55, in block "content"
{% block container %}
File "C:\projects\newsite\layout\base.j2", line 68, in block "container"
{% block main %}
File "C:\projects\newsite\content\index.html", line 8, in block "main"
{% from "macros.j2" import render_excerpt with context %}
File "C:\projects\newsite\layout\macros.j2", line 2, in template
{% refer to res.url as post %}
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\ext\templates\jinja.py", line 456, in _assign_reference
out = caller()
File "C:\projects\newsite\layout\macros.j2", line 2, in template
{% refer to res.url as post %}
File "C:\projects\newsite\content\blog\happy-post.html", line 1, in top-level template code
---
File "C:\projects\newsite\layout\blog.j2", line 1, in top-level template code
{% extends "base.j2" %}
File "C:\projects\newsite\layout\base.j2", line 53, in top-level template code
{% block content %}
File "C:\projects\newsite\layout\base.j2", line 55, in block "content"
{% block container %}
File "C:\projects\newsite\layout\base.j2", line 68, in block "container"
{% block main %}
File "C:\projects\newsite\layout\blog.j2", line 58, in block "main"
{% filter markdown|typogrify -%}
File "C:\Python26\lib\site-packages\hyde-0.8.3-py2.6.egg\hyde\ext\templates\jinja.py", line 101, in markdown
raise TemplateError("Cannot load the markdown library")
jinja2.exceptions.TemplateError: Cannot load the markdown library
I thought I was missing the settings.py file so I grabbed one from the Ringce.com repository. However, this didn't fix the issue. I even modified the INSTALLE_APPS section to be the following:
I'm running running into a
TemplateError("Cannot load the markdown library")
when I try to generate a site.I'm new to Hyde, so it might be how I've set it up. I'm running Windows 7 and I'm using Python 2.6. I've put both
C:\Python26\
andC:\Python26\Scripts
into my path and ran the following:Here are the respective versions I got from running these commands.
I created a new site from the default template and tried to generate it via the following commands:
The
hyde create
command gave me the following tree:The
hyde gen
failed with the following output:I thought I was missing the
settings.py
file so I grabbed one from the Ringce.com repository. However, this didn't fix the issue. I even modified theINSTALLE_APPS
section to be the following:...but this did not work either.