You are here

compilation problem

2 posts / 0 new
Last post
compilation problem
#1

Hi,everyone:

Anyone can help me to solve this error:

Traceback (most recent call last): File "./scons.py", line 187, in import SCons.Script ImportError: No module named SCons.Script

Thank you very much!

Category: 
Post Situation: 
Sat, 2019-11-23 23:18
michelleqyh

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`.)

Mon, 2019-11-25 09:45
rmoretti