This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Embedded installer for Python 3.7.7 missing vcruntime140.dll
Type: Stage: resolved
Components: Build, Windows Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: freakboy3742, miss-islington, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords: patch

Created on 2020-03-11 09:19 by freakboy3742, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 18918 merged steve.dower, 2020-03-11 10:20
PR 18919 merged miss-islington, 2020-03-11 11:18
PR 18920 merged steve.dower, 2020-03-11 11:21
PR 18921 merged steve.dower, 2020-03-11 13:46
PR 18922 merged miss-islington, 2020-03-11 14:12
PR 18923 merged miss-islington, 2020-03-11 14:13
PR 18938 merged steve.dower, 2020-03-11 18:57
PR 18943 merged miss-islington, 2020-03-11 23:24
PR 18962 merged steve.dower, 2020-03-12 16:51
Messages (19)
msg363891 - (view) Author: Russell Keith-Magee (freakboy3742) * Date: 2020-03-11 09:19
The Windows python-3.7.7-embed-amd64.zip installer (released Mar 11 2020) appears to be missing vcruntime140.dll. As a result, running the python.exe or pythonw.exe included in that installer fails with a system error notifying you of the missing DLL.

The 3.7.6 embedded install included this file.
msg363895 - (view) Author: Russell Keith-Magee (freakboy3742) * Date: 2020-03-11 09:28
It appears the 3.7.7RC1 embedded installer was also missing the file.
msg363897 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 09:42
Thanks for the heads-up, I'll take a look.
msg363904 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 11:18
New changeset 2dd41740c97bd77695ddcc590caa7f53e76dc35a by Steve Dower in branch 'master':
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages (GH-18918)
https://github.com/python/cpython/commit/2dd41740c97bd77695ddcc590caa7f53e76dc35a
msg363905 - (view) Author: miss-islington (miss-islington) Date: 2020-03-11 11:38
New changeset d01c5507e5f9bd5072d94f007d29b37f41c6e6b5 by Miss Islington (bot) in branch '3.8':
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages (GH-18918)
https://github.com/python/cpython/commit/d01c5507e5f9bd5072d94f007d29b37f41c6e6b5
msg363907 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-03-11 11:49
AMD64 Windows10 3.8 build failed with "(...)\pyproject.props(221,5): error : vcruntime14*.dll not found (...)":
https://buildbot.python.org/all/#builders/159/builds/190
msg363908 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-03-11 11:50
Same error on AMD64 Windows10 3.x:
https://buildbot.python.org/all/#builders/129/builds/513
msg363913 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 13:11
New changeset eede148296bf3b4578b92ed6a07f2733a0f1c341 by Steve Dower in branch '3.7':
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages (GH-18918)
https://github.com/python/cpython/commit/eede148296bf3b4578b92ed6a07f2733a0f1c341
msg363917 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 13:33
Ah, both of those buildbots are running Build Tools. Apparently there's a different layout for those.

Note that the devguide provides instructions that can't be followed with the Build Tools - you need VS Community (at least): https://devguide.python.org/setup/#windows

Hopefully by tonight I'll have proper work access so I can figure out why Build Tools don't install everything. It may just be that a configuration option was missed, and so the buildbot owners will have to modify their install.
msg363918 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-03-11 13:36
Other examples of failures.

AMD64 Windows8.1 Non-Debug 3.x:
https://buildbot.python.org/all/#/builders/9/builds/473

         D:\buildarea\3.x.ware-win81-release.nondebug\build\PCbuild\pyproject.props(220,5): error : vcruntime14*.dll not found under C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\ [D:\buildarea\3.x.ware-win81-release.nondebug\build\PCbuild\pythoncore.vcxproj]

AMD64 Windows10 3.7:
https://buildbot.python.org/all/#/builders/65/builds/114

         D:\buildarea\3.7.bolen-windows10\build\PCbuild\pyproject.props(214,5): error : vcruntime14*.dll not found under C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\ [D:\buildarea\3.7.bolen-windows10\build\PCbuild\pythoncore.vcxproj]
msg363919 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-03-11 13:37
It seems like many buildbots are broken.

Maybe the "buildbot" label should be tried on PRs changing the Windows build system.

x86 Windows7 3.7:
https://buildbot.python.org/all/#/builders/53/builds/109

  D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\PCbuild\pyproject.props(214,5): error : vcruntime14*.dll not found under D:\Program Files\Microsoft Visual Studio\2017\BuildTools\VC\ [D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\PCbuild\pythoncore.vcxproj]
