>From mexas Mon Mar 31 09:51:40 2014 >To: [email protected] >Subject: pvpython 3.98: NameError: name 'ImageReader' is not defined >Reply-To: [email protected] > >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?
Is the problem that I have created a file called "new.py", and this name is used by pvpython? Now that I deleted new.py, I don't get this error anymore. Anton _______________________________________________ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
