[vtkusers] Error with VTK4.0 and python2.2: "ValueError: meth od requires a VTK object"

Harris Scott R CIV AFRL/SNJM Scott.Harris at wpafb.af.mil
Mon Apr 8 10:23:35 EDT 2002


I did a search for python and VTK4.0 but I didn't find that thread. Thanks!

I tried to install the Wrapping/Python stuff in my site-packages directory under python2.2 and I put
the libs in /usr/local/lib/ 

I blew that stuff away and just set up my paths to point into the VTK4.0 directory and it worked. I'll
have to go back and understand where it was getting confused.

Where do folks normally install VTK4.0? Do they just leave it where it was built, or do they move it
someplace else? I guess leaving it in the build directory is cleaner and safer.

-Scott

-----Original Message-----
From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in]
Sent: Sunday, April 07, 2002 8:41 PM
To: Scott X; VTK users list
Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: method
requires a VTK object"


>>>>> "SX" == Scott X <scott_01 at hotmail.com> writes:

    SX> I've built VTK4.x on a redhat 7.2 machine with python2.2 and I
    SX> get this error when I run CSpline.py from the old vtk31
    SX> release demos. CSpline.tcl in the new Examples directory runs
    SX> just fine and it seems to be a parallel of the python
    SX> version. Here's the error in its full glory:

[snip]

    SX> File "mybottle.py", line 58, in mylens
    SX> extrude.SetInput(profile) ValueError: method requires a VTK
    SX> object

This can happen when you have different versions of the VTK python
libraries.  Look here:

http://public.kitware.com/pipermail/vtkusers/2002-January/009018.html

You might want to read the whole thread.

prabhu
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list