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

Re: svn commit: r12717 - in trunk: . build/ac-macros build/generator subversion/bindings/swig subversion/bindings/swig/perl/libsvn_swig_perl subversion/bindings/swig/perl/native subversion/bindings/swig/python/libsvn_swig_py

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-01-14 19:33:54 CET

maxb@tigris.org writes:

> Author: maxb
> Date: Thu Jan 13 17:31:43 2005
> New Revision: 12717

> Log:
> SWIG 1.3.24 compatibility.
> Based on a patch by John Lenz <lenz@cs.wisc.edu>.

It appears that SWIG 1.3.24 is not compatible with Python2.1, I get a
runtime error:

Traceback (most recent call last):
  File "/home/pm/sw/subversion/svn/tools/examples/svnlook.py", line 23, in ?
    from svn import core, fs, delta, repos
  File "/usr/local/subversion/lib/svn-python/svn/core.py", line 19, in ?
    from libsvn.core import *
  File "/usr/local/subversion/lib/svn-python/libsvn/core.py", line 5, in ?
    import _core
ImportError: /usr/local/subversion/lib/libsvn_swig_py-1.so.0: undefined symbol: PyOS_snprintf

It appears that PyOS_snprintf is new in Python2.2, so I guess
Subversion should disable the python bindings if Python2.1 is
detected.

I have installed Python2.2 and the PyOS_snprintf error has gone, but I
now get warnings like:

/usr/local/subversion/lib/svn-python/libsvn/core.py:5: RuntimeWarning: Python C API version mismatch for module _core: This Python has API version 1011, module _core has version 1010.
  import _core

which I guess means that Python2.1 is still getting used somewhere.
I'm still trying to track that down.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 14 19:37:36 2005

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

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