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

print "Bad mode {}. Use 'release' or 'debug' (default)" % build_mode() #457

Closed
ghost opened this issue Aug 3, 2018 · 4 comments
Closed

Comments

@ghost
Copy link

ghost commented Aug 3, 2018

Hi want to test the deno project can someone explain to me how to run this on windows 10 x64 without errors.

I get this error when i try to run \deno\tools with python 3.6 and 2.7

PS C:\Users\giorg\Documents\Development\Clones\deno\tools> python .\setup.py
  File ".\setup.py", line 20
    print "Bad mode {}. Use 'release' or 'debug' (default)" % build_mode()
                                                          ^
SyntaxError: invalid syntax
PS C:\Users\giorg\Documents\Development\Clones\deno\tools>
@hayd
Copy link
Contributor

hayd commented Aug 3, 2018

At the moment these scripts only support python 2. Also see #118 (comment).

Note: a python 3 SyntaxError is a good way to show that only python 2 is supported. It's unclear if the deps (specifically v8) also need python 2 anyway i.e. no benefit of deno supporting python 3 yet.

@ghost
Copy link
Author

ghost commented Aug 3, 2018

@haydi have tried and with 2.7 but I get the same error

@piscisaureus
Copy link
Member

piscisaureus commented Aug 3, 2018

@George35mk

It looks like you are using Python 3.

Our python scripts sometimes run other python scripts. If python3 is still in your PATH, even if you start the top level script with python2, the child script will be executed with Python3.

Try this:

set PATH=c:\Python27;%PATH%
python tools\setup.py

@ry
Copy link
Member

ry commented Aug 7, 2018

I've opened a standalone issue for python3 compatibility #464

@ry ry closed this as completed Aug 7, 2018
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