maruthinh  
                
                  
                    July 9, 2021, 10:07am
                   
                  1 
               
             
            
              I generated a trace to get Q-criterion. When I run this script in python shell within the Paraview, it works fine. But when I run in terminal either using pvpython or pvbatch, I get the following error
AttributeError: type object 'GeometryRepresentation' has no attribute 'InputVectors'
Here is the script
q_criterion.py  (8.3 KB)
             
            
              
            
           
          
            
              
                mwestphal  
              
                  
                    July 9, 2021, 11:40am
                   
                  2 
               
             
            
              Do you have a plugin loaded ? In any case, InputVectors does not exist on the SurfaceRepresentation, just remove the lines.
             
            
              
            
           
          
            
              
                maruthinh  
              
                  
                    July 10, 2021,  7:04am
                   
                  3 
               
             
            
              Thanks for the reply. If I delete that line, it works! Thanks.
Which Plugin I should load in case if I want to make it work that line.?
             
            
              
            
           
          
            
              
                mwestphal  
              
                  
                    August 3, 2021, 12:35pm
                   
                  4 
               
             
            
              Hard to say, you would need to take a look into Tools → Manage Plugin
             
            
              
            
           
          
            
            
              How to add streamlinesrepresentation plugins to pvpython?
             
            
              
            
           
          
            
              
                mwestphal  
              
                  
                    May 31, 2023,  6:39am
                   
                  6 
               
             
            
              LoadPlugin("StreamLinesRepresentations")
             
            
              
            
           
          
            
            
              
             
            
              
            
           
          
            
              
                mwestphal  
              
                  
                    May 31, 2023,  8:29am
                   
                  8 
               
             
            
              It needs the full path, something like:
LoadPlugin('/home/glow/dev/paraview/pv1/build/lib/paraview-5.11/plugins/StreamLinesRepresentation/StreamLinesRepresentation.so', remote=False, ns=globals())
Use your own path inside instead.