<div dir="ltr"><div>petsc_gen_xdmf.py works fine on my Mac but I get this error on a Cray. It is looking for "file" but I give it a file name. On my Mac I have pything v2.7.11 and on the Cray I have Python 3.4.3 :: Anaconda 2.2.0 (64-bit).<br></div><div><br></div><div>Any ideas?</div><div><br></div><div>-rw-r--r-- 1 madams madams    206176 Oct 21 07:03 ex3.h5</div><div>07:04 nid00039  /global/u2/m/madams/petsc/src/dm/impls/picell/examples/tutorials$ ${PETSC_DIR}/bin/petsc_gen_xdmf.py ex3.h5</div><div>Traceback (most recent call last):</div><div>  File "/global/homes/m/madams/petsc/bin/petsc_gen_xdmf.py", line 241, in <module></div><div>    generateXdmf(f)</div><div>  File "/global/homes/m/madams/petsc/bin/petsc_gen_xdmf.py", line 235, in generateXdmf</div><div>    Xdmf(xdmfFilename).write(hdfFilename, topoPath, numCells, numCorners, cellDim, geomPath, numVertices, spaceDim, time, vfields, cfields)</div><div>  File "/global/homes/m/madams/petsc/bin/petsc_gen_xdmf.py", line 187, in write</div><div>    with file(self.filename, 'w') as fp:</div><div>NameError: name 'file' is not defined</div><div><br></div></div>