Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Python 3.9 error with WebGL build

Discussion in 'General Discussion' started by Ticklemextreme, Mar 23, 2022.

  1. Ticklemextreme

    Ticklemextreme

    Joined:
    Oct 30, 2014
    Posts:
    1
    Hello,

    I have found a interesting bug with python 3.9 and building WebGL projects in Unity (2020.3.xx). The problem I had was during the IL2cpp compiling portion of the build-out and it would throw an error in C:\PATH_TO_PYTHON_3.9 \setup.py I do not have the error logs anymore but every build would stop at the "IL2cpp" portion.

    The fix I had to do was take off the %PYTHONHOME% system environment variable and the build out would succeed. Also note I have tried this with previous versions of Unity and with empty projects so it could not be possible for plug ins to interfere. Is this a known issue in the Unity Editor? Surely there has to be another fix then deleting environment variables.
     
  2. alecheld53

    alecheld53

    Joined:
    Mar 28, 2022
    Posts:
    2
    this is my first time hearing of this error in Python, did you fix it completely?
     
    Last edited: Jan 3, 2023
  3. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,337
    This is something that can happen on a windows machine when you're trying to launch python from venv. I've encountered something similar long time ago, and basically back then the conclusion was that venvs aren't properly implemented and that's why docker is popular. Things could've changed since.
     
    Joe-Censored likes this.