Cant Lauch the game in HTML5

If i try to launch the game in HTML5 i get the following errors

LogPlayLevel: Project.Package: ********** PACKAGE COMMAND STARTED **********
LogPlayLevel: HTML5Platform.Package: Package C:\Users\Jyro\Documents\Unreal Projects\MyProject2\MyProject2.uproject
LogPlayLevel: InternalUtils.SafeFileExists: SafeFileExists C:\Program Files\Emscripten\python\2.7.5.3_64bit\python.exe=True
LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Emscripten\python\2.7.5.3_64bit\python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js"
LogPlayLevel: python: Traceback (most recent call last):
LogPlayLevel: python:   File "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py", line 48, in <module>
LogPlayLevel: python:     import shared
LogPlayLevel: python:   File "C:\Program Files\Emscripten\emscripten\1.29.0\tools\shared.py", line 517, in <module>
LogPlayLevel: python:     USING_PNACL_TOOLCHAIN = os.path.exists(os.path.join(LLVM_ROOT, 'pnacl-clang'))
LogPlayLevel: python: NameError: name 'LLVM_ROOT' is not defined
LogPlayLevel: CommandUtils.Run: Run: Took 0.083s to run python.exe, ExitCode=1
LogPlayLevel: ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:1): C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js". See logfile for details: 'python.txt'
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:1): C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js". See logfile for details: 'python.txt'
LogPlayLevel: Stacktrace:    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
LogPlayLevel:    at HTML5Platform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
LogPlayLevel:    at Project.Package(ProjectParams Params, Int32 WorkingCL)
LogPlayLevel:    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel:    at BuildCommand.Execute()
LogPlayLevel:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    at AutomationTool.Automation.Process(String[] CommandLine)
LogPlayLevel:    at AutomationTool.Program.MainProc(Object Param)
LogPlayLevel:    at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
LogPlayLevel:    at AutomationTool.Program.Main()
LogPlayLevel: Program.Main: ERROR: Command failed (Result:1): C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js". See logfile for details: 'python.txt'
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: copying UAT log files...
LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully.
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 4.500187
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error
LogD3D11RHI: InitD3DDevice

if i try i through file->Pakage Project HTML5

MainFrameActions: Packaging (HTML5): Project.Package: ********** PACKAGE COMMAND STARTED **********
MainFrameActions: Packaging (HTML5): HTML5Platform.Package: Package C:\Users\Jyro\Documents\Unreal Projects\MyProject2\MyProject2.uproject
MainFrameActions: Packaging (HTML5): InternalUtils.SafeFileExists: SafeFileExists C:\Program Files\Emscripten\python\2.7.5.3_64bit\python.exe=True
MainFrameActions: Packaging (HTML5): CommandUtils.Run: Run: C:\Program Files\Emscripten\python\2.7.5.3_64bit\python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data" --preload . --js-o
MainFrameActions: Packaging (HTML5): utput="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js"
MainFrameActions: Packaging (HTML5): python: Traceback (most recent call last):
MainFrameActions: Packaging (HTML5): python:   File "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py", line 48, in <module>
MainFrameActions: Packaging (HTML5): python:     import shared
MainFrameActions: Packaging (HTML5): python:   File "C:\Program Files\Emscripten\emscripten\1.29.0\tools\shared.py", line 517, in <module>
MainFrameActions: Packaging (HTML5): python:     USING_PNACL_TOOLCHAIN = os.path.exists(os.path.join(LLVM_ROOT, 'pnacl-clang'))
MainFrameActions: Packaging (HTML5): python: NameError: name 'LLVM_ROOT' is not defined
MainFrameActions: Packaging (HTML5): CommandUtils.Run: Run: Took 0.0719928s to run python.exe, ExitCode=1
MainFrameActions: Packaging (HTML5): ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:1): C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProje
MainFrameActions: Packaging (HTML5): ct2\Binaries\HTML5\MyProject2.data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js". See logfile for details: 'python.txt' 
MainFrameActions: Packaging (HTML5): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (HTML5): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (HTML5): Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:1): C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProje
MainFrameActions: Packaging (HTML5): ct2\Binaries\HTML5\MyProject2.data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js". See logfile for details: 'python.txt' 
MainFrameActions: Packaging (HTML5): Stacktrace:    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
MainFrameActions: Packaging (HTML5):    at HTML5Platform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (HTML5):    at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (HTML5):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (HTML5):    at BuildCommand.Execute()
MainFrameActions: Packaging (HTML5):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (HTML5):    at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (HTML5):    at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (HTML5):    at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (HTML5):    at AutomationTool.Program.Main()
MainFrameActions: Packaging (HTML5): Program.Main: ERROR: Command failed (Result:1): C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe "C:/Program Files/Emscripten/emscripten/1.29.0\tools\file_packager.py" "C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2
MainFrameActions: Packaging (HTML5): .data" --preload . --js-output="C:\Users\Jyro\Documents\Unreal Projects\MyProject2\Binaries\HTML5\MyProject2.data.js". See logfile for details: 'python.txt' 
MainFrameActions: Packaging (HTML5): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (HTML5): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (HTML5): Domain_ProcessExit
MainFrameActions: Packaging (HTML5): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (HTML5): copying UAT log files...
MainFrameActions: Packaging (HTML5): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (HTML5): BUILD FAILED

