Open ferdous313 opened 4 years ago
nilufar@nilufar-XPS-8900:/usr/lib/scons$ ls SCons scons-3.1.1.egg-info
nilufar@nilufar-XPS-8900:/usr/lib/scons$ python --version Python 2.7.17
My ubuntu version is Ubuntu 19.10 and I installed all the dependencies given at GEM5 : sudo apt install build-essential git m4 scons zlib1g zlib1g-dev libprotobuf-dev protobuf-compiler libprotoc-dev libgoogle-perftools-dev python-dev python
I don't know what's the cause if the python version is indeed 2.7. Maybe try to use parentheses for the print?
@ferdous313 i am facing the same problem. Did you solve the problem yet?
** Error loading site_init file './site_scons/site_init.py':
File "./site_scons/site_init.py", line 55
print """
For more details, see:
http://gem5.org/Dependencies
"""
^
SyntaxError: invalid syntax
and when i change the scons version to 0.98.1 there is another issue
Site init file './site_scons/site_init.py' raised exception: name 'EnsureSConsVersion' is not defined
NameError: name 'EnsureSConsVersion' is not defined:
File "/usr/local/lib/scons-0.98.1/SCons/Script/Main.py", line 1234:
_exec_main(parser, values)
File "/usr/local/lib/scons-0.98.1/SCons/Script/Main.py", line 1199:
_main(parser)
File "/usr/local/lib/scons-0.98.1/SCons/Script/Main.py", line 839:
_load_site_scons_dir(d)
File "/usr/local/lib/scons-0.98.1/SCons/Script/Main.py", line 688:
imp.load_module(site_init_modname, fp, pathname, description)
File "./site_scons/site_init.py", line 49:
EnsureSConsVersion(0, 98)
I use python3, while there is still an error about site_init.py
I have Python 2.7.17 and also have scons installed which are working fine for gem5 simulator. When I am running this stt or sdo I am getting this error. Please suggest!
** Error loading site_init file './site_scons/site_init.py': File "./site_scons/site_init.py", line 55
For more details, see: http://gem5.org/Dependencies """
^
SyntaxError: invalid syntax