WebGL Python Error
I'm using the 2019.1.0-webgl image with Unity Pro. I'm able to activate my license but when I try to build my project using:
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24'
/opt/Unity/Editor/Unity
-quit
-batchmode
-logFile
/root/project/build.log
-projectPath
/root/project
-executeMethod
WebGLBuilder.build
I get a weird Python error near the end of the build. I've been trying to fix this for days with no luck. It works on Windows. Any ideas?
Full log: build.log
Arguments: "/opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py" -o "/root/project/Temp/StagingArea/Data/Output/Build/WebGL.data.unityweb.compressed" -i "/root/project/Temp/StagingArea/Data/Output/Build/WebGL.data.unityweb" --comment "UnityWeb Compressed Content (brotli)"
index: -1
Failed running python "/opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py" -o "/root/project/Temp/StagingArea/Data/Output/Build/WebGL.data.unityweb.compressed" -i "/root/project/Temp/StagingArea/Data/Output/Build/WebGL.data.unityweb" --comment "UnityWeb Compressed Content (brotli)"
stdout:
stderr:Traceback (most recent call last): File "/opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py", line 8, in <module> import brotli File "build/bdist.macosx-10.10-x86_64/egg/brotli.py", line 7, in <module> File "build/bdist.macosx-10.10-x86_64/egg/brotli.py", line 6, in __bootstrap__ImportError: /root/.cache/Python-Eggs/Brotli-0.4.0-py2.7-macosx-10.10-x86_64.egg-tmp/brotli.so: invalid ELF header
Edited by Gabriel Le Breton