Paraview 5.9.0升级为Paraview 5.10.0之后报错

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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

haimianjie2012

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值