Search Issue Tracker
Fixed in 2019.1.X
Votes
0
Found in
2017.1.0f3
Issue ID
938826
Regression
No
WebGL build fails, conflicting with existing Emscripten&Python installation
Python binary path added to Environment Variable Path on Windows causes conflict with WebGL Build Tools
1. What happened
When attempting to make WebGL build i got the following error:
File "C:\tools\python\lib\site.py", line 176
file=sys.stderr)
^
SyntaxError: invalid syntax
2. How we can reproduce it using the example you attached
a. Set path to a custom Python installation, such that python.exe is in the path and accessible from e.g. the command line (edit system environment variables > system variables > Path > add e.g. ;c:\tools\python;)
b. Launch Unity Editor after the change to the path variable.
c. Make a WebGL build
Comments (1)
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
- Build for iOS with UnityAds fails with linker failures when performing a CocoaPods build
- NavMeshManager.LoadData takes a long time and causes performance spikes when enabling a NavMeshSurface with already instantiated NavMeshLinks
- Shadows created by real-time Spotlights are rendered at a very low resolution on terrain when HDRPAsset Lit Shader Mode is set to Forward or Both
- “STP” in Project window > Advanced Upscalers by Priority menu list is shown as available to add when it is already added to the list
- Rename fails with an error “Canceling DisplayDialog” when renaming a Mipmap Limit Group in Project Settings > Quality after adding a new group
snehalh
Jul 07, 2021 11:51
Removed use of Python multiprocessing library because of stability issues. ... The function dynCall is not available in -s MINIMAL_RUNTIME=1 builds. ... with conflicting names that the linker distinguishes by appending a random suffix. ... elements in html5.h event handler callbacks and WebGL context creation.
Visit https://www.reddit.com/r/Unity3D/comments/ofha10/can_i_use_python_in_unity/