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

Web Platform

-

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

  1. 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+.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.