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

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Apr 10 09:00:21 EDT 2013


Thanks for reporting this. This was indeed a bug. I've pushed a fix
for this. It will be fixed in the next release of ParaView.

http://www.paraview.org/Bug/view.php?id=13999

Utkarsh

On Wed, Mar 13, 2013 at 12:44 PM, Anton Shterenlikht
<mexas at bristol.ac.uk> wrote:
> 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
>
> _______________________________________________
> 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


More information about the ParaView mailing list