I’m using ParaView 5.6.0 on MacOSX and I installed Catalyst 5.6.0 from source on a Linux machine using Spack (spack install catalyst+essentials+python3+rendering
).
I have a C++ sample program that outputs a single 3d array of integers using vtkMultiPieceDataSet (for now with one piece, since I’m testing). I successfully used the Catalyst python script given in the Catalyst documentation to have my program generate an output for all the fields exposed by the program, I opened these files in ParaView on my Mac and did a simple “contour” plot of it 59|690x431. I defined the RenderView1 as Catalyst export and generated the script so that the same images would be generated directly from my program.
I’m attaching the script here: render.py (12.1 KB)
Back on the Linux workstation, when I use this script, I get Python errors:
Traceback (most recent call last):
File "/home/mdorier/spack/opt/spack/linux-gentoo2-aarch64/gcc-9.2.0/catalyst-5.6.0-ohy6ocyp2bcutaghnvte3ckyma334jd5/lib/python3.7/site-packages/paraview/servermanager.py", line 446, in __setattr__
setter = getattr(self.__class__, name)
AttributeError: type object 'GeometryRepresentation' has no attribute 'GaussianRadius'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mdorier/spack/opt/spack/linux-gentoo2-aarch64/gcc-9.2.0/catalyst-5.6.0-ohy6ocyp2bcutaghnvte3ckyma334jd5/lib/python3.7/site-packages/paraview/servermanager.py", line 452, in __setattr__
_bc.setattr(self, name, value)
File "/home/mdorier/spack/opt/spack/linux-gentoo2-aarch64/gcc-9.2.0/catalyst-5.6.0-ohy6ocyp2bcutaghnvte3ckyma334jd5/lib/python3.7/site-packages/paraview/_backwardscompatibilityhelper.py", line 261, in setattr
raise AttributeError()
AttributeError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "render.py", line 271, in DoCoProcessing
File "/home/mdorier/spack/opt/spack/linux-gentoo2-aarch64/gcc-9.2.0/catalyst-5.6.0-ohy6ocyp2bcutaghnvte3ckyma334jd5/lib/python3.7/site-packages/paraview/coprocessing.py", line 212, in UpdateProducers
self.CreatePipeline(datadescription)
File "render.py", line 222, in CreatePipeline
File "render.py", line 34, in _CreatePipeline
# state file generated using paraview version 5.6.0
File "render.py", line 164, in Pipeline
contour1Display.SetScaleArray = ['POINTS', 'Normals']
File "/home/mdorier/spack/opt/spack/linux-gentoo2-aarch64/gcc-9.2.0/catalyst-5.6.0-ohy6ocyp2bcutaghnvte3ckyma334jd5/lib/python3.7/site-packages/paraview/servermanager.py", line 459, in __setattr__
"to add this attribute.")
AttributeError: Attribute GaussianRadius 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.
If I comment the lines in question, I still have other lines that pose problems.
Am I missing something?
Thanks,
Matthieu