[Buildbot-devel] FileUpload: __init__() takes at least 3 non-keyword arguments (2 given)

selvamuthukumar v v.selvamuthukumar at gmail.com
Sat Jul 31 10:35:45 UTC 2010


I'm trying to upload a file from slave to master. But when I try add
this step in master.cfg I get following error. Full configuration file
is pasted below. I'm using buildbot-0.8.1.
Please help me to resolve this issue.

P.S: I'm not a python developer


buildbot checkconfig master.cfg
Traceback (most recent call last):
  File "/home/rmanager/lib/python2.5/site-packages/buildbot-0.8.1-py2.5.egg/buildbot/scripts/runner.py",
line 995, in doCheckConfig
    ConfigLoader(configFileName=configFileName)
  File "/home/rmanager/lib/python2.5/site-packages/buildbot-0.8.1-py2.5.egg/buildbot/scripts/checkconfig.py",
line 31, in __init__
    self.loadConfig(configFile, check_synchronously_only=True)
  File "/home/rmanager/lib/python2.5/site-packages/buildbot-0.8.1-py2.5.egg/buildbot/master.py",
line 572, in loadConfig
    exec f in localDict
  File "/home/rmanager/buildbot/ethernet_wifi/master.cfg", line 120, in <module>
    factory_local.addStep(FileUpload(slavesrc="images.zip",
masterdst="images.zip"))
TypeError: __init__() takes at least 3 non-keyword arguments (2 given)






$ cat master_test.cfg
# -*- python -*-
# ex: set syntax=python:

c = BuildmasterConfig = {}

from buildbot.buildslave import BuildSlave
test_slave = BuildSlave("test_slave", "password")
c['slaves'] = [test_slave]
c['slavePortnum'] = 9979
c['schedulers'] = []


from buildbot.process import factory
from buildbot.steps.python_twisted import Trial
from buildbot.steps.shell import ShellCommand
from buildbot.steps.transfer import FileUpload


factory_local = factory.BuildFactory()
factory_local.addStep(FileUpload(slavesrc="images.zip", masterdst="images.zip"))

b1 = {'name': "test-builder",
      'slavename': "test_slave",
#      'builddir': "ethout",
      'factory': factory_local,
      }

c['builders'] = [b1]


c['status'] = []

from buildbot.status import html
c['status'].append(html.WebStatus(http_port=8010, allowForce=True))


c['buildbotURL'] = "http://localhost:8010/"
$
$
$
$ buildbot checkconfig master_test.cfg
Traceback (most recent call last):
  File "/home/rmanager/lib/python2.5/site-packages/buildbot-0.8.1-py2.5.egg/buildbot/scripts/runner.py",
line 995, in doCheckConfig
    ConfigLoader(configFileName=configFileName)
  File "/home/rmanager/lib/python2.5/site-packages/buildbot-0.8.1-py2.5.egg/buildbot/scripts/checkconfig.py",
line 31, in __init__
    self.loadConfig(configFile, check_synchronously_only=True)
  File "/home/rmanager/lib/python2.5/site-packages/buildbot-0.8.1-py2.5.egg/buildbot/master.py",
line 572, in loadConfig
    exec f in localDict
  File "/home/rmanager/buildbot/ethernet_wifi/master_test.cfg", line
19, in <module>
    factory_local.addStep(FileUpload(slavesrc="images.zip",
masterdst="images.zip"))
TypeError: __init__() takes at least 3 non-keyword arguments (2 given)
$




More information about the devel mailing list