Generator problem: parent class not seen

Arnaud Delobelle arnodel at
Thu Feb 2 00:35:46 CET 2012

On Feb 1, 2012 9:01 PM, "Russell E. Owen" <rowen at> wrote:
> I have an odd and very intermittent problem in Python script.
> Occasionally it fails with this error:
> Traceback (most recent call last):
>  File
> "/Applications/APO/
>", line 884, in run
>  File
> "/Applications/APO/
>", line 1690, in initAll
> TypeError: unbound method initAll() must be called with BaseFocusScript
> instance as first argument (got ScriptClass instance instead)
> self=<ScriptClass object at 0x2066b410>; class hierarchy=[(<class
> 'TUI.Base.BaseFocusScript.ImagerFocusScript'>, (<class
> 'TUI.Base.BaseFocusScript.BaseFocusScript'>,)), [(<class 'ScriptClass'>,
> (<class 'TUI.Base.BaseFocusScript.ImagerFocusScript'>,))]]

Looks like you have loaded the same module twice.  So you have two versions
of your class hierarchies. You can check by printing the ids of your
classes. You will get classes with the same name but different ids.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list