----- Original Message ----- From: Stephen Hansen To: Cal Who Cc: python-list@python.org Sent: Sunday, March 14, 2010 2:33 PM Subject: Re: What does Error: 'module' object is not callable Mean?
On Sun, Mar 14, 2010 at 10:20 AM, Cal Who <calwhonos...@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. I'll keep that in mind but in this instance I simply cut and pasted the message. 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()? I copied that code from an example and what you suggested fixed it. Thanks. --S ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2746 - Release Date: 03/14/10 03:33:00
-- http://mail.python.org/mailman/listinfo/python-list