Error in Abaqus scripting

Hi,

i am a abaqus CAE user and very new for scripting. i need to extract displacement data from odb file at each increment. i wrote following 2 lines.

for p in range(1,5):

# extract the contact pressure at i and i+1 from the odb
fui = odb.steps[stepKey].frames[p].fieldOutputs['U']
fu1 = odb.steps[stepKey].frames[p+1].fieldOutputs['U']

but when i run python file in command prompt, i got this error.

File "SMAPyaModules\\SMAPyaDriverPy.m\\src\\script.py", line 86, in
File "SMAPyaModules\\SMAPyaDriverPy.m\\src\\application.py", line 150, in run
File "SMAPyaModules\\SMAPyaDriverPy.m\\src\\script.py", line 65, in execute
File "one.py", line 58, in
newField.addData(field=dhi)
OdbError: Fields are not compatible. They are either associated with different structural models or have incompatible attributes.
Exception TypeError: 'expected string or Unicode object, module found' in ignored


can anybody explain what is the error with the python file.

harsha