[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Python subversion module?

From: David Ripton <dripton_at_ripton.net>
Date: 2005-12-05 13:54:09 CET

On 2005.12.02 10:03:22 +0000, Lewis Ashley Foster wrote:
> I'm trying to get my python bindings to work and after lots of trouble I
> thought i had everything installed. I decided to run the python script
> (http://home.earthlink.net/~rzeh/sccs2svn.py) and got the following
> messages:
>
> [root@rancor SCCS]# python2.4 sccs2svn.py
> /usr/local/lib/svn-python/libsvn/delta.py:4: RuntimeWarning: Python C API
> version mismatch for module _delta: This Python has API version 1012,
> module _delta has version 1011.
> import _delta
...

> I'm really not sure where to start with all this, i've got subversion 1.2.3
> installed, i've got python 2.4, swig 1.3.24 because i was told 1.3.27
> didn't work correctly.

That Python API warning is saying "You're running Python 2.4.x against a
Python C module compiled for Python 2.3.x"

I suspect you have multiple versions of Python installed on the box (2.3
from your Linux distribution and 2.4 installed by you?), and the svn
build scripts found the wrong one.

You need to either eliminate all but one version of Python from the box
so the build scripts are guaranteed to guess right, or explicitly say
which version of Python you want the bindings to target.

"./configure -help" doesn't show a documented syntax for this, but if
you look through svn's configure script, you'll find that it uses
environment variables PYTHON and PYTHON2. Try setting one of those to
the full path of your Python 2.4 binary, then rebuilding. config.log
should show the path to the Python and SWIG versions that were actually
used.

-- 
David Ripton    dripton@ripton.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 5 13:59:05 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.