Installing buildbot from CVS, using Python 2.4 and Twisted 2.5 (for Python 2.4)
Running
buildbot start .
Received this error:
T
raceback (most recent call last):
File "c:\Python24\Scripts\buildbot", line 4, in ?
runner.run()
File "C:\Python24\Lib\site-packages\buildbot\scripts\runner.py", line 725, in run
start(so)
File "C:\Python24\Lib\site-packages\buildbot\scripts\startup.py", line 73, in start
return launch(config)
File "C:\Python24\Lib\site-packages\buildbot\scripts\startup.py", line 110, in launch
from twisted.scripts._twistw import run
ImportError: cannot import name run
Seems twisted 2.5 now does the platform detection itself, so we can simplify startup.py by taking out the platformType check on line 108.
Just import the 'run' function directly, as per the diff below:
Index: buildbot/scripts/startup.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scripts/startup.py,v
retrieving revision 1.4
diff -r1.4 startup.py
109,112c109
< if platformType == "win32":
< from twisted.scripts._twistw import run
< else:
< from twisted.scripts.twistd import run
---
> from twisted.scripts.twistd import run