Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.4
2019.4
2020.3
2021.1
2021.1.6f1
Issue ID
1340038
Regression
No
Build of WebGL project fails if Python 3 is installed
Steps to reproduce:
1. Install Python 3 (https://www.python.org/downloads/)
2. After installation, open Environment Variables from the Windows Search
3. Under System Variables, click on New and add a new variable, Variable name: "PYTHONHOME", Variable value: "C:\Program Files\Python39\" (Python root installation)
4. Repeat step 3 and add "PYTHONPATH", "C:\Program Files\Python39\"
5. Restart computer
6. Add the IL2CCP and WebGL modules to the Editor
7. Download and open "webapp_python4.zip"
8. Open Assets/Scenes/SampleScene.unity
9. Open Build Settings (File > Build Settings)
9. Switch Platform to WebGL
10. Click on Add Open Scenes
11. Build And Run
Expected result: The Build completes successfully
Actual result: The Build fails with the following error:
Exception: Unity.IL2CPP.Building.BuilderFailedException: File "C:\Program Files\Python39\\lib\site.py", line 178
file=sys.stderr)
^
SyntaxError: invalid syntax
Reproducible with: 2018.4.36f1, 2019.4.28f1, 2020.3.13f1, 2021.1.14f1
Not reproducible with: 2021.2.0b2
Note:
Issue not reproducible without the IL2CPP module
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2022.1.X):
The team is unable to fix this issue at this time. Please use the work around of either uninstalling the IL2CPP module, or using a newer version of Unity 2021.2+.