Red Cricket Red Cricket - 1 year ago 325
Python Question

ImportError: No module named log

Isn't log a built in package in python?

# /usr/bin/python
Python 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import log as logging
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named log

Do I need to install
with pip ?

Answer Source

logging is a built-in package, not log:

import logging as log
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download