'module' object has no attribute 'basicConfig'
You Need to Change your script name into something else rather than logging.py I guess. (You are using that name for this script aren't you?
You've got another module called logging
on the Python path; probably a logging.py
file in the same directory. Try checking with print(logging.__file__)
.