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
- Domain Reload loading popup is dark when Editor Theme is set to "Light"
- Scene Views breaks and errors are spammed in the Console when the Game view is shrunk vertically to the minimum, and the Aspect Ratio is 16:9 or 16:10
- Slider Fill Area disappears after undoing “Set Native Size” change
- Crash with multiple stack traces when playing video on a render texture with low-end graphics devices
- Circle handle of the Game view scale slider bar disappears when the scale is set to 1x
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+.