I am the original reporter for the bug that led to this thread.
It is related to the use of specific numpy functions from ParaView.
My code was working with ParaView 5.1.2, but not anymore with version 5.2.0.
I want to report that it is still not working with version 5.3.0 RC3.
import osimport tempfileimport numpy as npoutputFilename = 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)
With PV 5.1.2, it worked as a charm.
With PV 5.3.0 RC3 here is the error message
Python 2.7.3 (default, Sep 27 2016, 14:23:08) [MSC v.1500 64 bit (AMD64)] on win32>>> from paraview.simple import *>>> Traceback (most recent call last): File "<string>", line 8, in <module> File "D:\ParaView-5.3.0-RC3-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\npyio.py", line 250, in __getitem__ return format.read_array(bytes) File "D:\ParaView-5.3.0-RC3-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\format.py", line 437, in read_array shape, fortran_order, dtype = read_array_header_1_0(fp) File "D:\ParaView-5.3.0-RC3-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\format.py", line 334, in read_array_header_1_0 d = safe_eval(header) File "D:\ParaView-5.3.0-RC3-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\utils.py", line 1132, in safe_eval return walker.visit(ast) File "D:\ParaView-5.3.0-RC3-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\utils.py", line 980, in visit return meth(node, **kw) File "D:\ParaView-5.3.0-RC3-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\utils.py", line 987, in visitExpression for child in node.getChildNodes():AttributeError: 'Expression' object has no attribute 'getChildNodes'>>>