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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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+.