[Paraview] pvpython 3.98: NameError: name 'ImageReader' is not defined

Anton Shterenlikht mexas at bris.ac.uk
Mon Mar 31 04:51:40 EDT 2014


I see multiple errors from pvbatch 3.98.
In an attempt to get to the bottom,
I now use pvpython, to check line of
my script in turn. However, I now
get the error at the very start:

$ pvpython
Python 2.7.2 (default, Feb  8 2013, 11:05:21) 
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from paraview.simple import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local2/apps/ParaView-3.98/ParaView-3.98.1-Linux-64bit/lib/paraview-3.98/site-packages/paraview/simple.py", line 39, in <module>
    import servermanager
  File "/usr/local2/apps/ParaView-3.98/ParaView-3.98.1-Linux-64bit/lib/paraview-3.98/site-packages/paraview/servermanager.py", line 43, in <module>
    import paraview, re, os, os.path, new, sys, atexit, vtk
  File "new.py", line 5, in <module>
    zg1_raw = ImageReader( FilePrefix='/gpfs/cluster/mech/mexas/nobackup/cgpack/branches/coarray/tests/zg1.raw' )
NameError: name 'ImageReader' is not defined
>>> 

What is wrong here?

Thanks

Anton



More information about the ParaView mailing list