scons throws exception

Help
KarstenG
2008-03-11
2013-05-30
  • KarstenG
    KarstenG
    2008-03-11

    Hi,
    I tried to compile PythonCE according to the supplied help text, but when I call 'scons' I get the following output:

    scons: Reading SConscript files ...
    <type 'exceptions.TypeError'>: cannot concatenate 'str' and 'NoneType' objects:
      File "SConstruct", line 17:
        toolpath = '.'
      File "C:\Python-2.5-wince\PCbuild\WinCE\scons-local-0.96.1\SCons\Environment.p
    y", line 266:
        apply_tools(self, tools, toolpath)
      File "C:\Python-2.5-wince\PCbuild\WinCE\scons-local-0.96.1\SCons\Environment.p
    y", line 122:
        env.Tool(tool, toolpath)
      File "C:\Python-2.5-wince\PCbuild\WinCE\scons-local-0.96.1\SCons\Environment.p
    y", line 906:
        return SCons.Tool.Tool(tool, map(self.subst, toolpath))(self)
      File "C:\Python-2.5-wince\PCbuild\WinCE\scons-local-0.96.1\SCons\Tool\__init__
    .py", line 53:
        apply(self.generate, ( env, ) + args, kw)
      File ".\msevc.py", line 461:
        get_default_subplatform(env)
      File ".\msevc.py", line 323:
        hkey, platform_name = find_platform_by_guid(platform_guid)
      File ".\msevc.py", line 86:
        hkey = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, PLATFORMS_KEY
    + '\\' + guid)

    I tried 'scons -h' but this leads to the same result.

    Can anybody help me?

    Regards,
    Karsten