Skip to content

KeyError: 'PROGRAMFILES(X86)' on Windows XP in 1.7.8 #2

Description

@MarkCallow

$ ./emsdk.bat install latest-32bit
Installing 'sdk-1.7.8-32bit'..
Installing 'clang-3.2-32bit'..
On Windows XP during ./emsdk install latest-32bit, either during or after the node installation, I get the following error. I was getting this in the previous SDK version as well after receiving the change to look in both PROGRAMFILES and PROGRAMFIILES(X86). I manually hacked emsdk to avoid it.

The contents of file 'clang_3.2_32bit.zip' already exist in destination 'C:/Program Files/Emscripten/clang/3.2_32bit', skipping.
Done.
Done.
Installing 'node-0.10.17-32bit'..
Traceback (most recent call last):
File "C:\Program Files\Emscripten\emsdk", line 925, in
sys.exit(main())
File "C:\Program Files\Emscripten\emsdk", line 910, in main
tool.install()
File "C:\Program Files\Emscripten\emsdk", line 555, in install
success = tool.install()
File "C:\Program Files\Emscripten\emsdk", line 568, in install
dst_file = download_file(urlparse.urljoin(emsdk_packages_url, self.download_url()), self.installation_path())
File "C:\Program Files\Emscripten\emsdk", line 427, in installation_path
pth = self.windows_install_path.replace("%MSBuildPlatformsDir%", find_msbuild_dir())
File "C:\Program Files\Emscripten\emsdk", line 394, in find_msbuild_dir
program_files_x86 = os.environ['ProgramFiles(x86)']
File "C:\Program Files\Emscripten\python\2.7.5.1_32bit\lib\os.py", line 423, in getitem
return self.data[key.upper()]
KeyError: 'PROGRAMFILES(X86)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions