[Scons-users] Help regarding IOError(stderr.decode("mbcs"))

Gary Oberbrunner garyo at oberbrunner.com
Tue Feb 4 08:35:47 EST 2014


OK, try setting the system environment variable SCONS_MSCOMMON_DEBUG=-
(that's a dash as the value) before running SCons; it should spit out a
bunch of stuff. Whatever the last thing it says it's calling there (should
be a Visual Studio bat file) is probably the thing causing the trouble.
Looking at the code, it may not be anything to do with multibyte decoding;
it may be the bat file subprocess returning an error.

Also I think you may be running a slightly older SCons, given the line
numbers in your original post. Make sure you're running 2.3.0 and it still
happens there.


On Tue, Feb 4, 2014 at 7:26 AM, Aseem Shakuntal <kri80vt at outlook.com> wrote:


>

> Hi Gary,

>

> My system locale is: en-us;

>

> E:\>systeminfo /FO LIST | find "System Locale"

> System Locale: en-us;English (United States)

>

> Br, Aseem

> ------------------------------

> Date: Tue, 4 Feb 2014 07:14:45 -0500

> From: garyo at oberbrunner.com

>

> To: scons-users at scons.org

> Subject: Re: [Scons-users] Help regarding IOError(stderr.decode("mbcs"))

>

> What is your locale? Looks like it's trying to decode a multibyte string

> coming from stderr.

>

> --

> Gary Oberbrunner

> (sent from my Android)

> On Feb 4, 2014 7:08 AM, "Aseem Shakuntal" <kri80vt at outlook.com> wrote:

>

> Hello,

>

> In order to get started with scons, I created a simple "hello.c" and a

> SConstruct file which does this:

>

> env = Environment()

> hello = Program(["hello.c"])

>

> When I run scons from my folder which contains these files, I get this

> error:

>

> $ scons

> scons: Reading SConscript files ...

> IOError: :

> File "E:\scons-test\SConstruct", line 1:

> env = Environment()

> File "c:\Python27\scons-2.0.1\SCons\Environment.py", line 991:

> apply_tools(self, tools, toolpath)

> File "c:\Python27\scons-2.0.1\SCons\Environment.py", line 105:

> env.Tool(tool)

> File "c:\Python27\scons-2.0.1\SCons\Environment.py", line 1692:

> tool(self)

> File "c:\Python27\scons-2.0.1\SCons\Tool\__init__.py", line 180:

> self.generate(env, *args, **kw)

> File "c:\Python27\scons-2.0.1\SCons\Tool\default.py", line 41:

> SCons.Tool.Tool(t)(env)

> File "c:\Python27\scons-2.0.1\SCons\Tool\__init__.py", line 180:

> self.generate(env, *args, **kw)

> File "c:\Python27\scons-2.0.1\SCons\Tool\mslink.py", line 242:

> msvc_setup_env_once(env)

> File "c:\Python27\scons-2.0.1\SCons\Tool\MSCommon\vc.py", line 343:

> msvc_setup_env(env)

> File "c:\Python27\scons-2.0.1\SCons\Tool\MSCommon\vc.py", line 436:

> d = msvc_find_valid_batch_script(env,version)

> File "c:\Python27\scons-2.0.1\SCons\Tool\MSCommon\vc.py", line 390:

> d = script_env(vc_script, args=arg)

> File "c:\Python27\scons-2.0.1\SCons\Tool\MSCommon\vc.py", line 292:

> stdout = common.get_output(script, args)

> File "c:\Python27\scons-2.0.1\SCons\Tool\MSCommon\common.py", line 173:

> raise IOError(stderr.decode("mbcs"))

>

> I am using windows 7, 64 bit. I have python 2.7 installed (and also python

> 3.2).

>

> Can anyone point me to fixing this? Any help / pointers are highly

> appreciated!

>

> Br, Aseem

> --

> i must dream, to make my dreams come true!

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

> _______________________________________________ Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>



--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140204/c50ec677/attachment.html


More information about the Scons-users mailing list