RESOLVED FIXED 221109
Pass full environment when auto installing a Python module on Windows
https://bugs.webkit.org/show_bug.cgi?id=221109
Summary Pass full environment when auto installing a Python module on Windows
Fujii Hironori
Reported 2021-01-28 16:33:09 PST
Win32 Python3 fails installing markupsafe-2.0.0: error: [WinError 3] The system cannot find the path specified: 'Microsoft.NET\\Framework64' Downloading markupsafe-2.0.0... Installing markupsafe-2.0.0... running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\markupsafe copying src\markupsafe\_native.py -> build\lib.win-amd64-3.9\markupsafe copying src\markupsafe\__init__.py -> build\lib.win-amd64-3.9\markupsafe running egg_info writing src\MarkupSafe.egg-info\PKG-INFO writing dependency_links to src\MarkupSafe.egg-info\dependency_links.txt writing top-level names to src\MarkupSafe.egg-info\top_level.txt reading manifest file 'src\MarkupSafe.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs\_build' warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file 'src\MarkupSafe.egg-info\SOURCES.txt' copying src\markupsafe\_speedups.c -> build\lib.win-amd64-3.9\markupsafe running build_ext building 'markupsafe._speedups' extension error: [WinError 3] The system cannot find the path specified: 'Microsoft.NET\\Framework64' Failed to install markupsafe-2.0.0! Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 919, in _find_spec AttributeError: type object 'AutoInstall' has no attribute 'find_spec' WinCairo bots are using Win32 Python instead of Cygwin Python.
Attachments
WIP patch (1.17 KB, patch)
2021-01-28 17:17 PST, Fujii Hironori
ews-feeder: commit-queue-
Patch (1.97 KB, patch)
2021-02-23 12:00 PST, Don Olmstead
no flags
Fujii Hironori
Comment 1 2021-01-28 17:06:28 PST
Fujii Hironori
Comment 2 2021-01-28 17:17:05 PST
Created attachment 418683 [details] WIP patch
Jonathan Bedard
Comment 3 2021-01-29 09:03:58 PST
Talking with Don on Slack, I think markupsafe should be 1.1.1, I messed up version locking 2.0.0, which is an alpha version.
Don Olmstead
Comment 4 2021-01-29 14:32:48 PST
(In reply to Jonathan Bedard from comment #3) > Talking with Don on Slack, I think markupsafe should be 1.1.1, I messed up > version locking 2.0.0, which is an alpha version. Python 3.9 seems to want to download the 2.0.0 version, probably due to compatibility. This patch though does clear it up and it does install successfully.
Radar WebKit Bug Importer
Comment 5 2021-02-04 16:34:12 PST
Don Olmstead
Comment 6 2021-02-23 12:00:57 PST
EWS
Comment 7 2021-02-23 13:36:12 PST
Committed r273331: <https://commits.webkit.org/r273331> All reviewed patches have been landed. Closing bug and clearing flags on attachment 421337 [details].
Note You need to log in before you can comment on or make changes to this bug.