my html5engine.ini

[Audio]
AudioDeviceModuleName=HTML5Audio

[OnlineSubsystemMcp]
benabled=false

[SystemSettings]
r.setres=800x600

; These following settings have moved to the  inis and can be set from the editor
; These old value are left as reference until all old code paths are removed
;[BuildSettings]
;HeapSize=1024

[HTML5DevicesWindows]
 (64 bit)="C:/Program Files//firefox.exe"
; (32 bit)="C:/Program Files (x86)//firefox.exe"
;Firefox (32 bit)="C:/Program Files (x86)/Mozilla Firefox/firefox.exe"
;Firefox Aurora  (32 bit)="C:/Program Files (x86)/Aurora/firefox.exe"
Chrome="C:/Program Files (x86)//Chrome/Application/chrome.exe"
Chromium="C:/Users/Jyro/AppData/Local/Chromium/Application/chrome.exe"

;all browsers on mac are 64 bit, 64 bit browsers can allocate more than 512MB of memory to around 1.5 GB. 
;[HTML5DevicesMac]
;Safari="/Applications/Safari.app/Contents/MacOS/Safari"
;Firefox="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
;Firefox (Aurora)="/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin"

;[HTML5DevicesLinux]
;Firefox="/usr/bin/firefox"

[HTML5SDKPaths]
;Mac="/path/to/emscripten/sdk"
Emscripten="C:/Program Files/Emscripten/emscripten/1.29.0"
Python="C:/Python27"

What can cause this problem? if have installed both emscripten and Python2.7.9

Hey 77120,

Did you manually add the following four other variables:

  • Variable name: EMSCRIPTEN_ROOT value: C:\Program
    Files\Emscripten\emscripten\1.29.0
    (or wherever emcc.exe is location)

    Variable name: LLVM_ROOT Value: C:\Program
    Files\Emscripten\clang\e1.29.0_64bit
    (or wherever llvm.exe is location)

  • Variable name: NODE_JS value: C:\Program
    Files\Emscripten\node\0.10.17_64bit
    (or wherever node.exe is location)

  • Variable name: PYTHON Value: C:\Program
    Files\Emscripten\python\2.7.5.3_64bit
    (or wherever python.exe is location)

Also, which version of the engine are you on? Have you tried 4.9 Preview 1 by any ? Looking forward to hearing back from you, thanks!

Ah yes 4.9 Preview seems to work, not everything is working yet but that’s probably due to other causes. thanks for your help.

You’re welcome. Please let us know if you run into any further complications. Have a great day!