[U-Boot] : buildman error

Can any one encounter this! looks like some issue on python setup?
$ ./tools/buildman/buildman -b master File "./tools/buildman/buildman", line 42 print result ^ SyntaxError: invalid syntax
Let me know for any input, I am using Python 3.3.0

Hi Jagan,
On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Can any one encounter this! looks like some issue on python setup?
$ ./tools/buildman/buildman -b master File "./tools/buildman/buildman", line 42 print result ^ SyntaxError: invalid syntax
Let me know for any input, I am using Python 3.3.0
I think print is now required to be a function, so print(result). We may need to adjust the code...
Regards, Simon

On Mon, Sep 30, 2013 at 11:12 PM, Simon Glass sjg@chromium.org wrote:
Hi Jagan,
On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Can any one encounter this! looks like some issue on python setup?
$ ./tools/buildman/buildman -b master File "./tools/buildman/buildman", line 42 print result ^ SyntaxError: invalid syntax
Let me know for any input, I am using Python 3.3.0
I think print is now required to be a function, so print(result). We may need to adjust the code...
Does this print func chage with new python versions?

On 09/30/2013 08:09 PM, Jagan Teki wrote:
On Mon, Sep 30, 2013 at 11:12 PM, Simon Glass sjg@chromium.org wrote:
Hi Jagan,
On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Can any one encounter this! looks like some issue on python setup?
$ ./tools/buildman/buildman -b master File "./tools/buildman/buildman", line 42 print result ^ SyntaxError: invalid syntax
Let me know for any input, I am using Python 3.3.0
I think print is now required to be a function, so print(result). We may need to adjust the code...
Does this print func chage with new python versions?
yes, since python 3 it needs brackets.
Regards, Jeroen

On Tue, Oct 1, 2013 at 12:00 AM, Jeroen Hofstee dasuboot@myspectrum.nl wrote:
On 09/30/2013 08:09 PM, Jagan Teki wrote:
On Mon, Sep 30, 2013 at 11:12 PM, Simon Glass sjg@chromium.org wrote:
Hi Jagan,
On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Can any one encounter this! looks like some issue on python setup?
$ ./tools/buildman/buildman -b master File "./tools/buildman/buildman", line 42 print result ^ SyntaxError: invalid syntax
Let me know for any input, I am using Python 3.3.0
I think print is now required to be a function, so print(result). We may need to adjust the code...
Does this print func chage with new python versions?
yes, since python 3 it needs brackets.
If we fix this, is it compatible for lower versions?

On 09/30/2013 08:55 PM, Jagan Teki wrote:
I think print is now required to be a function, so print(result). We may need to adjust the code...
Does this print func chage with new python versions?
yes, since python 3 it needs brackets.
If we fix this, is it compatible for lower versions?
jeroen@black:~$ python Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
print("bla")
bla
exit()
nope, but someone will have to check complete python 3 compatibility, I doubt this is the only problem, just the first one.
Regards, Jeroen
participants (3)
-
Jagan Teki
-
Jeroen Hofstee
-
Simon Glass