Skip to content Skip to sidebar Skip to footer

Unable To Runs Scons Getting Import Error

I have installed scons 2.3.2 and have python 2.4. When I run scons, I am seeing the following error: scons Import failed. Unable to find SCons files in: /usr/bin/../engine /usr

Solution 1:

The problem (from the bottom of the traceback) is a Syntax error:

    p = self.stack[-1] ifself.stack elseself.default_table
                        ^
SyntaxError: invalid syntax

This is because you are running a version of Python that doesn't support conditional expressions:

Support for this syntax was added in 2.5, see the docs

Post a Comment for "Unable To Runs Scons Getting Import Error"