Message286083
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. |
|
Date |
User |
Action |
Args |
2017-01-23 13:25:03 | mgerstel | set | recipients:
+ mgerstel |
2017-01-23 13:25:03 | mgerstel | set | messageid: <1485177903.18.0.43823292649.issue29351@psf.upfronthosting.co.za> |
2017-01-23 13:25:03 | mgerstel | link | issue29351 messages |
2017-01-23 13:25:03 | mgerstel | create | |
|