1.vtm文件
"D:\ACEM_3DAutoDisplay\script\autoit\paraview.au3"
connect localhost begin
connect localhost end
Traceback (most recent call last):
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 476, in __setattr__
setter = getattr(self.__class__, name)
AttributeError: type object 'UnstructuredGridRepresentation' has no attribute 'ExtractedBlockIndex'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 482, in __setattr__
_bc.setattr(self, name, value)
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\_backwardscompatibilityhelper.py", line 405, in setattr
raise AttributeError()
AttributeError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\ACEM_3DAutoDisplay\script\python\main.py", line 161, in <module>
ShowResult(sys.argv, 1, slepTM,outputfile)
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 3553, in ShowResult
ShowTemperatueAndFlux(outputfile, sleeptm, filename1,filename2,len(argv))
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 3435, in ShowTemperatueAndFlux
ShowVtmFileByPointData(item, filepath, scalors[0], 'Temperature')
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 903, in ShowVtmFileByPointData
temperaturevtmDisplay.ExtractedBlockIndex = 1
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 489, in __setattr__
raise AttributeError("Attribute %s does not exist. " % name +
AttributeError: Attribute ExtractedBlockIndex does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.
解决方案
2.
Traceback (most recent call last):
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 496, in __setattr__
setter(self, value)
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 2612, in setProperty
return self.SetPropertyWithName(propName, value)
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 355, in SetPropertyWithName
prop.SetData(arg)
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 866, in SetData
convertedValues = list(map(self.ConvertValue, values))
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 984, in ConvertValue
raise ValueError("%s is not a valid value." % value)
ValueError: AnyLocation is not a valid value.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\ACEM_3DAutoDisplay\script\python\main.py", line 161, in <module>
ShowResult(sys.argv, 1, slepTM,outputfile)
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 3553, in ShowResult
ShowTemperatueAndFlux(outputfile, sleeptm, filename1,filename2,len(argv))
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 3493, in ShowTemperatueAndFlux
ShowThermalAnalysis(outputfile, sleeptm, scalors,materialNums,True)
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 3209, in ShowThermalAnalysis
ShowVtkFile(item, filepath, scalors[0],'Temperature')
File "D:\ACEM_3DAutoDisplay\script\python\temperature.py", line 1046, in ShowVtkFile
temperatureLUTColorBar.WindowLocation = 'AnyLocation'
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py", line 500, in __setattr__
_bc.setattr_fix_value(self, name, value, setter)
File "C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\_backwardscompatibilityhelper.py", line 464, in setattr_fix_value
raise NotSupportedException("%s is an obsolete value. Use %s instead." % (value, new_value))
paraview.NotSupportedException: AnyLocation is an obsolete value. Use Any Location instead.