[Paraview] pvpython script fails on Paraview 5.0.1

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Apr 4 20:26:17 EDT 2017


Bishwajit,

Just remove the "SetScaleArray" invocation from your script to over
this issue. I suspect you're building the GUI with
VTK_RENDERING_BACKEND cmake variable set to OpenGL2, while with 5.0.1,
it may be defaulting to OpenGL, as a result your Mesa build is using
legacy OpenGL backend. This is causing mismatch in available
parameters of the representations.

Utkarsh

On Mon, Apr 3, 2017 at 9:37 PM, Bishwajit Dutta <bdutta at vt.edu> wrote:
>
> Dear
> All,
>
> I have compiled Paraview 5.0.1 on ubuntu with mesa libs to run it on CPU.
> Also I generated a simple pvpython script from Paraview 5.0.1 GUI on my
> windows machine (attached) and the script runs fine there.
> However this script fails with my mesa compiled pvpython.
>
> =============error logs===============
> Traceback (most recent call last):
>   File "cone_clip.py", line 19, in <module>
>     cone1Display.SetScaleArray = [None, '']
>   File
> "/home/bd/gohan_mount/bdutta/PARAVIEW/PV_Vignesh/bd_build_mesa/lib/site-packages/paraview/servermanager.py",
> line 307, in __setattr__
>     "to add this attribute.")
> AttributeError: Attribute SetScaleArray 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.
> =============================
>
> I have built the Paraview with the following options (CMakeCache.txt
> attached):
> cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
> -DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
> -DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
> -DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
> -DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
> -DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
> -DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
> -DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
> -DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
> -DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
>
> Do I need to pass some extra parameters while building and if so what are
> they? All my GUI generated scripts seem to fail with similar errors.
>
> Thanks in advance for guidance.
>
> BR,
> Bishwajit (Bish) Dutta
> CpE - Grad Student
> Virginia Tech
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list