Hi Ryan,
I have already wanted to ask you how you are doing... :)
The problem you see is caused by changing SfePy naming conventions to follow PEP 8, see 'new coding style' message to this list.
Just rename 'fileName_mesh' to 'filename_mesh' in your input file.
You can use './script/edit_identifiers.py <files>' if you have more files, just not that the automatic conversion is not perfect, sometimes (really not often) it edits too much.
r.
Ryan Krauss 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