Cooking failed @ emscripten/

Hi, Unreal gurus,

I’ve been trying to build HTML5 version of the games.
But somehow it always failed in this manner:

[289/289] python IntuitiveMeleeCombat.js
wrote symbol map file to /home/sbbg/Projects/Unreal Projects/IntuitiveMeleeCombat/Binaries/HTML5/IntuitiveMeleeCombat.js.symbols
Traceback (most recent call last):
  File "/home/sbbg/Shared/UnrealEngine/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.9/tools/", line 8, in <module>
    import asm_module
  File "/home/sbbg/Shared/UnrealEngine/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.9/tools/", line 4, in <module>
    import shared, js_optimizer
  File "/home/sbbg/Shared/UnrealEngine/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.9/tools/", line 48
    except Exception, e:
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "/home/sbbg/Shared/UnrealEngine/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.9/", line 2396, in <module>
  File "/home/sbbg/Shared/UnrealEngine/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.9/", line 2090, in run
    subprocess.check_call([shared.PYTHON, shared.path_from_root('tools', ''), js_target, asm_target, js_target])
  File "/usr/lib64/python2.7/", line 186, in check_call
    raise CalledProcessError(retcode, cmd)

I’m not sure if it’s problem of python version on my system.
I currently have python 2.7.13 & 3.4.6 installed.

Any suggestion is appreciated,
thank you.

Hi, all Unreal users,

It’s indeed problem of Python version.
After I switch to Python2 , the compilation went fine.

Thank you.