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

Timothy Fitz tfitz at imvu.com
Mon Aug 2 17:41:38 UTC 2010


FileUpload takes "masterdest" not "masterdst", it's just a simple typo.

Timothy

On Sat, Jul 31, 2010 at 3:35 AM, selvamuthukumar v <
v.selvamuthukumar at gmail.com> wrote:

> 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)
> $
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100802/76c03ade/attachment.html>


More information about the devel mailing list