With Python 2.4.3 installed via the .dmg on to MacOS, when the python
modules are compiled, they are compiled by specifying the path in such a
way that it contains a double slash. This causes the logging module to not
be able to figure out which module is the correct one to replace for %
(filename)s.
The following is the crux of the issue:
>>> logging.debug.func_code.co_filename
'/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/
logging/__init__.py'
>>> logging.__file__
'/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
logging/__init__.pyc'
>>>
These two strings need to match for %(filename)s to work.
I deleted /Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/logging/__init__.pyc and recompiled it by just importing
logging. That fixed the problem.
I assume the fix will be in the installer somewhere.
|