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

2010-03-14 Thread Cal Who
The below code produces the error as indicated. But, in E:\Python26\Lib\site-packages\ffnet\tools I see: drawffnet.py drawffnet.pyc drawffnet.pyo Is that what it is looking for? I'm not sure what not callable means. Could it be referencing to nn rather than drawffnet? What should I

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

2010-03-14 Thread Stephen Hansen
On Sun, Mar 14, 2010 at 10:20 AM, Cal Who calwhonos...@roadrunner.comwrote: 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

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

2010-03-14 Thread Benjamin Kaplan
On Sun, Mar 14, 2010 at 2:20 PM, Cal Who calwhonos...@roadrunner.comwrote: The below code produces the error as indicated. But, in E:\Python26\Lib\site-packages\ffnet\tools I see: drawffnet.py drawffnet.pyc drawffnet.pyo Is that what it is looking for? I'm not sure what not

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

2010-03-14 Thread MRAB
Cal Who wrote: The below code produces the error as indicated. But, in E:\Python26\Lib\site-packages\ffnet\tools I see: drawffnet.py drawffnet.pyc drawffnet.pyo Is that what it is looking for? I'm not sure what not callable means. Could it be referencing to nn rather than

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

2010-03-14 Thread Terry Reedy
On 3/14/2010 2:20 PM, Cal Who wrote: The below code produces the error as indicated. But, in E:\Python26\Lib\site-packages\ffnet\tools I see: drawffnet.py drawffnet is a module initialized from drawffnet.py (or either of the below) drawffnet.pyc drawffnet.pyo Is that what

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

2010-03-14 Thread Cal Who
- 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

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

2010-03-14 Thread Cal Who
Thanks for the replies. That fixed it but produced another problem. There are two plotting routines below. Either one will work without error. But the combo produces: The exception unknown software exception (0x4015) occurred in the application at location 0x1e05b62a. in a dialog box and the

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

2010-03-14 Thread Cal Who
MRAB pyt...@mrabarnett.plus.com wrote in message news:mailman.745.1268592389.23598.python-l...@python.org... Cal Who wrote: The below code produces the error as indicated. But, in E:\Python26\Lib\site-packages\ffnet\tools I see: drawffnet.py drawffnet.pyc drawffnet.pyo Is

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

2010-03-14 Thread Cal Who
Terry Reedy tjre...@udel.edu wrote in message news:mailman.746.1268592481.23598.python-l...@python.org... On 3/14/2010 2:20 PM, Cal Who wrote: The below code produces the error as indicated. But, in E:\Python26\Lib\site-packages\ffnet\tools I see: drawffnet.py drawffnet is a

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

2010-03-14 Thread Chris Rebert
On Sun, Mar 14, 2010 at 12:58 PM, Cal Who calwhonos...@roadrunner.com wrote: snip Second question: Is it common to group all the from statements at the top of the program or to put them by the relavent code as I have here? The former. Cheers, Chris -- http://blog.rebertia.com --

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

2010-03-14 Thread Cal Who
I cleaned up the code by moving all the imports to the top. There are two plotting routines shown below. Either one will work without error. But when I include both, running produces: The exception unknown software exception (0x4015) occurred in the application at location 0x1e05b62a.

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

2010-03-14 Thread Cal Who
I found it. Had to use figure to create a new figure! Cal Who calwhonos...@roadrunner.com wrote in message news:hnjp6f$l...@news.eternal-september.org... I cleaned up the code by moving all the imports to the top. There are two plotting routines shown below. Either one will work without