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

Bill Deegan bill at baddogconsulting.com
Mon Oct 26 23:22:19 UTC 2015


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/23a4342d/attachment.html>


More information about the users mailing list