Ah ok, I was referring to that line inside the ${PV_SRC}/Wrapping/Python/ paraview/vtk/__init__.py
Sorry for the confusion, Seb On Fri, Nov 16, 2012 at 9:20 AM, edd cmaugo <edc...@gmail.com> wrote: > > Hi Seb, > > The line : > > from vtkFiltersCorePython import * > > leads to this warning on the output messages window : > > <string>:1: SyntaxWarning: import * only allowed at module level > > > > > 2012/11/16 Sebastien Jourdain <sebastien.jourd...@kitware.com> > >> Hi Eddy, >> >> what do you mean by "There's just a python warning in the output >> messages window but it works perfectly." >> >> What have you done ? >> >> Thanks, >> >> Seb >> >> >> On Fri, Nov 16, 2012 at 4:36 AM, edd cmaugo <edc...@gmail.com> wrote: >> >>> Thanks you, >>> >>> There's just a python warning in the output messages window but it >>> works perfectly. >>> >>> Eddy >>> >>> >>> >>> 2012/11/15 Sebastien Jourdain <sebastien.jourd...@kitware.com> >>> >>>> Hi Eddy, >>>> >>>> >>>> the reason for that is we are missing a bunch of import in >>>> ${PV_SRC}/Wrapping/Python/paraview/vtk/__init__.py >>>> >>>> >>>> But if you add that line, that will solve your vtk.vtkStripper() call. >>>> >>>> >>>> from vtkFiltersCorePython import * >>>> >>>> >>>> I'll push more vtk module into __init__.py so that should be fixed for the >>>> release. >>>> >>>> >>>> Thanks, >>>> >>>> >>>> Seb >>>> >>>> >>>> >>>> >>>> On Thu, Nov 15, 2012 at 4:11 AM, edd cmaugo <edc...@gmail.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> Is it possible to use a vtkStripper with the 3.98.0-RC1 on a >>>>> programmable filter ? >>>>> >>>>> If I do : >>>>> >>>>> from paraview import vtk >>>>> >>>>> stripper = vtk.vtkStripper() >>>>> >>>>> >>>>> I've got : >>>>> >>>>> AttributeError: 'module' object has no attribute 'vtkStripper' >>>>> >>>>> With the 3.14, there's no error. >>>>> Also, there is much more things when you print an >>>>> "inspect.getmembers(vtk)" with the 3.14 release. >>>>> >>>>> Thanks, >>>>> -- >>>>> Eddy >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>> >>> >> >
_______________________________________________ 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