What does Error: 'module' object is not callable Mean?

Stephen Hansen apt.shansen at gmail.com
Sun Mar 14 14:33:34 EDT 2010


On Sun, Mar 14, 2010 at 10:20 AM, Cal Who <CalWhoNOSPAM at roadrunner.com>wrote:

> from ffnet.tools import drawffnet
> import pylab
> drawffnet(nn)   #Error: 'module' object is not callable


First and foremost, please please please: don't describe or paraphrase
tracebacks when asking for help, show them. The whole thing. It doesn't
-really- matter here, but it still applies.

>
That said, "drawffnet" is a module.

You can't call -- put () on the end of -- a module. Its not a function. Its
a file containing code.

Perhaps you mean drawffnet.drawffnet()?


--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100314/bbea75ac/attachment.html>


More information about the Python-list mailing list