[Scons-users] Scons install under Msys / MinGW path problem
    Philipp Kraus 
    philipp.kraus at flashpixx.de
       
    Sun Oct 21 10:59:24 EDT 2012
    
    
  
On 2012-10-06 22:08:14 +0200, William Deegan said:
> Phil,
> On Oct 6, 2012, at 12:25 PM, Philipp Kraus <philipp.kraus at flashpixx.de> wrote:
> On 2012-10-06 14:48:32 +0200, Gary Oberbrunner said:
> 
> On Sat, Oct 6, 2012 at 6:33 AM, Philipp Kraus 
> <philipp.kraus at flashpixx.de> wrote:
> ...
> 
> I can run only the scons.bat in MinGW Shell, it produce the error
> 
> /c/opt/scons/2.2.0/msys/Scripts/scons.bat: line 1: syntax error near 
> unexpectedtoken `('
> /c/opt/scons/2.2.0/msys/Scripts/scons.bat: line 1: `@REM Copyright (c) 
> 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 
> The SCons Foundation'
> 
> (same on Scons 2.1.0)
> 
> a call "scons" on my source directory whitch stores the Sconstruct 
> script does not work. The error message is, that the command scons not 
> known.
> The Scons directory is added to my PATH environment variable, because I 
> can call scons.bat
> 
> scons.bat is a bat script; use this if you are using cmd.exe as your 
> shell.  scons (no extension) is a python script; use that if you are 
> using a Unix-like shell (cygwin, mingw, etc.) - it uses the Unix 
> hash-bang convention to get itself interpreted by python.  From the 
> above, it looks like you are trying to use scons.bat from a Unix-like 
> shell (note the error is from a shell trying to parse a @REM statement, 
> which is a cmd.exe thing).
> 
> okay, so I should use only "scons.py" :-)
> But this is a problem, it can not be run. If I run "scons" on the MinGW 
> command line
> the command line reported, that "sh: scons: command not found", 
> although I have add
> to the PATH variabel this path: /c/opt/scons/2.2.0/msys/Scripts
> 
> I can run "scons.py", but this creats:
> Traceback (most recent call last):
>   File "c:/opt/scons/2.2.0/msys/Scripts/scons.py", line 187, in <module>
>     import SCons.Script
> ImportError: No module named SCons.Script
> 
> IMHO I would like to use Scons under MinGW shell equal to Cygwin.
> 
> Do I have create a mistake on installing?
> 
> 
> Try:
> <FULL PATH TO YOUR PYTHON> <FULL PATH TO scons.py> <your arguments>
Hi Bill,
sorry for the last answer, this does not work:
$ /c/Program\ Files/Python/2.7.3/python.exe 
/c/opt/scons/2.2.0/msys/Scripts/scons.py
Traceback (most recent call last):
  File "c:/opt/scons/2.2.0/msys/Scripts/scons.py", line 187, in <module>
    import SCons.Script
ImportError: No module named SCons.Script
You see the different path structures
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121021/db17e6ff/attachment.htm>
    
    
More information about the Scons-users
mailing list