[Paraview] pvpython: OpenDataFile(): AttributeError: Attribute FileName does not exist.

Anton Shterenlikht mexas at bristol.ac.uk
Wed Mar 13 12:44:04 EDT 2013


This is paraview 3.10

I'm using pvpython:

$ pvpython
Python 2.7.3 (default, Jan 15 2013, 08:46:05) 
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd10
Type "help", "copyright", "credits" or "license" for more information.
>>> 

I'm trying to read in a binary *.raw file:

>>> reader = OpenDataFile("z.raw")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/paraview-3.10/site-packages/paraview/simple.py", line 132, in OpenDataFile
    reader = globals()[xml_name](FileName=filename, **extraArgs)
  File "/usr/local/lib/paraview-3.10/site-packages/paraview/simple.py", line 583, in CreateObject
    setattr(px, param, params[param])
  File "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 207, in __setattr__
    "to add this attribute.")
AttributeError: Attribute FileName does not exist.  This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.
>>> 

I'm trying to follow:
http://www.paraview.org/Wiki/ParaView/Python_Scripting

Please advise

Many thakns

Anton



More information about the ParaView mailing list