[vtkusers] VTK and Python 2.x (new style getargs format but...)

Randy Heiland heiland at ncsa.uiuc.edu
Mon Jul 23 09:05:25 EDT 2001


German,

I can only say that using Python 2.2a1 and a nightly VTK from 7/19/01 (on
Linux), the graphics/examplesPython/Cone.py   works fine.

Try a step-by-step approach - entering cmds into the Python interpreter, e.g.:

>>> from libVTKCommonPython import *
>>> from libVTKGraphicsPython import *
>>> ren = vtkRenderer()
>>> ren
vtkOpenGLRenderer (0x819cf30)
  Debug: Off
    ...
>>> renWin = vtkRenderWindow()
>>> renWin.AddRenderer(ren)

--Randy


On Jul 22,  5:12pm, German Gomez Garcia wrote:
> Subject: [vtkusers] VTK and Python 2.x (new style getargs format but...)
> 	Hello,
>
> 	I'm trying to compile latest vtk (CVS/nightly snapshot) and I'm
> having problems with python support. Although I finally compiled everything
> (java, tcl, python support) python support doesn't work properly. It
> complains with
>
> SystemError: new style getargs format but argument is not a tuple
>
> when using de vtkRendererWindow.AddRenderer, as in:
>
> renderer = vtkRenderer()
> renWin = vtkRenderWindow()
> renWin.AddRenderer(renderer)
>
> 	I'm using python 2.1.1, any idea??
>






More information about the vtkusers mailing list