Eric Snow added the comment:
This comes back to #14657, which addressed the frozen vs. non-frozen copies of
importlib. It sounds like one useful solution for your situation would be for
_frozen_importlib to be used only long enough for bootstrap purposes. This was
discussed in that other iss
New submission from Jean-Paul Calderone:
Debugging problems involving the frozen importlib._bootstrap is difficult,
because the source for importlib._bootstrap is not available to pdb. The
bootstrap code can be stepped through, but with only function names and line
numbers available, not sour