Trouble starting private llvm buildbot master.

Hi,

I had cloned zorg from https://llvm.org/svn/llvm-project/zorg/trunk,
then I try to start the buildbot master located in buildbot/osuosl/master (the absolute path is /nfs/home/hongbin.zheng/buildbot/zorg/buildbot/osuosl/master) by simply typing “buildbot start”
And I get something like this from my twistd.log:

— —
File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 545, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File “/usr/lib/python2.7/dist-packages/buildbot/master.py”, line 226, in do_load
exec f in localDict
File “/nfs/home/hongbin.zheng/buildbot/zorg/buildbot/osuosl/master/master.cfg”, line 17, in
import config
File “/nfs/home/hongbin.zheng/buildbot/zorg/buildbot/osuosl/master/config/init.py”, line 1, in
import builders
File “/nfs/home/hongbin.zheng/buildbot/zorg/buildbot/osuosl/master/config/builders.py”, line 1, in
from zorg.buildbot.builders import ClangBuilder
exceptions.ImportError: No module named zorg.buildbot.builders

My system information listed as follow:
Buildbot version: 0.8.5
Twisted version: 11.1.0
Python 2.7.3

Any hint about this problem is appreciated.

thanks a lot.
ether

Hongbin,

Did you tweak sys.path?

# Extend paths to allow loading zorg and config modules.
import os, sys
path = os.path.join(os.environ.get('HOME'), 'zorg', 'buildbot',
'osuosl', 'master')
if path not in sys.path:
  sys.path.append(path)
path = os.path.join(os.environ.get('HOME'), 'zorg')
if path not in sys.path:
  sys.path.append(path)

'zorg' is expected to be located on $(HOME)/zorg.

thanks a lot :slight_smile: