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__).
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__).