MacPython installs the logging module in:
/Library/Frameworks/Python.framework/Versions/2.4/lib/logging/
There's an __init__.py there and everything, but this directory is not
in sys.path. I add it to sys.path as follows:
/Library/Frameworks/Python.framework/Versions/2.4/lib/logging>>sys.path.append(os.path.join(sys.prefix, 'lib', 'logging'))
print sys.path[-1]
But even so, the logging module is not found:
Traceback (most recent call last):>>import logging
File "<pyshell#7>", line 1, in -toplevel-
import logging
ImportError: No module named logging
Now, I've been away from Python for some years, so I'm pretty rusty.
Maybe there's something obvious I'm missing. Any advice on how to
proceed would be welcome.
Tod Olson <to*@uchicago.edu>
Programmer/Analyst
University of Chicago Library