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.

Author steve.dower
Recipients Kevin Schlossser, Yurii Leonov, dstufft, eric.araujo, p-ganssle, paul.moore, scoder, steve.dower, tim.golden, xinfazhu, zach.ware
Date 2020-02-27.13:16:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582809395.68.0.375355504952.issue38597@roundup.psfhosted.org>
In-reply-to
Content
Thanks, it does seem like it's finding the correct MSVC, but is not finding the redistributable DLL:

> cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT ...

The "/MT" means to statically the CRT, and then we use link settings later to dynamically link the part installed in the OS (see https://stevedower.id.au/blog/building-for-python-3-5-part-two for more details).

The problem seems to be that this glob in distutils can't find the path listed below it:

"2019\BuildTools\VC\redist\MSVC\**\x64\Microsoft.VC14*.CRT\vcruntime140.dll"

"2019\BuildTools\VC\Redist\MSVC\14.24.28127\x64\Microsoft.VC142.CRT\vcruntime140.dll"

We swallow a lot of errors while doing this glob, so I assume there's something about your install that's affecting it (maybe related to it being BuildTools rather than Community or higher?)

Could you try running this code and see what result/error you get:

import glob
glob.glob(r"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\redist\MSVC\**\x64\Microsoft.VC14*.CRT\vcruntime140.dll", recursive=True)
History
Date User Action Args
2020-02-27 13:16:35steve.dowersetrecipients: + steve.dower, paul.moore, scoder, tim.golden, eric.araujo, zach.ware, dstufft, p-ganssle, Kevin Schlossser, Yurii Leonov, xinfazhu
2020-02-27 13:16:35steve.dowersetmessageid: <1582809395.68.0.375355504952.issue38597@roundup.psfhosted.org>
2020-02-27 13:16:35steve.dowerlinkissue38597 messages
2020-02-27 13:16:35steve.dowercreate