[Buildbot-devel] Lock error

Andrés Estévez Costas aecostas at gmail.com
Tue Oct 20 11:47:13 UTC 2009


Hi all, I'm trying to set up locks in buildbot 7.11.p3, but I got this
error:

    Traceback (most recent call last):
      File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py",
line 511, in loadTheConfigFile
        self.loadConfig(f)
      File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py",
line 793, in loadConfig
        d.addCallback(lambda res: self.loadConfig_Builders(builders))
      File
"/usr/lib/python2.4/site-packages/Twisted-8.1.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
line 195, in addCallback
        callbackKeywords=kw)
      File
"/usr/lib/python2.4/site-packages/Twisted-8.1.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
line 186, in addCallbacks
        self._runCallbacks()
    --- <exception caught here> ---
      File
"/usr/lib/python2.4/site-packages/Twisted-8.1.0-py2.4-linux-i686.egg/twisted/internet/defer.py",
line 328, in _runCallbacks
        self.result = callback(self.result, *args, **kw)
      File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py",
line 793, in <lambda>
        d.addCallback(lambda res: self.loadConfig_Builders(builders))
      File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/master.py",
line 912, in loadConfig_Builders
        elif old.compareToSetup(data):
      File
"/usr/lib/python2.4/site-packages/buildbot-0.7.11p3-py2.4.egg/buildbot/process/builder.py",
line 429, in compareToSetup
        newlocks = [(lock.__class__, lock.name)
    exceptions.AttributeError: LockAccess instance has no attribute 'name'


master.cfg
from buildbot import locks
from buildbot.steps import source, shell
from buildbot.process import factory

build_lock = locks.SlaveLock("slave_builds", maxCount = 1)

[...]

b_test_custom = {'name': "buildbot-tst",
      'slavename': "testdroid",
      'builddir': "tstdir",
      'factory': fcustom,
      'locks': [build_lock.access('counting')]
      }

b_test_custom_nobuild = {'name': "buildbot-tst-nobuild",
      'slavename': "testdroid",
      'builddir': "tstdir-nobuild",
      'factory': fcustom_nobuild,
      'locks': [build_lock.access('counting')]
      }


This error is already reported in #367 and #619 but no solution is given.
Could you help me with this issue?

B.R.

-- 
Andrés Estévez Costas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20091020/5205e3b3/attachment.html>


More information about the devel mailing list