When attempting to install a program using scons, I get the following output: "ImportError: No module named SCons.Script" and the install fails. I've installed scons and the third party source, ensured permissions are properly set, and verified paths. I see one other entry in SO with a similar (but not exactly the same) problem, but no solution. Can anyone suggest solutions?
Scons install command: python setup.py install --prefix=/path/to/software/
Software install command: ./scons.py -j<number_of_processors_to_use> mode=release bin
Target software: Rosetta (Rosetta)
The solution I found is related to the OS (Linux SLES 11) configuration, I believe. At any rate, when I unpack (using the preserve permissions switch) and install scons (python setup.py install --prefix=/path/to/software/), everything runs without a problem. After much research and review, however, I noticed that the 'scons.py' file on one machine where the install works is a symlink file, while on the target machine, the file is standard (the OS apparently blocked creation of the symlink during setup). The solution, then, is to remove the non-symlink scons.py file, and then recreate the symlink using the syntax 'ln -s /path/to/file /path/to/symlink' (How to symlink a file in Linux?)
In this specific case, the syntax was 'ln -s external/scons-local/scons.py scons.py
'. Where the 'external' folder contained the third-party scons implementation.