Hello All,
I’ve got a mediocre text101 game I am trying to build to WebGL, but my google-fu is inferior today.
I have been squashing several build-bugs, but this one has me stumped.
Error below:
Failed running python2 "/home/mike/Unity/Hub/Editor/2020.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py" -o "/home/mike/Unity Projects/Text101/Playing With Sprites/Temp/StagingArea/Data/Output/Build/64 roms.data.br.compressed" -i "/home/mike/Unity Projects/Text101/Playing With Sprites/Temp/StagingArea/Data/Output/Build/64 roms.data.br" --comment "UnityWeb Compressed Content (brotli)"
stdout:
stderr:Traceback (most recent call last): File "/home/mike/Unity/Hub/Editor/2020.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py", line 8, in <module> import brotli File "/home/mike/Unity/Hub/Editor/2020.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/dist/Brotli-0.4.0-py2.7-linux-x86_64.egg/brotli.py", line 7, in <module> File "/home/mike/Unity/Hub/Editor/2020.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/dist/Brotli-0.4.0-py2.7-linux-x86_64.egg/brotli.py", line 3, in __bootstrap__ImportError: No module named pkg_resources
I have followed the directions here and given executable permission for the bro.py file and the python folder that contains it. I’ve also double-checked that python2 is installed on my system.
I have also tried using gzip compression and got different errors that I gave up on =P.
I am using Unity 2020.2.1f1 Personal (I did try building a different project). And my OS is Ubuntu 20.04. Any help is appreciated and I’m happy to answer questions to the best of my ability.
Thanks!