AttributeError: module has no attribute
Aug 7, 2016
Below is the type of error I was getting when playing around with the basic getting-started Python samples:
AttributeError: module ‘threading’ has no attribute ‘Lock’
The reason for the error was explained on Stackoverflow
Module: A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended.
Do not name your .py file with the same name as an item from the standard library.