Re: TypeError: 'module object is not callable'

2007-09-03 Thread christophertidy
> > The others spottet the error I missed. But I can offer something else: > > http://dirtsimple.org/2004/12/python-is-not-java.html > > It's a worthy read for someone coming from Java, needing time to adjust. > > Diez- Hide quoted text - > > - Show quoted text - That deffinately was a useful rea

Re: TypeError: 'module object is not callable'

2007-09-03 Thread christophertidy
Thank you for your help that seems to have done the trick. You are correct Diez B. Roggisch that I come from a java background! I have a new tiny problem I can't understand either. Withing Step.py I have the following method def isCompleted(self): "Check whether data step has been processed"

TypeError: 'module object is not callable'

2007-09-03 Thread christophertidy
Hi I am new to Python and have recieved this error message when trying to instantiate an object from a class from another file within the same directory and wondered what I have done wrong. I have a Step.py class: class Step(object) def __init__(self, sName): "Initialise a new Ste