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

Scons error even when I change my python version to 2.7.5 #248

Open
abhishekk06 opened this issue Mar 7, 2021 · 2 comments
Open

Scons error even when I change my python version to 2.7.5 #248

abhishekk06 opened this issue Mar 7, 2021 · 2 comments

Comments

@abhishekk06
Copy link

Any idea what went wrong I did change my python version to 2.7 but for some reason still hit the same error while trying to run SCONS.

->/home/mdl/azk6085/CSE530/zsim$ export PYTHON=python2
->/home/mdl/azk6085/CSE530/zsim$ python --version
Python 2.7.5
->/home/mdl/azk6085/CSE530/zsim$ scons -j16
scons: Reading SConscript files ...
File "/home/mdl/azk6085/CSE530/zsim/SConstruct", line 11

print "Building " + type + " zsim at " + buildDir

                ^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building " + type + " zsim at " + buildDir)?

@rajesh-s
Copy link

rajesh-s commented Mar 22, 2021

This is likely happening because scons might be using python3 default. You can confirm this by checking the first line of /usr/bin/scons reading #! /usr/bin/python3

Try using python2 `which scons` -j16 to build

Similar issue with gem5

@abhishekk06
Copy link
Author

Got it. Thanks.

Now I see some error while trying to run "simple.cfg" by any chance are you able to run it?

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

2 participants