<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=apt.shansen@gmail.com href="mailto:apt.shansen@gmail.com">Stephen
Hansen</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=CalWho@roadrunner.com
href="mailto:CalWho@roadrunner.com">Cal Who</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=python-list@python.org
href="mailto:python-list@python.org">python-list@python.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, March 14, 2010 2:33
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: What does Error: 'module'
object is not callable Mean?</DIV>
<DIV><BR></DIV>On Sun, Mar 14, 2010 at 10:20 AM, Cal Who <SPAN dir=ltr><<A
href="mailto:CalWhoNOSPAM@roadrunner.com">CalWhoNOSPAM@roadrunner.com</A>></SPAN>
wrote:
<DIV class=gmail_quote>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>from ffnet.tools import drawffnet<BR>import
pylab<BR>drawffnet(nn) #Error: 'module' object is not
callable</BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I'll keep that in mind but in this instance I
simply cut and pasted the message.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote></BLOCKQUOTE></DIV>
<DIV><BR></DIV>That said, "drawffnet" is a module.
<DIV><BR></DIV>
<DIV>You can't call -- put () on the end of -- a module. Its not a function.
Its a file containing code.</DIV>
<DIV><BR></DIV>
<DIV>Perhaps you mean drawffnet.drawffnet()?</DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I copied that code from an example and what you
suggested fixed it. </FONT></DIV>
<DIV><FONT size=2 face=Arial>Thanks.</FONT></DIV>
<DIV><BR></DIV>
<DIV><BR clear=all>
<DIV name="mailplane_signature">--S</DIV></DIV>
<P>
<HR>
<P></P><BR>No virus found in this incoming message.<BR>Checked by AVG -
www.avg.com <BR>Version: 9.0.733 / Virus Database: 271.1.1/2746 - Release
Date: 03/14/10 03:33:00<BR></BLOCKQUOTE></BODY></HTML>