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 mgerstel
Recipients mgerstel
Date 2017-01-23.13:25:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485177903.18.0.43823292649.issue29351@psf.upfronthosting.co.za>
In-reply-to
Content
Running 'import logging' causes at minimum 46 failing 'open' and 12 failing 'stat' calls because python looks for packages inside python/Lib/logging which will never be there, in particular: sys, os, time, cStringIO, traceback, warnings, weakref, collections, codecs, thread, threading, atexit.

The impact of this is limited when python is installed locally, but noticeable when run on a networked file system.


How to reproduce: 
run 
$ strace python -c "import logging;" 2>&1 | grep ENOENT | grep "\/logging\/"


How to fix:
Add 'from __future__ import absolute_import' to all files in the logging directory.
A relevant patch is attached.
History
Date User Action Args
2017-01-23 13:25:03mgerstelsetrecipients: + mgerstel
2017-01-23 13:25:03mgerstelsetmessageid: <1485177903.18.0.43823292649.issue29351@psf.upfronthosting.co.za>
2017-01-23 13:25:03mgerstellinkissue29351 messages
2017-01-23 13:25:03mgerstelcreate