About 190,000 results
Open links in new tab
  1. python - TypeError: 'module' object is not callable - Stack Overflow

    A module object is the type of thing you get when you import a module. What you were trying to do is to call a class object within the module object that happens to have the same name as …

  2. Python "'module' object is not callable" - Stack Overflow

    May 13, 2013 · File "mratio.py", line 24, in <module> f = figure( figsize=(7,7) ) TypeError: 'module' object is not callable I have run a similar script before, and I think I've imported all the relevant …

  3. Why am I getting 'module' object is not callable in python 3?

    Aug 6, 2013 · If you just do import app in main.py then app will refer to the module, and app.app will refer to the class. Here are a couple of options: Here are a couple of options: Leave your …

  4. python - Why do I get a TypeError: 'module' object is not callable …

    Sep 25, 2011 · Name your file something else. In Python a script is a module, whose name is determined by the filename. So when you start out your file random.py with import random you …

  5. TypeError: 'module' object is not callable - using datetime

    datetime is the module which has no method now(). You probably wanted. nowTime = datetime.datetime.now() where the first datetime is the module, and the second one is the …

  6. python - TypeError: 'module' object is not callable ( when …

    Python Selenium 'module' object is not callable in python selenium script. 0.

  7. python - Callable modules - Stack Overflow

    Using Python version 3.10.8, formatting my code as below allowed me to: Make my module callable (thanks Alex) Keep all properties of the module accessible (e.g. methods) (thanks …

  8. Python module' object is not callable - Stack Overflow

    Dec 21, 2015 · In Python, you need to distinguish between module names and class names. In your case, you have a module named Part and (presumable) a class named Part within that …

  9. python - TypeError: 'module' object is not callable - Call to ...

    Mar 13, 2021 · Python: 'module' object is not callable. 10. TypeError: 'module' object is not callable for python object ...

  10. Python: 'module' object is not callable - Stack Overflow

    May 7, 2025 · Python: 'module' object is not callable. Ask Question Asked 12 years, 8 months ago. Modified 12 years, 8 ...

Refresh