Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problem running scons

Tags:

python

scons

I am trying to get started with scons. I have Python 3.0.1 and downloaded Scons 1.2.0; when I try to run scons I get the following error. Am I doing something wrong here?

C:\tmp\scons>c:\appl\python\3.0.1\Scripts\scons
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\appl\python\3.0.1\Lib\site-packages\scons-1.2.0\SCons\__init__.py", l
ine 43, in <module>
    import SCons.compat
  File "c:\appl\python\3.0.1\Lib\site-packages\scons-1.2.0\SCons\compat\__init__
.py", line 208
    raise Error, "Cannot move a directory '%s' into itself '%s'." % (src, dst)
               ^
SyntaxError: invalid syntax
like image 935
Jason S Avatar asked Dec 21 '25 02:12

Jason S


1 Answers

That's Python 2 syntax. I assume scons doesn't run on Python 3. You need to run it using Python 2.

like image 124
Lennart Regebro Avatar answered Dec 22 '25 19:12

Lennart Regebro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!