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 kuiper
Recipients kuiper, r.david.murray
Date 2012-10-31.00:44:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <50907486.30800@jpl.nasa.gov>
In-reply-to <1351643378.18.0.563956014627.issue16368@psf.upfronthosting.co.za>
Content
On 10/30/2012 05:29 PM, R. David Murray wrote:
> R. David Murray added the comment:
>
> Do none of those submodules import logging?
>
> It is unlikely that this is a Python bug.  Somewhere _fmt is getting set to an integer.  The way to prove this one way or another is to start deleting things until you find the code that is triggering the issue.
>    
After tortuous digging I found a subsubmodule that does this:

import logging
logging_options = [logging.DEBUG,
                    logging.INFO,
                    logging.WARNING,
                    logging.ERROR,
                    logging.CRITICAL]
logging_level = logging_options[2]
logging.basicConfig(format=logging_level)

Commenting out that last line fixed the problem.  I've now cleared out 
all the code shown here. Thanks for the tip.

Tom
> ----------
> nosy: +r.david.murray
> resolution:  ->  invalid
> stage:  ->  committed/rejected
> status: open ->  pending
>
> _______________________________________
> Python tracker<report@bugs.python.org>
> <http://bugs.python.org/issue16368>
> _______________________________________
>
History
Date User Action Args
2012-10-31 00:44:59kuipersetrecipients: + kuiper, r.david.murray
2012-10-31 00:44:59kuiperlinkissue16368 messages
2012-10-31 00:44:59kuipercreate