On Thu, 12 Apr 2001, Piotr Legiecki wrote:

> Hi. I'm using debian (unstable) and pygtk 0.6.6. I have both python 1.5
> and python 2.0 (as python2) installed and noticed that testgtk.py (from
> examples directory) shows me a warning:
> 
> piotrlg@xunil:/usr/share/doc/python-gtk/examples/testgtk$ python2
> testgtk.py 
> WARNING: Python C API version mismatch for module _gtk:
>   This Python has API version 1009, module _gtk has version 1007.
> Hello

You compiled pygtk against 1.5 headers, and are using it with 2.0.  This
would happen with any other python module you happened to compile this
way.

You should recompile pygtk with the 2.0 headers.  If the python executable
is not python 2.0, you can use the following:
  PYTHON=`which python2` ./configure --prefix=/pythons/prefix
  make

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to