It seems that one issue is that 'filename_mesh' has a capital N in some places and not others:
ipdb> missing = [item for item in required if not hasattr(self, item)] ipdb> missing ['filename_mesh', 'field_[0-9]+|fields', 'ebc_[0-9]+|ebcs', 'region_[0-9]+|regions', 'variable_[0-9]+|variables', 'material_[0-9]+|materials', 'integral_[0-9]+|integrals', 'solver_[0-9]+|solvers'] ipdb> hasattr(self, 'filename_mesh') False ipdb> self.fi self.field_1 self.fileName_mesh ipdb> self.fileName_mesh 'first_mesh.1.node'
On Thu, Jul 31, 2008 at 7:36 AM, Ryan Krauss ryan...@gmail.com wrote:
I am having problems running my script after an HG update this morning:
In [1]: run simple.py from_Robert.py sfepy: error: required missing: ['filename_mesh'] sfepy: left over: ['E', '__builtins__', '__file__', 'tractionLoad', '__name__', 'lamb', 'mu', 'fileName_mesh', 'v', '__doc__']
<type 'exceptions.ValueError'> Traceback (most recent call last)
/home/ryan/siue/Research/SfePy/first_problem/simple.py in <module>() 100 101 if __name__ == '__main__': --> 102 main() 103 104
/home/ryan/siue/Research/SfePy/first_problem/simple.py in main() 85 other.extend( ['equations'] ) 86 ---> 87 conf = ProblemConf.from_file( filename_in, required, other ) 88 ## print conf 89 ## pause()
/home/ryan/svn/sfepy/sfepy/base/conf.py in from_file(filename, required, other) 155 obj.__dict__.update( define_dict ) 156 --> 157 other_missing = obj.validate( required = required, other = other ) 158 for name in other_missing: 159 setattr( obj, name, None )
/home/ryan/svn/sfepy/sfepy/base/conf.py in validate(self, required, other) 218 219 if err: --> 220 raise ValueError 221 222 return other_missing
<type 'exceptions.ValueError'>: WARNING: Failure executing file: <simple.py>
In [2]: %debug
/home/ryan/svn/sfepy/sfepy/base/conf.py(220)validate()
219 if err: --> 220 raise ValueError 221
The files I am trying to use are attached.
Thanks,
Ryan