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
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
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+.