woo

AttributeError

Asked by Mohammad Nurul Islam

Hi,
I was trying to run cyl-triax test and found error message as belows: Any suggestion to solve it will be appreciable

Woo [1]: woo.qt.Controller();
Woo [2]: ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/lib/python2.7/dist-packages/woo/qt/__init__.pyc in loadSlot(self)
    524 if not f: return # cancelled
    525 self.deactivateControls()
--> 526 woo.master.scene=Scene.load(f)
    527 def saveSlot(self):
    528 f=QFileDialog.getSaveFileName(self,'Save simulation','')

/usr/lib/python2.7/dist-packages/woo/_monkey/io.pyc in Object_load(typ, inFile, format)
    427 elif format=='expr':
    428 buf=codecs.open(inFile,'rb','utf-8').read()
--> 429 return typeChecked(wooExprEval(buf),typ)
    430 elif format=='pickle':
    431 return typeChecked(pickle.load(open(inFile,'rb')),typ)

/usr/lib/python2.7/dist-packages/woo/_monkey/io.pyc in wooExprEval(__e)
    352 # exec all lines starting with #: as a piece of code
    353 exec (textwrap.dedent('\n'.join([l[2:] for l in __e.split('\n') if l.startswith('#:')])))
--> 354 return eval(__e)
    355
    356 def Object_loads(typ,data,format='auto'):

/usr/lib/python2.7/dist-packages/woo/_monkey/io.pyc in <module>()

/usr/lib/python2.7/dist-packages/woo/pre/cylTriax.pyc in __init__(self, **kw)
     65 def __init__(self,**kw):
     66 woo.core.Preprocessor.__init__(self)
---> 67 self.wooPyInit(self.__class__,woo.core.Preprocessor,**kw)
     68 def __call__(self):
     69 # preprocessor builds the simulation when called

/usr/lib/python2.7/dist-packages/woo/pyderived.pyc in wooPyInit(self, derivedClass, cxxBaseClass, **kw)
    335 if kw:
    336 for k in kw:
--> 337 if not hasattr(self,k): raise AttributeError('No such attribute: %s'%k)
    338 if k in self._attrValues: self._attrValues[k]=self._attrTraitsDict[k].coerceValue(kw[k])
    339 else: setattr(self,k,kw[k])

AttributeError: No such attribute: pWaveSafety

Regards,
Mohammad Nurul Islam

Question information

Language:
English Edit question
Status:
Solved
For:
woo Edit question
Assignee:
No assignee Edit question
Solved by:
Mohammad Nurul Islam
Solved:
Last query:
Last reply:
Revision history for this message
Václav Šmilauer (eudoxos) said :
#1

Hi, this one is easy. pWaveSafety was renamed to dtSafety in rev 3585 (october 2) -- to be more precise, because it does not affect only pWaveDt, so just hand-replace that word in the preprocessor and it will load fine. HTH, Václav

Revision history for this message
Mohammad Nurul Islam (nislamce-6) said :
#2

Hi Vaclav,
Thank you very much for your answer.

It solved the problem. It is noted that still there are warning message as follows:

The probable source of error might be in "packPredicates.cpp" this file.

Compaction memoize file is ./e3db7352310f1e3bff07514ecedb476f1d757a53.triax-compact
WARN build-src-tree/../py/_packPredicates.cpp:378 SpherePack_filtered: SpherePack.filtered: axis=0, packing aabb (min=0.0140673) outside of the predicate aabb (min=0.0140638)
WARN build-src-tree/../py/_packPredicates.cpp:379 SpherePack_filtered: SpherePack.filtered: axis=0, packing aabb (max=0.0499327) outside of the predicate aabb (max=0.0499404).
WARN build-src-tree/../py/_packPredicates.cpp:378 SpherePack_filtered: SpherePack.filtered: axis=1, packing aabb (min=0.0140649) outside of the predicate aabb (min=0.0140594)
WARN build-src-tree/../py/_packPredicates.cpp:379 SpherePack_filtered: SpherePack.filtered: axis=1, packing aabb (max=0.0499351) outside of the predicate aabb (max=0.0499361).
WARN build-src-tree/../py/_packPredicates.cpp:378 SpherePack_filtered: SpherePack.filtered: axis=2, packing aabb (min=0.0360091) outside of the predicate aabb (min=0.0360031)
WARN build-src-tree/../py/_packPredicates.cpp:379 SpherePack_filtered: SpherePack.filtered: axis=2, packing aabb (max=0.0959909) outside of the predicate aabb (max=0.0960031).
Woo [4]:

Thanks again.

Regards,
Mohammad Nurul Islam