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

Wink Saville wink at saville.com
Mon Oct 26 23:04:12 UTC 2015


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.

I'm feeling using docker or other container system might be a better
approach, but I don't know anything about them either :)

Suggestions?

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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151026/5a45bb6e/attachment.html>


More information about the users mailing list