Python Forum
What is error: "TypeError: 'module' object is not callable"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is error: "TypeError: 'module' object is not callable"
#4
I'll explain what that error means.

When you call something that has () in it then it's a callable.
Whenever you call something ,it is initialized with __call__() method that is built in.
Your getting that error since the object you are calling doesn't have a built in __call__() method defined.
Reply


Messages In This Thread
RE: What is error: "TypeError: 'module' object is not callable" - by h1dd3n - May-12-2020, 08:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  'str' object is not callable peterkl 10 12,041 Oct-17-2016, 06:45 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020