Hello,
I have this problem when subclassing classes where I get this error:
Traceback (most recent call last):
File "<Script Block >", line 344, in BBExportElement Granules_Execut e
from bb_pipeline import bb_exportelemen tgranules
File "\\Linuxserver\ ANIMATION\XSI\W ORKGROUP_ANIMAT ION\Data\Script s\bb_pipeline\b b_exportelement granules.py",
line 101, in ?
oWriter = bbExportGranule s()
File "\\Linuxserver\ ANIMATION\XSI\W ORKGROUP_ANIMAT ION\Data\Script s\bb_pipeline\b b_granules\bb_g ranuleexport\bb _granuleexport_ element.py",
line 73, in __init__
bbExportMeta.__ init__( self )
TypeError: unbound method __init__() must be called with bbExportMeta
instance as first argument (got bbExportGranule s instance instead)
- [line 343 in
\\Linuxserver\A NIMATION\XSI\WO RKGROUP_ANIMATI ON\plugins\bb_p ipeline\bb_pipe line_py.py]
In normal English:
I have class bbExportGranule s
bbExportGranule s is a sub-class of 6 other classes
In the __init__() of bbExportGranule s class, I call the __init__() of
5 of these super-classes.
The init of bbExportGranule s:
class bbExportGranule s( bbExportMeta, bbExportCluster s,
bbExportMateria ls, bbExportKinemat ics, bbExportModels, bbExportMetaToc
):
def __init__( self ):
bbExportMeta.__ init__( self )
bbExportCluster s.__init__( self )
bbExportMateria ls.__init__( self )
bbExportKinemat ics.__init__( self )
bbExportModels. __init__( self )
And the bbExportMeta class (the error is raised when bbExportGranule s
is subclassing that one):
class bbExportMeta:
def __init__( self ):
self.iPreviousA ssetVersion = gec.iNOPREVIOUS ASSETVERSION
self.iCurrentAs setVersion = gec.iMINCURRENT ASSETVERSION
self.sPreviousA ssetProject = xsi.getdefaultp roject()
Any suggestion? I really, really don't see what I'm doing wrong here,
especially that it actually used to work!
Thanks
Bernard
I have this problem when subclassing classes where I get this error:
Traceback (most recent call last):
File "<Script Block >", line 344, in BBExportElement Granules_Execut e
from bb_pipeline import bb_exportelemen tgranules
File "\\Linuxserver\ ANIMATION\XSI\W ORKGROUP_ANIMAT ION\Data\Script s\bb_pipeline\b b_exportelement granules.py",
line 101, in ?
oWriter = bbExportGranule s()
File "\\Linuxserver\ ANIMATION\XSI\W ORKGROUP_ANIMAT ION\Data\Script s\bb_pipeline\b b_granules\bb_g ranuleexport\bb _granuleexport_ element.py",
line 73, in __init__
bbExportMeta.__ init__( self )
TypeError: unbound method __init__() must be called with bbExportMeta
instance as first argument (got bbExportGranule s instance instead)
- [line 343 in
\\Linuxserver\A NIMATION\XSI\WO RKGROUP_ANIMATI ON\plugins\bb_p ipeline\bb_pipe line_py.py]
In normal English:
I have class bbExportGranule s
bbExportGranule s is a sub-class of 6 other classes
In the __init__() of bbExportGranule s class, I call the __init__() of
5 of these super-classes.
The init of bbExportGranule s:
class bbExportGranule s( bbExportMeta, bbExportCluster s,
bbExportMateria ls, bbExportKinemat ics, bbExportModels, bbExportMetaToc
):
def __init__( self ):
bbExportMeta.__ init__( self )
bbExportCluster s.__init__( self )
bbExportMateria ls.__init__( self )
bbExportKinemat ics.__init__( self )
bbExportModels. __init__( self )
And the bbExportMeta class (the error is raised when bbExportGranule s
is subclassing that one):
class bbExportMeta:
def __init__( self ):
self.iPreviousA ssetVersion = gec.iNOPREVIOUS ASSETVERSION
self.iCurrentAs setVersion = gec.iMINCURRENT ASSETVERSION
self.sPreviousA ssetProject = xsi.getdefaultp roject()
Any suggestion? I really, really don't see what I'm doing wrong here,
especially that it actually used to work!
Thanks
Bernard
Comment