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 kristjan.jonsson
Recipients kristjan.jonsson
Date 2012-07-16.10:28:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342434495.02.0.347473954517.issue15365@psf.upfronthosting.co.za>
In-reply-to
Content
Reporting an error early in the python startup, before importing is properly initialized, can be tricky.
For example, here:

if (PyImport_ImportFrozenModule("_frozen_importlib") <= 0) {
  Py_FatalError("Py_Initialize: can't import _frozen_importlib");

The problem is, that _Py_DisplaySourceLine will set an exception because it cannot import the io module.  And this will terminate the traceback output.

The attached patch aims to rectify it by ignoring errors from this api in traceback.c
History
Date User Action Args
2012-07-16 10:28:15kristjan.jonssonsetrecipients: + kristjan.jonsson
2012-07-16 10:28:15kristjan.jonssonsetmessageid: <1342434495.02.0.347473954517.issue15365@psf.upfronthosting.co.za>
2012-07-16 10:28:14kristjan.jonssonlinkissue15365 messages
2012-07-16 10:28:13kristjan.jonssoncreate