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

Re: Swig Python binding

From: David James <james82_at_gmail.com>
Date: 2005-09-03 20:56:17 CEST

On 9/3/05, Rida Al Barazi <ralbarazi@gmail.com> wrote:
> Thanks David, your replies very supportive and helpful:
Great!

> I recompiled python 2.4.1 in the same directory of python2.2
> and here is what I'm getting:
>
> which python => /usr/local/bin/python
> which python2 => /usr/bin/python2
> python -V => Python 2.4.1
> python2 -V => Python 2.4.1
Looks good so far.

> python build/get-py-info.py --compile =>
> python: can't open file 'build/get-py-info.py': [Errno 2] No
> such file or directory
> python2 build/get-py-info.py --compile =>
> python2: can't open file 'build/get-py-info.py': [Errno 2] No
> such file or directory
Can you run these commands from within the Subversion source code
directory, so that Python can find the build/get-py-info.py script?

> > Python can't find the svn.core library. Try running python like this:
> > PYTHONPATH=/usr/local/lib/svn-python python
> > Once python is started, type "import svn.core", and tell me whether it
> > works.
> tried now... getting this
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/svn-python/svn/core.py", line 19, in ?
> from libsvn.core import *
> File "/usr/local/lib/svn-python/libsvn/core.py", line 5, in ?
> import _core
> ImportError: /usr/local/lib/svn-python/libsvn/_core.so: undefined symbol:
> SWIG_TypeQuery
What version of SWIG are you using? You can find out by typing
  swig -version

It looks like you're using an old version of SWIG. Can you upgrade to
SWIG 1.3.25?

Thanks,

David

-- 
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 3 20:58:44 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.