[vtkusers] Python mismatch error on IRIX

Andy Cedilnik andy.cedilnik at kitware.com
Wed Jan 15 14:29:25 EST 2003


Hi Randy,

This is a "known" problem with importing C++ library (VTK) to C program
(Python). The solution will be available in VTK 4.2 which will be
released shortly (or in VTK nightly available from www.vtk.org).

The solution looks like this. Instead of running your scripts using
/usr/bin/python (or whatever), you use executable from VTK called
vtkpython. This one should work fine.

			Andy

On Wed, 2003-01-15 at 13:57, Randy Heiland wrote:
> After a long absence from VTK on IRIX, I've returned to try to help a coworker
> (and am remembering why I left in the first place :).  In short, I'm getting
> this error:
> 
> % cd VTK/bin
> % python
> Python 2.2.2 (#1, Jan 15 2003, 07:20:16) [C] on irix646-64
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from libvtkCommonPython import *
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort (core dumped)
> 
> I'm using:
> 
> IRIX 6.5, 64-bit
> vtk40Src.tar
> Python2.2.2
> 
> I built Python - static lib, no threads, and VTK - with just Python wrapping
> (using MIPSpro cc,CC, Version 7.30)
> 
> I'm convinced I did not build VTK w/ a different Python than the one I'm using
> to execute.  Googling for this type of error, I see mention of a problem with
> threads, so my last build was threadless.  I've about run out of guesses.
> 
> FWIW, here's the ldd (see, no threads):
> % ldd libvtkCommonPython.so
>         libm.so  =>      /usr/lib64/libm.so
>         libvtkCommon.so  =>      <path>/VTK/bin/libvtkCommon.so
>         libCsup.so  =>   /usr/lib64/libCsup.so
>         libC.so.2  =>    /usr/lib64/libC.so.2
>         libc.so.1  =>    /usr/lib64/libc.so.1
> 
> ldd libvtkCommon.so
>         libm.so  =>      /usr/lib64/libm.so
>         libCsup.so  =>   /usr/lib64/libCsup.so
>         libC.so.2  =>    /usr/lib64/libC.so.2
>         libc.so.1  =>    /usr/lib64/libc.so.1





More information about the vtkusers mailing list