[Paraview] Problem testing PV 5.3.0 RC1

Guillaume Jacquenot guillaume.jacquenot at gmail.com
Wed Feb 15 06:17:05 EST 2017


Hello,

I am testing ParaView-5.3.0-RC1-Qt5-OpenGL2-Windows-64bit.

I run into a problem when using PV with a script. When I launch a simple
script with the command

D:\ParaView-5.3.0-RC1-Qt5-OpenGL2-Windows-64bit\bin\paraview.exe
--script=testSphere.py

I have the following error message in the console, and nothing happens

Cannot open data file " \paraview.exe " (:0, )

Below is testSphere.py

from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
sphere1 = Sphere()
renderView1 = GetActiveViewOrCreate('RenderView')
sphere1Display = Show(sphere1, renderView1)
renderView1.ResetCamera()


My initial goal was to check that the following code works with PV5.3.
For version PV 5.2 it failed, whereas previously it succeeded

import os
import tempfile
import numpy as np
outputFilename = os.path.join(tempfile.mkdtemp(), 'dummy.npz')
varName='Time'
np.savez(outputFilename, **{varName:np.random.rand(3,4)})
d = np.load(outputFilename)
time = d[varName]
d.close()
os.remove(outputFilename)
print('Success PV can create a NPZ file and read its content : ' +
outputFilename)

I had reported this bug,

http://public.kitware.com/pipermail/paraview/2017-January/038890.html

and a bug issue had been opened:

https://gitlab.kitware.com/paraview/paraview-superbuild/issues/43


Guillaume Jacquenot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170215/57db8b4d/attachment.html>


More information about the ParaView mailing list