Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Build Wasm failed - Tiny3D

Discussion in 'Project Tiny' started by mike_unity124, Nov 10, 2020.

  1. mike_unity124

    mike_unity124

    Joined:
    Nov 21, 2018
    Posts:
    1
    Hi,
    I'm able to build Win-Dotnet successfully. But for Wasm Web Build I get this error for Tiny3D and other sample projects:


    Code (CSharp):
    1. Build Wasm failed after 1.97s.
    2. Traceback (most recent call last):
    3.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    4.     import emscripten
    5.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    6.     from collections import OrderedDict
    7. ImportError: cannot import name OrderedDict
    8. [ 79/492    0s] C_WebGL_wasm artifacts/lib_unity_lowlevel/tiny3d-wasm/83s5/BurstInit.o
    9. ##### CommandLine
    10. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++11 -Werror -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DUNITY_WEBGL=1 -DBINDGEM_DOTS=1 -DENABLE_UNITY_COLLECTIONS_CHECKS -DENABLE_PROFILER -DBUILD_UNITY_LOWLEVEL=1 -DBASELIB_USE_DYNAMICLIBRARY=1 -DNDEBUG -I"." -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/bee~/cppsupport/include" -I"artifacts/Stevedore/nativejobs-all-public_99a9/Include" -I"artifacts/Stevedore/nativejobs-WebGL-public_0d02/Platforms/WebGL/Include" -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/include" -o "artifacts/lib_unity_lowlevel/tiny3d-wasm/83s5/BurstInit.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/BurstInit.cpp"
    11. ##### Custom Environment Variables
    12. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    13. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    14. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    15. ##### ExitCode
    16. 1
    17. ##### Output
    18. Traceback (most recent call last):
    19.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    20.     import emscripten
    21.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    22.     from collections import OrderedDict
    23. ImportError: cannot import name OrderedDict
    24. [ 80/492    0s] C_WebGL_wasm artifacts/bimg/tiny3d-wasm/yhk5/partition.o
    25. ##### CommandLine
    26. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++14 -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D__STDC_FORMAT_MACROS -DBIMG_DECODE_ENABLE=0 -DNDEBUG -I"." -I"artifacts/Stevedore/bgfx-source_04d5/bimg/include" -I"artifacts/Stevedore/bgfx-source_04d5/bimg/3rdparty/astc-codec/include" -I"artifacts/Stevedore/bgfx-source_04d5/bimg/3rdparty/astc-codec" -I"artifacts/Stevedore/bgfx-source_04d5/bx/include" -I"artifacts/Stevedore/bgfx-source_04d5/bx/3rdparty" -o "artifacts/bimg/tiny3d-wasm/yhk5/partition.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/DotsRuntimeBuild/artifacts/Stevedore/bgfx-source_04d5/bimg/3rdparty/astc-codec/src/decoder/partition.cc"
    27. ##### Custom Environment Variables
    28. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    29. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    30. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    31. ##### ExitCode
    32. 1
    33. ##### Output
    34. Traceback (most recent call last):
    35.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    36.     import emscripten
    37.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    38.     from collections import OrderedDict
    39. ImportError: cannot import name OrderedDict
    40. [ 81/492    0s] C_WebGL_wasm artifacts/lib_unity_lowlevel/tiny3d-wasm/83s5/guard.o
    41. ##### CommandLine
    42. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++11 -Werror -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DUNITY_WEBGL=1 -DBINDGEM_DOTS=1 -DENABLE_UNITY_COLLECTIONS_CHECKS -DENABLE_PROFILER -DBUILD_UNITY_LOWLEVEL=1 -DBASELIB_USE_DYNAMICLIBRARY=1 -DNDEBUG -I"." -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/bee~/cppsupport/include" -I"artifacts/Stevedore/nativejobs-all-public_99a9/Include" -I"artifacts/Stevedore/nativejobs-WebGL-public_0d02/Platforms/WebGL/Include" -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/include" -o "artifacts/lib_unity_lowlevel/tiny3d-wasm/83s5/guard.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/guard.cpp"
    43. ##### Custom Environment Variables
    44. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    45. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    46. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    47. ##### ExitCode
    48. 1
    49. ##### Output
    50. Traceback (most recent call last):
    51.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    52.     import emscripten
    53.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    54.     from collections import OrderedDict
    55. ImportError: cannot import name OrderedDict
    56. [ 82/492    0s] C_WebGL_wasm artifacts/lib_unity_lowlevel/tiny3d-wasm/83s5/allocators.o
    57. ##### CommandLine
    58. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++11 -Werror -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DUNITY_WEBGL=1 -DBINDGEM_DOTS=1 -DENABLE_UNITY_COLLECTIONS_CHECKS -DENABLE_PROFILER -DBUILD_UNITY_LOWLEVEL=1 -DBASELIB_USE_DYNAMICLIBRARY=1 -DNDEBUG -I"." -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/bee~/cppsupport/include" -I"artifacts/Stevedore/nativejobs-all-public_99a9/Include" -I"artifacts/Stevedore/nativejobs-WebGL-public_0d02/Platforms/WebGL/Include" -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/include" -o "artifacts/lib_unity_lowlevel/tiny3d-wasm/83s5/allocators.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/allocators.cpp"
    59. ##### Custom Environment Variables
    60. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    61. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    62. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    63. ##### ExitCode
    64. 1
    65. ##### Output
    66. Traceback (most recent call last):
    67.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    68.     import emscripten
    69.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    70.     from collections import OrderedDict
    71. ImportError: cannot import name OrderedDict
    72. [ 83/492    0s] C_WebGL_wasm artifacts/lib_unity_tiny_burst/tiny3d-wasm/4ln5/dummy.o
    73. ##### CommandLine
    74. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++11 -Werror -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DUNITY_WEBGL=1 -DBINDGEM_DOTS=1 -DENABLE_UNITY_COLLECTIONS_CHECKS -DENABLE_PROFILER -DBUILD_UNITY_TINY_BURST=1 -DBASELIB_USE_DYNAMICLIBRARY=1 -DNDEBUG -I"." -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/bee~/cppsupport/include" -I"artifacts/Stevedore/nativejobs-all-public_99a9/Include" -I"artifacts/Stevedore/nativejobs-WebGL-public_0d02/Platforms/WebGL/Include" -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/include" -o "artifacts/lib_unity_tiny_burst/tiny3d-wasm/4ln5/dummy.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/bee~/cppsupport/dummy.cpp"
    75. ##### Custom Environment Variables
    76. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    77. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    78. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    79. ##### ExitCode
    80. 1
    81. ##### Output
    82. Traceback (most recent call last):
    83.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    84.     import emscripten
    85.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    86.     from collections import OrderedDict
    87. ImportError: cannot import name OrderedDict
    88. [ 84/492    0s] C_WebGL_wasm artifacts/bimg/tiny3d-wasm/yhk5/endpoint_codec.o
    89. ##### CommandLine
    90. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++14 -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D__STDC_FORMAT_MACROS -DBIMG_DECODE_ENABLE=0 -DNDEBUG -I"." -I"artifacts/Stevedore/bgfx-source_04d5/bimg/include" -I"artifacts/Stevedore/bgfx-source_04d5/bimg/3rdparty/astc-codec/include" -I"artifacts/Stevedore/bgfx-source_04d5/bimg/3rdparty/astc-codec" -I"artifacts/Stevedore/bgfx-source_04d5/bx/include" -I"artifacts/Stevedore/bgfx-source_04d5/bx/3rdparty" -o "artifacts/bimg/tiny3d-wasm/yhk5/endpoint_codec.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/DotsRuntimeBuild/artifacts/Stevedore/bgfx-source_04d5/bimg/3rdparty/astc-codec/src/decoder/endpoint_codec.cc"
    91. ##### Custom Environment Variables
    92. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    93. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    94. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    95. ##### ExitCode
    96. 1
    97. ##### Output
    98. Traceback (most recent call last):
    99.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    100.     import emscripten
    101.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    102.     from collections import OrderedDict
    103. ImportError: cannot import name OrderedDict
    104. [ 85/492    0s] C_WebGL_wasm artifacts/lib_unity_tiny_burst/tiny3d-wasm/qnsi/BurstNativeSupport.o
    105. ##### CommandLine
    106. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-statics -s USE_PTHREADS=0 -std=c++11 -Werror -fvisibility=hidden -fno-exceptions -fno-rtti -O2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DUNITY_WEBGL=1 -DBINDGEM_DOTS=1 -DENABLE_UNITY_COLLECTIONS_CHECKS -DENABLE_PROFILER -DBUILD_UNITY_TINY_BURST=1 -DBASELIB_USE_DYNAMICLIBRARY=1 -DNDEBUG -I"." -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/bee~/cppsupport/include" -I"artifacts/Stevedore/nativejobs-all-public_99a9/Include" -I"artifacts/Stevedore/nativejobs-WebGL-public_0d02/Platforms/WebGL/Include" -I"C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.LowLevel/cpp~/include" -o "artifacts/lib_unity_tiny_burst/tiny3d-wasm/qnsi/BurstNativeSupport.o" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "C:/ProjectTinySamples-master/Tiny3D/Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/LowLevelSupport~/Unity.Tiny.Burst/cpp~/BurstNativeSupport.cpp"
    107. ##### Custom Environment Variables
    108. EM_CACHE=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-cache-1.39.17
    109. EM_CONFIG=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\emscripten-config-1.39.17.py
    110. EMSDK_PYTHON=C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe
    111. ##### ExitCode
    112. 1
    113. ##### Output
    114. Traceback (most recent call last):
    115.   File "artifacts\Stevedore\emscripten-win\emcc.py", line 42, in <module>
    116.     import emscripten
    117.   File "C:\ProjectTinySamples-master\Tiny3D\Library\DotsRuntimeBuild\artifacts\Stevedore\emscripten-win\emscripten.py", line 22, in <module>
    118.     from collections import OrderedDict
    119. ImportError: cannot import name OrderedDict
    120. [ 86/492    0s] C_WebGL_wasm artifacts/lib_unity_tiny_input_web/tiny3d-wasm/4ln5/dummy.o
    121. ##### CommandLine
    122. "artifacts\Stevedore\winpython2-x64_740e\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64\python.exe" "artifacts\Stevedore\emscripten-win\emcc.py" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-exceptions -fno-threadsafe-sta<message truncated>


    I have:
    Project Tiny 0.31
    Unity 2020.1.10f1
    Windows 10
    Visual Studio 2019
    Desktop development with C++
    .NET desktop development
    Windows 10 SDK
    I have enough storage
    I removed Library\DotsRuntimeBuild\settings
     
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Seems that you are missing collections.py and .pyc files
    They should be present in there to work
    Try removing the whole Library\DotsRuntimeBuild folder
    also, remove C:\Users\<your username>\AppData\Local\Stevedore
    and try building again
     
    tonialatalo likes this.