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

Elliot Saba staticfloat at gmail.com
Mon Oct 26 22:31:51 UTC 2015


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/57d588b6/attachment.html>


More information about the users mailing list