Csound Csound-dev Csound-tekno Search About

[Cs-dev] scons problem

Date2010-05-18 22:35
FromOeyvind Brandtsegg
Subject[Cs-dev] scons problem
Hello,

I have a problem building Csound, I think it is more of a scons
problem and has nothing to do with the Csound source, but I hope some
of you might have a tip to push me in the right direction.

I did build Csound this morning, but now I get errors from scons.
Seemingly it has problems with my user name (containing the Norwegian
letter 'Ø').
Strange, as the only changes i did to the system today was:
- installing the precompiled libsndfile (as I thought it wise to
update my now quite old precompiled libsndfile that I once got from
Michael Gogins if I remember correctly)
- installing the DirectX SDK (so I would be able to compile a new
version of my now quite old precompiled portaudio that I think I got
from Victor a long time ago)

The error is
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9d in position
26: ordinal not in range(128):
... and it seems to originate from
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\msvc.py", line 195:
    settings_path = settings_path.replace(r'%' + env_var + r'%',
env_vars[env_var])
(full console print below)

To try to remedy the situation, I uninstalled libsndfile and the
DirectX SDK, but still got the same error.

I was able to work around it by editing msvc.py, putting:
                    pass

instead of:
                    #settings_path = settings_path.replace(r'%' +
env_var + r'%', env_vars[env_var])
                    #found_var = 1

Csound now builds.
I am not comfortable with this solution, as it would seem a bad idea
to mess around with editing the scons files.
Anyone have a tip as to what could have gone wrong?

best
Oeyvind

**
(msys console print)

$ c:/python26/scripts/scons
scons: Reading SConscript files ...

      C S O U N D 5

SCons build file for Csound 5:
API library, plugin opcodes, utilities, and front ends.

By Michael Gogins 

For custom options, run 'scons -h'.
For default options, run 'scons -H'.
If headers or libraries are not found, edit 'custom.py'.
For Linux, run in the standard shell
    with standard Python and just run 'scons'.
For MinGW, run in the MSys shell
    and use www.python.org WIN32 Python to run scons.
For Microsoft Visual C++, run in the Platform SDK
    command shell, and use www.python.org WIN32 Python to run scons.

UnicodeDecodeError: 'ascii' codec can't decode byte 0x9d in position
26: ordinal not in range(128):
  File "C:\msys\1.0\source\csound5\SConstruct", line 42:
    interfaces/CsoundFile.hpp interfaces/CppSound.hpp
