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

RE: RuntimeWarning: Python C API version mismatch...

From: Dale Hirt <dale_at_sbcltd.com>
Date: 2005-09-29 17:58:18 CEST

Matt,

You built the python bindings against 2.2.2, but are attempting to run them with 2.4.2. There will continue to be these warnings unless you re-build the python bindings against the 2.4.2 libs. It's sufficiently a big deal that the svn bindings may not work 100% due to the huge jump in version numbers of Python.

Dale

-----Original Message-----
From: Matt England [mailto:mengland@mengland.net]
Sent: Thursday, September 29, 2005 7:51 AM
To: SVN Users email list
Cc: mengland@mengland.net
Subject: RuntimeWarning: Python C API version mismatch...

Hello,

I'm going through the ever-expanding process of merging my repos together
(as per previous thread). Here's my latest challenge:

I'm running Dale Hirt's RepoMerge.py script which he so graciously wrote,
and to do so I had to install /usr/local/bin/python rev 2.4.2 (I'm on an
ancient Redhat9 box with /usr/bin/python rev 2.2.2). I had installed the
swig-py bindings prior to the 2.4.2 install. And to clarify: both python
2.4.2 and 2.2.2 are install at the same time in /usr/local and /usr,
respectively. I'd like to keep both, because I have other Python apps
(chief among them GNUMailman) running on my box, and I'd like to not upset
that cart any more then I have to for now.

I'm getting the following warnings when running Dale's script ( from
http://www.thehirts.net/blog/?page_id=24 ), and although the script seems
to be functioning ok (although I have yet had time to test its success...I
have to run to a meeting right now), I want to see if the following
warnings should be of any concern for me:

"
mengland@biz2tek 9:41am [~/scratch/svn-repo-merge-test] 37> setenv
PYTHONPATH /usr/local/lib/svn-python
mengland@biz2tek 9:42am [~/scratch/svn-repo-merge-test] 38> python
RepoMerge.py thirdrepo libpolicy libutil
/usr/local/lib/svn-python/libsvn/core.py:5: 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/core.py:5: 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 _core
"

In any case, I'd like to eliminiate these warnings for future
cleanliness. Alas, maybe I have to go ask the Python people about this?

-Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 29 19:19:28 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.