On Sun, Feb 25, 2018 at 3:32 PM, Mark Sibly <[email protected]> wrote:

> > python ./emsdk install latest
>
> Thanks, that fixes the download, but I now get this when trying to
> activate.
>
[snip]

> Failed to read environment variable PATH:
> No module named win32api
>

Just discovered that myself too. :) The bundled python includes an extra
module or two that weren't around by default.

You can work around that by going back to emsdk.bat for the activate step
(since it doesn't need to download anything at that stage).

-- brion



> Traceback (most recent call last):
>   File "./emsdk", line 2337, in <module>
>     sys.exit(main())
>   File "./emsdk", line 2273, in main
>     tools_to_activate = set_active_tools(tools_to_activate,
> permanently_activate=arg_global)
>   File "./emsdk", line 1814, in set_active_tools
>     env_string = construct_env(tools_to_activate, False)
>   File "./emsdk", line 1912, in construct_env
>     newpath, added_path = adjusted_path(tools_to_activate)
>   File "./emsdk", line 1875, in adjusted_path
>     existing_path = win_get_environment_variable('PATH', system=True)
>   File "./emsdk", line 222, in win_get_environment_variable
>     win32api.RegCloseKey(folder)
> UnboundLocalError: local variable 'win32api' referenced before assignment
>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to