Search Unity

WOW. Unity Linux is improving FAST.

Discussion in 'Linux' started by dginovker, Oct 27, 2020.

  1. dginovker

    dginovker

    Joined:
    Sep 25, 2020
    Posts:
    8
    I was trying to do a WebGL build on Arch Linux (I know.. not supported, but why not?), which first required some weird libraries. Did a bit of Googling and I got it running.

    Then I hit this:


    Failed running python "/home/dr_bracket/Unity/Hub/Editor/2020.2.0b8/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py" -o "/home/dr_bracket/Manjijima/Temp/StagingArea/Data/Output/Build/Build.data.br.compressed" -i "/home/dr_bracket/Manjijima/Temp/StagingArea/Data/Output/Build/Build.data.br" --comment "UnityWeb Compressed Content (brotli)"

    stdout:
    stderr:Traceback (most recent call last): File "/home/dr_bracket/Unity/Hub/Editor/2020.2.0b8/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py", line 8, in <module> import brotli File "<frozen zipimport>", line 259, in load_module File "/home/dr_bracket/Unity/Hub/Editor/2020.2.0b8/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/dr_bracket/Unity/Hub/Editor/2020.2.0b8/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/dist/Brotli-0.4.0-py2.7-linux-x86_64.egg/brotli.py", line 6, in __bootstrap__ File "/usr/lib/python3.8/imp.py", line 342, in load_dynamic return _load(spec)ImportError: /home/dr_bracket/.cache/Python-Eggs/Brotli-0.4.0-py2.7-linux-x86_64.egg-tmp/brotli.so: undefined symbol: Py_InitModule4_64
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)


    This is in the latest beta. Looks like the error undefined symbol: Py_InitModule4_64 is a matter of where Ubuntu puts stuff vs where other distros put stuff, which really sucks.

    I did some searching around and found something about passing a different linker, tried a few hacks, nothing. Then I upgraded to the latest alpha - 2021.1.0a2. Loaded up the project, let my CPU choke on all my tabs, hit build and went for a shower. I figured what do I have to lose, right?

    Came back to this:


    https://i.imgur.com/EczWXP7.png

    I'm literally shocked. I don't think switching to an alpha version has ever worked in my favor before.