Which directory are you running things from? The scons.py script should be run from the Rosetta/main/source directory.
The other question is which version of Rosetta, python and operating system you’re using. For older Rosettas (e.g 3.10), the scons we shipped assumed a Python 2 interpreter. More recent versions of Rosetta (e.g. 3.11) can work with Python 2.7 and recent (3.5+) versions of Python 3. If you’re using an OS which has switched over to Python3, you may have issues with using the scons that comes with an older version of Rosetta. (You might be able to get it to work if you explicitly call it with Python 2, e.g. `python2 ./scons.py`.)