[users at bb.net] buildbot --version failing

Wink Saville wink at saville.com
Tue Oct 27 01:22:53 UTC 2015


Thanks for the help!

I worked through 'A quick tour
<http://docs.buildbot.net/current/tutorial/tour.html#quick-tour-label>' ran
into some minor issues:

   - In Enabling the IRC bot
   <http://docs.buildbot.net/current/tutorial/tour.html#enabling-the-irc-bot>
it
   says:

Enter these lines below the WebStatus line in master.cfg:

from buildbot.plugins import status

c['status'].append(status.WebStatus(http_port=8010, authz=authz_cfg))
c['status'].append(status.IRC(host="irc.freenode.org", nick="bbtest",
channels=["#buildbot-test"]))


But I think you only need to enter the line:

['status'].appens(status.IRC(host="irc.freenode.org" ......

not "all" of the lines.


   - In Debugging the manhole
   <http://docs.buildbot.net/current/tutorial/tour.html#debugging-with-manhole>
is
   said "After restarting the master, you can ssh into the master and get an
   interactive Python shell:" but I didn't know how to "restart" but "buildbot
   restart master" worked.
   - Also in Debugging the manhole
   <http://docs.buildbot.net/current/tutorial/tour.html#debugging-with-manhole>
    I couldn't ssh initially:

$ ssh -p1234 admin at 127.0.0.1
Unable to negotiate with 127.0.0.1: no matching key exchange method found.
Their offer: diffie-hellman-group1-sha1

What I had to do was add it as an option, then it worked

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -p1234 admin at 127.0.0.1

>From openssh <http://www.openssh.com/legacy.html> It seems the default
crypto should be updated and diffie-hellman-group1-sha1 shouldn't be the
only option.

   - Finally in Adding a 'try' scheduler
   <http://docs.buildbot.net/current/tutorial/tour.html#adding-a-try-scheduler>
it
   says to add the "c['scheduler'] = ....". But of course I added to the
   top of the file and there was no 'scheduler' value in 'c'. You might want
   to say add it at the end of the master.cfg.


Again, thanks for the help!

On Mon, Oct 26, 2015 at 4:22 PM Bill Deegan <bill at baddogconsulting.com>
wrote:

> On Mon, Oct 26, 2015 at 4:04 PM, Wink Saville <wink at saville.com> wrote:
>
>> I uninstalled the previous version and installed buildbot under
>> virtualenv for python2 and it works:
>>
>> $ . venv/bin/activate
>> (venv)[wink at wink-envy buildbot]
>> $ buildbot --version
>> Buildbot version: 0.8.12
>> Twisted version: 15.4.0
>> (venv)[wink at wink-envy buildbot]
>>
>> Although way premature at this point, running a background service like
>> continuous integration in a virtualenv seems clumsy. I suspect I'm missing
>> something.
>>
>
> Been doing it for years!
> That way you can try out new versions without disturbing the current
> version..
>
>
>>
>> I'm feeling using docker or other container system might be a better
>> approach, but I don't know anything about them either :)
>>
>
> Probably not a horrible idea.  Though virtualenv is (as far as python
> goes) somewhat equivalent to a docker container (not the files it touches,
> but as far as installing python modules in a segregated manor).
>
>
>>
>> Suggestions?
>>
>
> Just use virtualenv to run buildbot.
> Don't run it as root.
> If you like (this is what I've done) use an apache (or webserver of your
> choice) redirect from some virtualhost (buildbot.whatever.com) to
> whatever port you are running buildbot on (as a non-root user).
>
> -Bill
>
>
>
>
>
>>
>> On Mon, Oct 26, 2015 at 3:32 PM Elliot Saba <staticfloat at gmail.com>
>> wrote:
>>
>>> You have installed buildbot in your global python packages, under Python
>>> 3.  Note how the buildbot script is being run from /usr/bin/buildbot.
>>> Try removing it from your global python packages, then activate your
>>> virtualenv and try installing it again.
>>>
>>> This kind of behavior is not unusual for a python package; many packages
>>> are not compatible with python 3, so care must be taken when invoking these
>>> packages with python3 as the main python interpreter.  Once your virtualenv
>>> is setup properly (which it looks like it is) and the packages are
>>> installed *within* that virtualenv (which they are not yet) everything
>>> should work just fine.
>>> -E
>>>
>>> On Mon, Oct 26, 2015 at 3:29 PM, Wink Saville <wink at saville.com> wrote:
>>>
>>>> Sorry, prematurely sent.
>>>>
>>>> So the virtual env did:
>>>>
>>>> $ source venv/bin/activate
>>>> (venv)[wink at wink-envy buildbot]
>>>> $ python --version
>>>> Python 2.7.10
>>>> (venv)[wink at wink-envy buildbot]
>>>> $ buildbot --version
>>>> Traceback (most recent call last):
>>>>   File "/usr/bin/buildbot", line 3, in <module>
>>>>     from buildbot.scripts import runner
>>>>   File "/usr/lib/python3.5/site-packages/buildbot/scripts/runner.py",
>>>> line 738
>>>>     print "Buildbot version: %s" % buildbot.version
>>>>                                ^
>>>> SyntaxError: Missing parentheses in call to 'print'
>>>> (venv)[wink at wink-envy buildbot]
>>>>
>>>> Anyway, what is the suggested work-around?
>>>>
>>>> Will there be a python3 compatible verson or even one that would work
>>>> in a "bi" environment "properly"?
>>>>
>>>>
>>>> On Mon, Oct 26, 2015 at 3:19 PM Wink Saville <wink at saville.com> wrote:
>>>>
>>>>> Hmmm, I have both 3.5 and 2.7 installed, I'm surprised that buildbot
>>>>> isn't capable of running in an environment where both are installed and
>>>>> python3 is the default. I also tried setting up a virtualenv and it still
>>>>> fails, probably because I installed buildbot using pip which is a python3
>>>>> version:
>>>>> pip 7.1.2 from /usr/lib/python3.5/site-packages (python 3.5)
>>>>>
>>>>> On Mon, Oct 26, 2015 at 2:42 PM Pierre Tardy <tardyp at gmail.com> wrote:
>>>>>
>>>>>> Buildbot only supports python 2.7 as of now
>>>>>>
>>>>>> Le lun. 26 oct. 2015 22:38, Wink Saville <wink at saville.com> a écrit :
>>>>>>
>>>>>>> I installed buidbot using pip and then run "buildbot --version" and
>>>>>>> it failed, what have I done wrong?
>>>>>>>
>>>>>>> $ buildbot --version
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "/usr/bin/buildbot", line 3, in <module>
>>>>>>>     from buildbot.scripts import runner
>>>>>>>   File
>>>>>>> "/usr/lib/python3.5/site-packages/buildbot/scripts/runner.py", line 738
>>>>>>>     print "Buildbot version: %s" % buildbot.version
>>>>>>>                                ^
>>>>>>> SyntaxError: Missing parentheses in call to 'print'
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> users mailing list
>>>>>>> users at buildbot.net
>>>>>>> https://lists.buildbot.net/mailman/listinfo/users
>>>>>>
>>>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> users at buildbot.net
>>>> https://lists.buildbot.net/mailman/listinfo/users
>>>>
>>>
>>>
>> _______________________________________________
>> users mailing list
>> users at buildbot.net
>> https://lists.buildbot.net/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151026/9fd7c1a3/attachment.html>


More information about the users mailing list