msg363920 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 13:48
Added a PR to make the failure silent, up until we're building a release package. That way it'll only bother me, and I can make sure that I have the right VS install.
msg363921 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 14:12
New changeset fde44ae6d08d3df79554155b1cf079e73a8fabdd by Steve Dower in branch 'master':
bpo-39930: Convert error to warning for more silent failure (GH-18921)
https://github.com/python/cpython/commit/fde44ae6d08d3df79554155b1cf079e73a8fabdd
msg363922 - (view) Author: miss-islington (miss-islington) Date: 2020-03-11 14:30
New changeset 3136f6f287a56afe87c0fd3e70c15c6e53ae0814 by Miss Islington (bot) in branch '3.7':
bpo-39930: Convert error to warning for more silent failure (GH-18921)
https://github.com/python/cpython/commit/3136f6f287a56afe87c0fd3e70c15c6e53ae0814
msg363923 - (view) Author: miss-islington (miss-islington) Date: 2020-03-11 14:31
New changeset 17571c54e03822685656dc7d118a5ddcf8cb58af by Miss Islington (bot) in branch '3.8':
bpo-39930: Convert error to warning for more silent failure (GH-18921)
https://github.com/python/cpython/commit/17571c54e03822685656dc7d118a5ddcf8cb58af
msg363982 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-11 23:12
Okay, I think I've got an approach that works even on the apparently misconfigured installs on the buildbots (and some user machines, if this is the same underlying issue as issue38597).

I wasn't able to reproduce it though, so I have no idea why they don't have the right redist version property. Hopefully using the last-found directory under Redist continues to make sense into the future.
msg363985 - (view) Author: miss-islington (miss-islington) Date: 2020-03-11 23:24
New changeset 894adc18b4fb7246b762276a50a332c0e4f0e0f0 by Steve Dower in branch 'master':
bpo-39930: Fix MSBuild detection for Build Tools (GH-18938)
https://github.com/python/cpython/commit/894adc18b4fb7246b762276a50a332c0e4f0e0f0
msg364029 - (view) Author: miss-islington (miss-islington) Date: 2020-03-12 16:47
New changeset 35ae5d916c6c2e9f211666a3a97965be3d2977ae by Miss Islington (bot) in branch '3.8':
bpo-39930: Fix MSBuild detection for Build Tools (GH-18938)
https://github.com/python/cpython/commit/35ae5d916c6c2e9f211666a3a97965be3d2977ae
msg364079 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-03-13 11:00
New changeset c05e491a69df3fe0a8be91eeddd330792ada6755 by Steve Dower in branch '3.7':
bpo-39930: Fix MSBuild detection for Build Tools (GH-18938)
https://github.com/python/cpython/commit/c05e491a69df3fe0a8be91eeddd330792ada6755
History
Date User Action Args
2022-04-11 14:59:28adminsetgithub: 84111
2020-03-13 15:55:47steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-03-13 11:00:22steve.dowersetmessages: + msg364079
2020-03-12 16:51:37steve.dowersetpull_requests: + pull_request18311
2020-03-12 16:47:57miss-islingtonsetmessages: + msg364029
2020-03-11 23:24:48miss-islingtonsetpull_requests: + pull_request18297
2020-03-11 23:24:40miss-islingtonsetmessages: + msg363985
2020-03-11 23:12:00steve.dowersetmessages: + msg363982
2020-03-11 18:57:28steve.dowersetpull_requests: + pull_request18291
2020-03-11 14:31:11miss-islingtonsetmessages: + msg363923
2020-03-11 14:30:32miss-islingtonsetmessages: + msg363922
2020-03-11 14:13:10miss-islingtonsetpull_requests: + pull_request18275
2020-03-11 14:12:52miss-islingtonsetpull_requests: + pull_request18274
2020-03-11 14:12:35steve.dowersetmessages: + msg363921
2020-03-11 13:48:07steve.dowersetmessages: + msg363920
2020-03-11 13:46:51steve.dowersetpull_requests: + pull_request18273
2020-03-11 13:37:40vstinnersetmessages: + msg363919
2020-03-11 13:36:13vstinnersetmessages: + msg363918
2020-03-11 13:33:14steve.dowersetmessages: + msg363917
2020-03-11 13:11:15steve.dowersetmessages: + msg363913
2020-03-11 11:50:21vstinnersetmessages: + msg363908
2020-03-11 11:49:19vstinnersetnosy: + vstinner
messages: + msg363907
2020-03-11 11:38:22miss-islingtonsetmessages: + msg363905
2020-03-11 11:21:03steve.dowersetpull_requests: + pull_request18271
2020-03-11 11:18:33steve.dowersetmessages: + msg363904
2020-03-11 11:18:30miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request18270
2020-03-11 10:20:58steve.dowersetkeywords: + patch
stage: patch review
pull_requests: + pull_request18269
2020-03-11 09:42:28steve.dowersetassignee: steve.dower
messages: + msg363897
2020-03-11 09:28:13freakboy3742setmessages: + msg363895
2020-03-11 09:19:34freakboy3742create