MantisBT - ParaView
View Issue Details
0009546ParaViewBugpublic2009-09-15 17:572010-04-20 16:51
Ken Moreland 
Utkarsh Ayachit 
normalminorhave not tried
closedunable to reproduce 
 
3.83.8 
0009546: keys method in FieldDataInformation Python object broken
In the FieldDataInformation object, which is supposed to act like a Python dictionary, the keys method is broken. To replicate, start the GUI, open the Python Shell, and type the following.

sphere = Sphere()
elevation = Elevation()
elevation.PointData.items()
elevation.PointData.keys()

Everything works fine until the last line where you get an error like the following:

Traceback (most recent call last):
  File "<console>", line 1, in ?
  File "/Users/kitware/ParaViewReleases/ParaView-3.6/ParaView3Bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 1340, in keys
NameError: global name 'ai' is not defined

This problem appears to already be fixed on the CVS trunk. It is only on the 3.6 branch where I am seeing it happen now.
No tags attached.
Issue History
2009-09-15 17:57Ken MorelandNew Issue
2009-09-15 17:58Ken MorelandStatusbacklog => tabled
2009-09-15 17:58Ken MorelandAssigned To => Utkarsh Ayachit
2009-10-02 10:12Utkarsh AyachitTarget Version3.6.2 => 3.8
2010-04-16 11:15Utkarsh AyachitNote Added: 0020217
2010-04-16 11:15Utkarsh AyachitStatustabled => @80@
2010-04-16 11:15Utkarsh AyachitFixed in Version => 3.8
2010-04-16 11:15Utkarsh AyachitResolutionopen => unable to reproduce
2010-04-20 16:51Alan ScottNote Added: 0020292
2010-04-20 16:51Alan ScottStatus@80@ => closed

Notes
(0020217)
Utkarsh Ayachit   
2010-04-16 11:15   
Unable to reproduce with 3.8.
(0020292)
Alan Scott   
2010-04-20 16:51   
Works for me. I am using trunk, python 2.6.5, Windows, local server. Followed directions as stated below.