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 Thrameos, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-12-17.11:34:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608204884.22.0.978399922613.issue42529@roundup.psfhosted.org>
In-reply-to
Content
Monkeypatching native types looks suspect as anything, but probably not the cause here. Good luck :)

So I checked some of our code around dynamic loads and it's got to be caused by the loader in our LoadLibrary call, not when we call your module init function. That rules out basically anything you're doing once the module is loaded.

The only thing I can think of that may be missing in the .pyc case is encodings. They *should* be being imported automatically on load, but perhaps not as we're constantly trying to improve startup time. You could try adding "import codecs" and then codecs.lookup some codecs.

You might also try running Python in verbose mode ("python -v ...") and comparing the output between the two cases. That could show up what extra things are being skipped in the failing case.
History
Date User Action Args
2020-12-17 11:34:44steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, Thrameos
2020-12-17 11:34:44steve.dowersetmessageid: <1608204884.22.0.978399922613.issue42529@roundup.psfhosted.org>
2020-12-17 11:34:44steve.dowerlinkissue42529 messages
2020-12-17 11:34:43steve.dowercreate