Question: typeerror 'module' object is not callable error in python?
Answer: This error statement TypeError: 'module' object is not callable is raised as you are being confused about the Class name and Module name. The problem is in the import line. You are importing a module, not a class. ... So when you set an instance attribute, it shadows the class attribute by the same name.