posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

0.7.9 bug - `acrylamid compile` error #218

Closed BigBlueHat closed 10 years ago

BigBlueHat commented 10 years ago
Traceback (most recent call last):
  File "/usr/local/bin/acrylamid", line 9, in <module>
    load_entry_point('acrylamid==0.7.9', 'console_scripts', 'acrylamid')()
  File "/usr/local/lib/python2.7/site-packages/acrylamid/__init__.py", line 179, in Acryl
    commands.compile(conf, env)
  File "/usr/local/lib/python2.7/site-packages/acrylamid/commands.py", line 219, in compile
    for buf, path in v.generate(conf, env, data):
  File "/usr/local/lib/python2.7/site-packages/acrylamid/views/sitemap.py", line 90, in generate
    sm.add(rchop(url, 'index.html'), getmtime(fname), changefreq, priority)
  File "/usr/local/lib/python2.7/site-packages/acrylamid/views/sitemap.py", line 30, in add
    self.write(u'    <loc>%s</loc>\n' % escape(url))
NameError: global name 'escape' is not defined
BigBlueHat commented 10 years ago

I'm actually not a bot. :wink: I've downgraded to 0.7.8 and acrylamid compile (and autocompile) work just fine.

posativ commented 10 years ago

I forgot an import statement. I've released a new version on PyPi which fixes this issue. Thanks for reporting.