You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lewis Ashley Foster <lf...@cambridge.oilfield.slb.com> on 2005/12/02 10:03:22 UTC
Python subversion module?
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
/usr/local/lib/svn-python/libsvn/delta.py:4: RuntimeWarning: Python C API
version mismatch for module swig_runtime_data2: This Python has API version
1012, module swig_runtime_data2 has version 1011.
import _delta
/usr/local/lib/svn-python/libsvn/fs.py:5: RuntimeWarning: Python C API
version mismatch for module _fs: This Python has API version 1012, module
_fs has version 1011.
import _fs
/usr/local/lib/svn-python/libsvn/core.py:4: RuntimeWarning: Python C API
version mismatch for module _core: This Python has API version 1012, module
_core has version 1011.
import _core
/usr/local/lib/svn-python/libsvn/repos.py:6: RuntimeWarning: Python C API
version mismatch for module _repos: This Python has API version 1012,
module _repos has version 1011.
import _repos
/usr/local/lib/svn-python/libsvn/wc.py:5: RuntimeWarning: Python C API
version mismatch for module _wc: This Python has API version 1012, module
_wc has version 1011.
import _wc
/usr/local/lib/svn-python/libsvn/client.py:6: RuntimeWarning: Python C API
version mismatch for module _client: This Python has API version 1012,
module _client has version 1011.
import _client
usage: convert.py options
sccs2svn.py: error: You must supply a user id with --user
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.
Any help would be appreciated so much you just cant understand, i've spent
literally days trying to get this working and my patience is running out! :-(
Apologies if much of my terminology is incorrect, i'm a noob :-)
Lewis.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Python subversion module?
Posted by David Ripton <dr...@ripton.net>.
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