interfaces/filebuilding.h''')
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Script\SConscript.py",
line 610:
    env = self.factory()
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Script\SConscript.py",
line 590:
    default_env = SCons.Defaults.DefaultEnvironment()
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Defaults.py", line 90:
    _default_env = apply(SCons.Environment.Environment, args, kw)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Environment.py",
line 992:
    apply_tools(self, tools, toolpath)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Environment.py",
line 106:
    env.Tool(tool)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Environment.py",
line 1676:
    tool(self)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\__init__.py",
line 181:
    apply(self.generate, ( env, ) + args, kw)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\default.py",
line 41:
    SCons.Tool.Tool(t)(env)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\__init__.py",
line 181:
    apply(self.generate, ( env, ) + args, kw)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\mslink.py",
line 214:
    include_path, lib_path, exe_path =
SCons.Tool.msvc.get_msvc_paths(env,version)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\msvc.py", line 566:
    include_path = get_msvc_path(env, "include", version)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\msvc.py", line 355:
    return _get_msvc8_path(path, str(version_num), platform, suite)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\msvc.py", line 297:
    dirs = _parse_msvc8_overrides(version, platform, suite)
  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool\msvc.py", line 195:
    settings_path = settings_path.replace(r'%' + env_var + r'%',
env_vars[env_var])

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-19 07:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] scons problem
Did you try installing a new version of scons?
On 18 May 2010, at 22:35, Oeyvind Brandtsegg wrote:

> Hello,
>
> I have a problem building Csound, I think it is more of a scons
> problem and has nothing to do with the Csound source, but I hope some
> of you might have a tip to push me in the right direction.
>
> I did build Csound this morning, but now I get errors from scons.
> Seemingly it has problems with my user name (containing the Norwegian
> letter 'Ø').
> Strange, as the only changes i did to the system today was:
> - installing the precompiled libsndfile (as I thought it wise to
> update my now quite old precompiled libsndfile that I once got from
> Michael Gogins if I remember correctly)
> - installing the DirectX SDK (so I would be able to compile a new
> version of my now quite old precompiled portaudio that I think I got
> from Victor a long time ago)
>
> The error is
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x9d in position
> 26: ordinal not in range(128):
> ... and it seems to originate from
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \msvc.py", line 195:
>    settings_path = settings_path.replace(r'%' + env_var + r'%',
> env_vars[env_var])
> (full console print below)
>
> To try to remedy the situation, I uninstalled libsndfile and the
> DirectX SDK, but still got the same error.
>
> I was able to work around it by editing msvc.py, putting:
>                    pass
>
> instead of:
>                    #settings_path = settings_path.replace(r'%' +
> env_var + r'%', env_vars[env_var])
>                    #found_var = 1
>
> Csound now builds.
> I am not comfortable with this solution, as it would seem a bad idea
> to mess around with editing the scons files.
> Anyone have a tip as to what could have gone wrong?
>
> best
> Oeyvind
>
> **
> (msys console print)
>
> $ c:/python26/scripts/scons
> scons: Reading SConscript files ...
>
>      C S O U N D 5
>
> SCons build file for Csound 5:
> API library, plugin opcodes, utilities, and front ends.
>
> By Michael Gogins 
>
> For custom options, run 'scons -h'.
> For default options, run 'scons -H'.
> If headers or libraries are not found, edit 'custom.py'.
> For Linux, run in the standard shell
>    with standard Python and just run 'scons'.
> For MinGW, run in the MSys shell
>    and use www.python.org WIN32 Python to run scons.
> For Microsoft Visual C++, run in the Platform SDK
>    command shell, and use www.python.org WIN32 Python to run scons.
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x9d in position
> 26: ordinal not in range(128):
>  File "C:\msys\1.0\source\csound5\SConstruct", line 42:
>    interfaces/CsoundFile.hpp interfaces/CppSound.hpp
> interfaces/filebuilding.h''')
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Script 
> \SConscript.py",
> line 610:
>    env = self.factory()
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Script 
> \SConscript.py",
> line 590:
>    default_env = SCons.Defaults.DefaultEnvironment()
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Defaults.py",  
> line 90:
>    _default_env = apply(SCons.Environment.Environment, args, kw)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons 
> \Environment.py",
> line 992:
>    apply_tools(self, tools, toolpath)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons 
> \Environment.py",
> line 106:
>    env.Tool(tool)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons 
> \Environment.py",
> line 1676:
>    tool(self)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \__init__.py",
> line 181:
>    apply(self.generate, ( env, ) + args, kw)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \default.py",
> line 41:
>    SCons.Tool.Tool(t)(env)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \__init__.py",
> line 181:
>    apply(self.generate, ( env, ) + args, kw)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \mslink.py",
> line 214:
>    include_path, lib_path, exe_path =
> SCons.Tool.msvc.get_msvc_paths(env,version)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \msvc.py", line 566:
>    include_path = get_msvc_path(env, "include", version)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \msvc.py", line 355:
>    return _get_msvc8_path(path, str(version_num), platform, suite)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \msvc.py", line 297:
>    dirs = _parse_msvc8_overrides(version, platform, suite)
>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool 
> \msvc.py", line 195:
>    settings_path = settings_path.replace(r'%' + env_var + r'%',
> env_vars[env_var])
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-19 09:39
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] scons problem
I wondered if I should do that, but hestitated to experiment with new
versions when I already had one unexplainable error.
My scons is 1.2.0, what version are you using?

best
Oeyvind

