[Buildbot-devel] "patch" command not being found on Windows

Richard Offer richard at whitequeen.com
Sun May 6 19:03:20 UTC 2012

I'm trying to get the Try scheduler to work , but my Windows build slave is having a problem finding the patch executable

remoteFailed: [Failure instance: Traceback from remote host -- Traceback (most recent call last):
  File "c:\BOT\win32\bin\lib\site-packages\buildbot_slave-0.8.6p1-py2.7.egg\buildslave\runprocess.py", line 201, in processEnded
    self.command.finished(sig, rc)
  File "c:\BOT\win32\bin\lib\site-packages\buildbot_slave-0.8.6p1-py2.7.egg\buildslave\runprocess.py", line 687, in finished
  File "c:\BOT\win32\bin\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\defer.py", line 368, in callback
  File "c:\BOT\win32\bin\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\defer.py", line 464, in _startRunCallbacks
--- <exception caught here> ---
  File "c:\BOT\win32\bin\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "c:\BOT\win32\bin\lib\site-packages\buildbot_slave-0.8.6p1-py2.7.egg\buildslave\commands\base.py", line 567, in doPatch
  File "c:\BOT\win32\bin\lib\site-packages\buildbot_slave-0.8.6p1-py2.7.egg\buildslave\commands\utils.py", line 25, in getCommand
    raise RuntimeError("Couldn't find executable for '%s'" % name)
exceptions.RuntimeError: Couldn't find executable for 'patch'
exceptions.RuntimeError: Couldn't find executable for 'patch'

I've installed it (GNUwin32 version of patch) into C:\Windows\System32\ (as patch.exe) to avoid all issues with PATH. It will quite happily run from the cmd prompt that I use to manually start the build slave.

(I am running everything as the Administrator)

Is buildbot or twisted caching the previous search results ? (I installed the patch command after everything else was up and running)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20120506/4b565715/attachment.html>

More information about the devel mailing list