[Buildbot-devel] exceptions.UnboundLocalError: local variable 'revision' referenced before assignment

Marijn Vriens marijn at metronomo.cl
Sun Jul 26 12:37:04 UTC 2009


Hi all,

I get the traceback below when clicking on a specific build URL. An example
of the traceback can be seen here:
http://protocultura.cl/buildbot/builders/quickbuild/builds/3

I didn't mess about with the html renderer, so I fear it's an out of the box
failure. Any idea what might be going on?

Buildbot master is at 0.7.11p1
$ ~/pyenv/bin/python --version
Python 2.5.2
$ uname -a
Linux gans 2.6.24-19-xen #1 SMP Sat Jul 12 00:15:59 UTC 2008 x86_64
GNU/Linux

Regards,
      Marijn

2009-07-26 12:26:45+0000 [HTTPChannel,4,127.0.0.1] Unhandled Error
        Traceback (most recent call last):
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/protocols/basic.py",
line 231, in dataReceived
            why = self.lineReceived(line)
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/web/http.py",
line 1325, in lineReceived
            self.allContentReceived()
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/web/http.py",
line 1391, in allContentReceived
            req.requestReceived(command, path, version)
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/web/http.py",
line 714, in requestReceived
            self.process()
        --- <exception caught here> ---
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/web/server.py",
line 150, in process            self.render(resrc)
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/web/server.py",
line 157, in render
            body = resrc.render(self)
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/buildbot-0.7.11p1-py2.5.egg/buildbot/status/web/base.py",
line 263, in render
            data = self.content(request)
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/buildbot-0.7.11p1-py2.5.egg/buildbot/status/web/base.py",
line 346, in content
            data += self.body(request)
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/buildbot-0.7.11p1-py2.5.egg/buildbot/status/web/build.py",
line 178, in body
            data += "<li>" + c.asHTML() + "</li>\n"
          File
"/home/buildmaster/pyenv/lib/python2.5/site-packages/buildbot-0.7.11p1-py2.5.egg/buildbot/changes/changes.py",
line 108, in asHTML
            'revision': revision,
        exceptions.UnboundLocalError: local variable 'revision' referenced
before assignment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20090726/1f654a87/attachment.html>


More information about the devel mailing list