2010/5/19 Victor Lazzarini :
> Did you try installing a new version of scons?
> On 18 May 2010, at 22:35, Oeyvind Brandtsegg wrote:
>
>> Hello,
>>
>> I have a problem building Csound, I think it is more of a scons
>> problem and has nothing to do with the Csound source, but I hope some
>> of you might have a tip to push me in the right direction.
>>
>> I did build Csound this morning, but now I get errors from scons.
>> Seemingly it has problems with my user name (containing the Norwegian
>> letter 'Ø').
>> Strange, as the only changes i did to the system today was:
>> - installing the precompiled libsndfile (as I thought it wise to
>> update my now quite old precompiled libsndfile that I once got from
>> Michael Gogins if I remember correctly)
>> - installing the DirectX SDK (so I would be able to compile a new
>> version of my now quite old precompiled portaudio that I think I got
>> from Victor a long time ago)
>>
>> The error is
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0x9d in position
>> 26: ordinal not in range(128):
>> ... and it seems to originate from
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \msvc.py", line 195:
>>    settings_path = settings_path.replace(r'%' + env_var + r'%',
>> env_vars[env_var])
>> (full console print below)
>>
>> To try to remedy the situation, I uninstalled libsndfile and the
>> DirectX SDK, but still got the same error.
>>
>> I was able to work around it by editing msvc.py, putting:
>>                    pass
>>
>> instead of:
>>                    #settings_path = settings_path.replace(r'%' +
>> env_var + r'%', env_vars[env_var])
>>                    #found_var = 1
>>
>> Csound now builds.
>> I am not comfortable with this solution, as it would seem a bad idea
>> to mess around with editing the scons files.
>> Anyone have a tip as to what could have gone wrong?
>>
>> best
>> Oeyvind
>>
>> **
>> (msys console print)
>>
>> $ c:/python26/scripts/scons
>> scons: Reading SConscript files ...
>>
>>      C S O U N D 5
>>
>> SCons build file for Csound 5:
>> API library, plugin opcodes, utilities, and front ends.
>>
>> By Michael Gogins 
>>
>> For custom options, run 'scons -h'.
>> For default options, run 'scons -H'.
>> If headers or libraries are not found, edit 'custom.py'.
>> For Linux, run in the standard shell
>>    with standard Python and just run 'scons'.
>> For MinGW, run in the MSys shell
>>    and use www.python.org WIN32 Python to run scons.
>> For Microsoft Visual C++, run in the Platform SDK
>>    command shell, and use www.python.org WIN32 Python to run scons.
>>
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0x9d in position
>> 26: ordinal not in range(128):
>>  File "C:\msys\1.0\source\csound5\SConstruct", line 42:
>>    interfaces/CsoundFile.hpp interfaces/CppSound.hpp
>> interfaces/filebuilding.h''')
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Script
>> \SConscript.py",
>> line 610:
>>    env = self.factory()
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Script
>> \SConscript.py",
>> line 590:
>>    default_env = SCons.Defaults.DefaultEnvironment()
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Defaults.py",
>> line 90:
>>    _default_env = apply(SCons.Environment.Environment, args, kw)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons
>> \Environment.py",
>> line 992:
>>    apply_tools(self, tools, toolpath)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons
>> \Environment.py",
>> line 106:
>>    env.Tool(tool)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons
>> \Environment.py",
>> line 1676:
>>    tool(self)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \__init__.py",
>> line 181:
>>    apply(self.generate, ( env, ) + args, kw)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \default.py",
>> line 41:
>>    SCons.Tool.Tool(t)(env)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \__init__.py",
>> line 181:
>>    apply(self.generate, ( env, ) + args, kw)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \mslink.py",
>> line 214:
>>    include_path, lib_path, exe_path =
>> SCons.Tool.msvc.get_msvc_paths(env,version)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \msvc.py", line 566:
>>    include_path = get_msvc_path(env, "include", version)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \msvc.py", line 355:
>>    return _get_msvc8_path(path, str(version_num), platform, suite)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \msvc.py", line 297:
>>    dirs = _parse_msvc8_overrides(version, platform, suite)
>>  File "c:\Python26\Lib\site-packages\scons-1.2.0\SCons\Tool
>> \msvc.py", line 195:
>>    settings_path = settings_path.replace(r'%' + env_var + r'%',
>> env_vars[env_var])
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net