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 bughunter2
Recipients bughunter2, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-11-14.11:43:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605354224.54.0.500635330388.issue42339@roundup.psfhosted.org>
In-reply-to
Content
Problem still occurs with newer KB3118401 installed (instead of KB2999226).

But good news:

Installing update KB3063858 (or the older KB2533623) resolves the issue.

That update adds the new kernel32.dll functions SetDefaultDllDirectories, AddDllDirectory, and RemoveDllDirectory.

That explains why the issue didn't occur with (embedded) Python 3.7, since Python started using those functions since 3.8 if I recall correctly.

So, this issue can be considered solved. But...

Thinking along here, maybe there's a list of updates (or FAQ) to which you want to add KB3063858?

(Note of course it only affects Windows 7 users that use the embedded Python 3.8, and it doesn't affect 3.7 users and 3.9 doesn't support Windows 7.)

Or, maybe even add a bit of logic that detects when Python fails to load one of the _xxxx.pyd PE images (like _socket.pyd) and show a simple warning that tells users to check said FAQ? Or maybe that's asking too much.

Just some thoughts.
History
Date User Action Args
2020-11-14 11:43:44bughunter2setrecipients: + bughunter2, paul.moore, tim.golden, zach.ware, steve.dower
2020-11-14 11:43:44bughunter2setmessageid: <1605354224.54.0.500635330388.issue42339@roundup.psfhosted.org>
2020-11-14 11:43:44bughunter2linkissue42339 messages
2020-11-14 11:43:44bughunter2create