[vtkusers] python wrappers not including all methods on w2k?

eric jones ej at ee.duke.edu
Mon Jul 2 02:26:08 EDT 2001


Hello,

I did a build from the last nights CVS on w2k for python2.1 using pcmaker
and vc++.  All went fine with the compile.  Also, 'import vtkpython' works
fine.  However, many of the methods for classes are missing.

    >>> q=vtk.vtkScalars()
    >>> q.InsertNextScalar(5)
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
    AttributeError: InsertNextScalar


a dir(q) reveals other missing methods.

I did a

    vtkWrapPython ../common/vtkScalars.h ../wrap/hints 0 > test.cxx

and also

    vtkWrapPython ../common/vtkScalars.h ../wrap/hints 1 > test.cxx

Both output:

   Parsed func New
   Parsed func New
   ...
   Parsed func InsertScalar
   Parsed func InsertNextScalar
   ...

but neither output file has a wrapper for InsertNextScalar.

Any guidance here?

thanks,
eric






More information about the vtkusers mailing list