Hello. I hope this problem has been solved. If it has, lob a tomato at me with the url for the fix printed on it. I am using paraview simple. Eclipse is the editor. I am trying to read in ExodusIIData ship it out to a binary vtm file. I get a strange error from the CreateWriter routine that SaveData calls. I got the idea to use SavaData in this manner by using Paraview’s trace log output. Here is the subroutine:
def translateFile (root):
global fileOut
global fileList
global xlateBar
polyDataFile = ExodusIIReader(FileName=fileList)
polyDataFile.ElementVariables = [ ’ accstrain ’ , ’ coherctps ’ , ‘coherence’ , ‘crack’ , ’ elmass ’ , ’ eqps ’ , ‘k_density’ , ‘k_energy’ , ‘k_temp’ , ’ maxp ’ , ’ maxstrain ’ , ‘press’ , ‘status’ , ’ tgrow ’ ]
SaveData(fileOut, proxy=polyDataFile)
Here is the Error:
File “/home/rmoral/Documents/dev/DTRA/PYTHON/Exodus2VTK/mainProg.py”, line 85, in translateFile
SaveData(fileOut, proxy=polyDataFile)
File “/opt/paraview-5.6/lib/python3.6/site-packages/paraview/simple.py”, line 980, in SaveData
writer = CreateWriter(filename, proxy, **extraArgs)
File “/opt/paraview-5.6/lib/python3.6/site-packages/paraview/simple.py”, line 966, in CreateWriter
writer_proxy.UnRegister(None)
AttributeError: ‘NoneType’ object has no attribute ‘UnRegister’
Thanks in advance for any help.