NameError: name 'os' is not defined code example Example: AttributeError: module 'os' has no attribute 'startfile' AttributeError: module 'os' has no attribute 'startfile'