[vtkusers] Re: newbie problems with vtk4.0/python on irix

Dave Reed dreed at capital.edu
Sun Jan 6 20:56:14 EST 2002


> From: P Sherwood <P.Sherwood at dl.ac.uk>
> 
> Dear Prabhu,
> 
> >>     PS> % python Python 2.2 (#2, Jan 5 2002, 16:27:46) [C] on irix6
> >>     PS> Type "help", "copyright", "credits" or "license" for more
> >>     PS> information.
> >>     >>>> from vtkpython import *
> >>     PS> Fatal Python error: Interpreter not initialized (version
> >>     PS> mismatch?)  Abort (core dumped)
> >> 
> >> Thats strange.  What options did you set in the CMakeCache.txt.  Here
> >> is a part of my setup:
> >> 
> >> ----------
> >> //Where can one of the python, python21_d or python20_d libraries
> >> // be found
> >> PYTHON_DEBUG_LIBRARY:FILEPATH=
> >> 
> >> //What is the path where the file Python.h can be found
> >> PYTHON_INCLUDE_PATH:PATH=/usr/local/include/python2.1
> >> 
> >> //Where can one of the python, python21, python2.1, python20 or
> >> // python2.0 libraries be found
> >> PYTHON_LIBRARY:FILEPATH=
> >> ----------
> >> 
> >> Note that I don't explicitly set a PYTHON_LIBRARY.  I've run into
> >> problems earlier when I did link to libpython*.a
> 
> Thanks for this tip, it did the trick. I guess it must have been 
> trying to (re)load the python .so  in some incorrect manner during
> the  vtk import.
> 
> thanks again!!
> 
> Paul


Just as another data point,

PYTHON_INCLUDE_PATH:PATH=/usr/include/python2.1
PYTHON_LIBRARY:FILEPATH=/usr/lib/python2.1/config/libpython2.1.a

works fine for me on a RedHat 7.2 system.

Dave



More information about the vtkusers mailing list