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 doesn't compile blog #223

Closed mdosch closed 9 years ago

mdosch commented 10 years ago

Today I did the (late) upgrade to 0.7.9 (via easy_install on debian testing) and acrylamid doesn't compile anymore:

acr compile
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/dist-packages/acrylamid-0.7.9-py2.7.egg/acrylamid/__init__.py", line 179, in Acryl
    commands.compile(conf, env)
  File "/usr/local/lib/python2.7/dist-packages/acrylamid-0.7.9-py2.7.egg/acrylamid/commands.py", line 219, in compile
    for buf, path in v.generate(conf, env, data):
  File "/usr/local/lib/python2.7/dist-packages/acrylamid-0.7.9-py2.7.egg/acrylamid/views/sitemap.py", line 90, in generate
    sm.add(rchop(url, 'index.html'), getmtime(fname), changefreq, priority)
  File "/usr/local/lib/python2.7/dist-packages/acrylamid-0.7.9-py2.7.egg/acrylamid/views/sitemap.py", line 30, in add
    self.write(u'    <loc>%s</loc>\n' % escape(url))
NameError: global name 'escape' is not defined
mdosch commented 10 years ago

Oh, I saw there is alread 0.7.10. With this version it compiles the blog, but ping isn't working:

error  Fault: <Fault 0: ''>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/acrylamid-0.7.10-py2.7.egg/acrylamid/lib/async.py", line 43, in run
    func(*args, **kargs)
  File "/usr/local/lib/python2.7/dist-packages/acrylamid-0.7.10-py2.7.egg/acrylamid/tasks/ping.py", line 139, in <lambda>
    ping = lambda src, dest: pingback(helpers.joinurl(conf['www_root'], src), dest, options.dryrun)
  File "/usr/local/lib/python2.7/dist-packages/acrylamid-0.7.10-py2.7.egg/acrylamid/tasks/ping.py", line 67, in pingback
    server.pingback.ping(src, dest)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 0: ''>
posativ commented 10 years ago

Fixed, I'll prepare a new release soon (need a few more bugfixes). The XML-RPC isn't talking Pingback (tm (R)) still, so it will now issue a warning.