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

Re: swig py binding

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-02-23 01:58:58 CET

On Tuesday 22 February 2005 13:44, Tun Tun Naing wrote:
> Thank you so much. Now I'm getting this error message.
>
> Traceback (most recent call last):
> File "svnlook.py", line 23, in ?
> from svn import core, fs, delta, repos
> File "/usr/local/lib/svn-python/svn/core.py", line 21, in ?
> from libsvn.core import *
> File "/usr/local/lib/svn-python/libsvn/core.py", line 4, in ?

I'm a bit confused. This line suggest you followed the default install...

> import _core
> ImportError: ld.so.1: python: fatal: relocation error: file
> /usr/local/lib/python2.3/site-packages/libsvn/_core.so: symbol
> SWIG_Python_TypeRegister: referenced symbol not found

This line is showing something different. If you followed the default
install, libsvn/_core.so would be in /usr/local/lib. Are you sure you
don't have a couple of things all mixed together here?

> I'm using swig 1.3.19.

I can't say I'm familiar with the differences between 1.3.21 and 1.3.19.
I have 1.3.21 installed on my machine and everything just works. Perhaps
check 'ldd /usr/local/lib/python2.3/site-packages/libsvn/_core.so'. Does
it point to the correct SWIG libraries?

> $strings /usr/local/lib/python2.3/site-packages/libsvn/_core.so | grep
> SWIG SWIG_Python_TypeClientData SWIG_Python_TypeRegister
> SWIG_newvarlink SWIG_Python_NewPointerObj SWIG_ConvertPtr
> SWIG_InstallConstants SVN_ERR_SWIG_PY_EXCEPTION_SET
> SWIG_SVN_INVALID_REVNUM
> SWIG_SVN_IGNORED_REVNUM
>
> any advice?

I think you've probably got something else floating around here. Make
sure that you've linked against the correct version of SWIG.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 23 02:50:37 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.