Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors running the script #2

Closed
gabriel-ballesteros opened this issue Mar 8, 2019 · 4 comments
Closed

Syntax errors running the script #2

gabriel-ballesteros opened this issue Mar 8, 2019 · 4 comments

Comments

@gabriel-ballesteros
Copy link

gabriel-ballesteros commented Mar 8, 2019

I ran the script, but I got the following errors:
terminal.txt

SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Skipping "%s".' % directory)?
Traceback (most recent call last):
File "/Users/gabrielballesteros/downloads/deps/depot_tools/gn.py", line 15, in
import gclient_utils
File "/Users/gabrielballesteros/Downloads/deps/depot_tools/gclient_utils.py", line 271
except OSError, e:
^
SyntaxError: invalid syntax
ninja: Entering directory `out/Release'
ninja: fatal: chdir to 'out/Release' - No such file or directory
Note: checking out 'v1.2.10-beta4-93-gcc62e9ed5'.

Besides this, cmake is required (I didn't knew), maybe it should be listed in the pre-requisites.

@haxpor
Copy link
Owner

haxpor commented Mar 8, 2019

I'll add cmake as pre-requisites and state in README.md. Thanks for suggestion.

I'm not quite sure what's the problem, seem to relate to python stuff. I checked mine via python -version and I'm using 2.7.10. Would you tell me yours? If that's too old, you could try to update python to version I use just to be safe.

@gabriel-ballesteros
Copy link
Author

gabriel-ballesteros commented Mar 8, 2019

I checked and I've got python 3.7.1, maybe it's because of python 3?
Thanks for the script btw!

@haxpor
Copy link
Owner

haxpor commented Mar 8, 2019

I guess it could be, you can try to execute with python version 2.x instead by changing this line to your python 2.x version.

@Sam1370
Copy link

Sam1370 commented Jul 30, 2019

@elros28 Python 3 requires you to put parentheses around print calls e.g instead of print "hello" you do print ("hello")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants