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
_______________________________________________
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

Reply via email to