[vtkusers] Bizarre Python Errors

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sun Apr 28 22:45:19 EDT 2002


hi,

Yes, your errors look wierd.  Why havent you compiled the vtk
libraries as shared libraries?  What problems did you face with that
approach?

Could you also try to do an import vtk on the interpreter.  You
_might_ get clearer error messages (atleast it will tell you which
module failed to import).

>>> import vtk

Hope this helps.
prabhu


>>>>> "MR" == Mike Robertson <fermion at mac.com> writes:

    MR> Hi! I don't think this has anything to do with mac os x,
    MR> although, of course, I'm using mac os x. I've installed VTK to
    MR> wrap to both python and tcl. CMakeCache.txt file is
    MR> attached. I'm getting some unusual errors when I go to import
    MR> vtkpython. But, oddly enough, the thing has no qualms
    MR> importing libvtkCommonPython.... I installed everything in
    MR> /usr/local/vtk/VTK/ (so the wrapping for python is
    MR> /usr/local/vtk/VTK/Wrapping/Python/) and did not run a make
    MR> install, as I have unsuccessfully done before. vtkpython is
    MR> here: /usr/local/vtk/VTK/Wrapping/Python. The libraries are
    MR> not shared (had some problems with that earlier...)  Here's
    MR> the error:

    MR> [localhost:VTK/Wrapping/Python] root# python Python 2.2 (#1,
    MR> Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on
    MR> darwin Type "help", "copyright", "credits" or "license" for
    MR> more information.
    >>>> import libvtkCommonPython import Tkinter import vtkpython
    MR> Traceback (most recent call last): File "<stdin>", line 1, in
    MR> ?  File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py",
    MR> line 29, in ?  exec "from "+kit_name+" import *" File
    MR> "<string>", line 1, in ?  ImportError: Failure linking new
    MR> module
    >>>>
    MR> [localhost:VTK/Wrapping/Python] root# what the heck

    MR> Any ideas? Of course, yes, I told the thing were to find all
    MR> of the libs by entering setenv PYTHONPATH
    MR> /usr/local/vtk/VTK/bin:/usr/local/vtk/VTK/Wrapping/Python

    MR> Thanks!

    MR> mike




More information about the vtkusers mailing list