<div dir="ltr"><div dir="ltr" class="gmail_msg">Hi Katia,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I can see from your traceback that you are running from the system python.</div><div class="gmail_msg">This is usually not a good idea as there can be conflict between other installations of python software including buildbot eight.</div><div class="gmail_msg">You should rather install from a virtualenv:</div><div class="gmail_msg"><a href="http://trac.buildbot.net/wiki/RunningBuildbotWithVirtualEnv">http://trac.buildbot.net/wiki/RunningBuildbotWithVirtualEnv</a><br class="gmail_msg"></div><div class="gmail_msg"><br></div><div class="gmail_msg">From your traceback it looks that there are indeed some conflicts python packaging conflicts.</div><div class="gmail_msg">I realize that the plugin db is not providing too much meaningful indication. I will fix that for next release.</div><div class="gmail_msg"><br></div></div>Regards<div>Pierre<br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">Le mar. 10 janv. 2017 à 22:29, Katia De Lu <<a href="mailto:katiadelu@gmail.com" class="gmail_msg" target="_blank">katiadelu@gmail.com</a>> a écrit :<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">


        
        
        
        


<p class="gmail_msg">Hi all,</p>
<p class="gmail_msg">I’m having trouble getting GitLabStatusPush working, and I’m
hoping someone can help.</p>
<p class="gmail_msg">I’m using Buildbot 0.9.2.</p>
<p class="gmail_msg">I’ve added the following lines to my master.cfg, copy-pasted
from
<a href="http://docs.buildbot.net/current/manual/cfg-reporters.html#gitlabstatuspush" class="gmail_msg" target="_blank">http://docs.buildbot.net/current/manual/cfg-reporters.html#gitlabstatuspush</a>
(I realise I need to change the arguments to my token, base URL, etc.
- that’s not the problem):</p>
<pre class="m_6761565625537579678m_1303701595183196287gmail-western gmail_msg"><font color="#000000" class="gmail_msg"><span style="font-weight:normal" class="gmail_msg"><span style="background:rgb(228,228,255) none repeat scroll 0% 0%" class="gmail_msg">c</span></span></font><font color="#000000" class="gmail_msg"><span style="font-weight:normal" class="gmail_msg">['services'] = []</span></font>
from buildbot.plugins import reporters
gl = reporters.GitLabStatusPush('private-token', context='continuous-integration/buildbot', baseUrl='<a href="https://git.yourcompany.com" class="gmail_msg" target="_blank">https://git.yourcompany.com</a>')
c['services'].append(gl)</pre><p class="gmail_msg">
But it fails to pass ‘checkconfig’ with the following errors:</p>
<pre class="m_6761565625537579678m_1303701595183196287gmail-western gmail_msg">$ buildbot checkconfig master.cfg
error while parsing config file:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py", line 58, in checkconfig
    return _loadConfig(basedir=basedir, configFile=configFile, quiet=quiet)
  File "/usr/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py", line 28, in _loadConfig
    config.FileLoader(basedir, configFile).loadConfig()
  File "/usr/lib/python2.7/site-packages/buildbot/config.py", line 162, in loadConfig
    self.basedir, self.configFileName)
--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/buildbot/config.py", line 119, in loadConfigDict
    exec(f, localDict)
  File "/home/kdelu/Git/buildbot-0.9-research/master.cfg", line 207, in <module>
    gl = reporters.GitLabStatusPush('private-token', context='continuous-integration/buildbot', baseUrl='<a href="https://git.yourcompany.com" class="gmail_msg" target="_blank">https://git.yourcompany.com</a>')
  File "/usr/lib/python2.7/site-packages/buildbot/plugins/db.py", line 315, in __getattr__
    raise AttributeError(str(err))
exceptions.AttributeError: Unable to load buildbot.reporters:GitLabStatusPush: No module named py

Configuration Errors:
  error while parsing config file: Unable to load buildbot.reporters:GitLabStatusPush: No module named py (traceback in logfile)
</pre><p class="gmail_msg">
As you can see, I am importing reporters (in fact, the import line is
redundant, as I import all the plugins at the top of my master.cfg
file; I only added the extra import out of desperation).</p>
<p class="gmail_msg">Why can’t it find the module?</p>
<p class="gmail_msg">I’ve found this ticket <a href="http://trac.buildbot.net/ticket/3286" class="gmail_msg" target="_blank">http://trac.buildbot.net/ticket/3286</a>
that seems to suggest the GitLabStatusPush plugin hasn’t been
ported across, but it looks like the feature was restored in release
0.9.0b9
(<a href="http://docs.buildbot.net/current/relnotes/0.9.0b9.html#features" class="gmail_msg" target="_blank">http://docs.buildbot.net/current/relnotes/0.9.0b9.html#features</a>),
and the release notes for 0.9.2
(<a href="http://docs.buildbot.net/current/relnotes/index.html#bug-fixes" class="gmail_msg" target="_blank">http://docs.buildbot.net/current/relnotes/index.html#bug-fixes</a>
mention a fix to GitLabStatusPush), which would suggest it should be
working.</p>
<p class="gmail_msg">What am I missing?</p>
<p class="gmail_msg">Thanks,</p>
<p class="gmail_msg">Kat</p></div>
_______________________________________________<br class="gmail_msg">
users mailing list<br class="gmail_msg">
<a href="mailto:users@buildbot.net" class="gmail_msg" target="_blank">users@buildbot.net</a><br class="gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div></div></div>