[vtk-developers] Python Tk widgets broken!
David Gobbi
dgobbi at imaging.robarts.ca
Thu Mar 11 11:26:00 EST 2004
On Wed, 10 Mar 2004, Prabhu Ramachandran wrote:
> Hi,
>
> I just updated my VTK CVS tree (after ages!), rebuilt and find that
> the Python Tk widgets are broken, badly. Here is what I get.
>
> $ cd Wrapping/Python/vtk/tk
> $ python vtkTkRenderWidget.py
> X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 1 (X_CreateWindow)
> Serial number of failed request: 57
> Current serial number in output stream: 60
>
> $ python vtkTkRenderWindowInteractor.py
> X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 1 (X_CreateWindow)
> Serial number of failed request: 57
> Current serial number in output stream: 60
>
> Which is pretty nasty.
>
> I deleted Rendering/vtkTkWidgetsInit.o and libvtkRenderingPython*.so
> and rebuilt and it still does not work. From what I can tell from the
> CVS logs these two are the only relevant entries for
> Rendering/vtkTkWidgetsInit.cxx
>
> ----------------------------
> revision 1.17
> date: 2004/01/10 18:07:34; author: barre; state: Exp; lines: +1 -1
> try to fix warnings
> ----------------------------
> revision 1.16
> date: 2004/01/08 16:53:24; author: hoffman; state: Exp; lines: +13 -11
> BUG: make sure tk has been initialized before calling tk functions
> ----------------------------
>
> I'm sorry I can't offer to fix the bug since I'm swamped with work
> right now. Could someone please take a look?
>
> Thanks!
> prabhu
Hi Prabhu,
I had the same problem, the widgets aren't broken, it's just a build
dependency problem.
Touch vtkTkRenderWidgetPython.cxx and rebuild, then your problem should
be gone.
Unfortunately vtkTkRenderWidgetPython.o is not re-built when
vtkTkRenderWidget.cxx is modified. I don't know if there is any
way to enforce the dependency in CMake.
- David
More information about the vtk-developers
mailing list