[Tutor] module object is not callable
Jeff Shannon
jeff at ccvcorp.com
Thu Sep 18 19:01:19 EDT 2003
paul taney wrote:
> When I apply this exact structure to my
> project space I get the now-dreaded error:
>
> TypeError: 'module' object is not callable
I can't point to exactly what your error is, because you've stripped
off the rest of the traceback stack, but I can tell you what that
error means and you can probably figure out the rest for yourself.
You're trying to call a module object as if it were a function, and
that's not working. Probably you're importing a module that has the
same name as a function or class; when you think you're calling that
function (or instantiating that class), Python thinks that you're
referring to the imported module instead. If you carefully check
through your code (especially the code indicated by the traceback) and
remove any name conflicts, you should be good.
Jeff Shannon
Technician/Programmer
Credit International
More information about the Tutor
mailing list