cwfletcher / stt

BSD 3-Clause "New" or "Revised" License
34 stars 11 forks source link

Building gives error #4

Open ferdous313 opened 4 years ago

ferdous313 commented 4 years ago

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

print """

For more details, see: http://gem5.org/Dependencies """

^

SyntaxError: invalid syntax

ferdous313 commented 4 years ago

nilufar@nilufar-XPS-8900:/usr/lib/scons$ ls SCons scons-3.1.1.egg-info

ferdous313 commented 4 years ago

nilufar@nilufar-XPS-8900:/usr/lib/scons$ python --version Python 2.7.17

ferdous313 commented 4 years ago

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

jiyongyu commented 4 years ago

I don't know what's the cause if the python version is indeed 2.7. Maybe try to use parentheses for the print?

jeff1ou commented 2 years ago

@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)
lrg11 commented 1 year ago

I use python3, while there is still an error about site_init.py image