[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: Tun Tun Naing <tnaing_at_apelon.com>
Date: 2005-02-23 02:58:40 CET

I really appreciate your help.

>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 followed the default install and all the lib files are on
 /usr/local/lib/svn-python.
But when you run python, you can't find svn module even if I put the
/usr/local/lib/svn-python in PYTHONPATH. So I created a link called
libsvn and svn under /usr/local/lib/python2.3/site-packages.

ldd /usr/local/lib/svn-python/libsvn/_core.so
        libswigpy.so.0 => /usr/local/lib/libswigpy.so.0
        libsvn_swig_py-1.so.0 =>
/usr/local/lib/libsvn_swig_py-1.so.0
        libsvn_delta-1.so.0 => /usr/local/lib/libsvn_delta-1.so.0
        libsvn_diff-1.so.0 => /usr/local/lib/libsvn_diff-1.so.0
        libsvn_subr-1.so.0 => /usr/local/lib/libsvn_subr-1.so.0
        libapr-0.so.0 => /usr/local/apr/lib/libapr-0.so.0
        libsendfile.so.1 => /lib/libsendfile.so.1
        librt.so.1 => /lib/librt.so.1
        libm.so.1 => /lib/libm.so.1
        libnsl.so.1 => /lib/libnsl.so.1
        libresolv.so.2 => /lib/libresolv.so.2
        libpthread.so.1 => /lib/libpthread.so.1
        libdl.so.1 => /lib/libdl.so.1
        libsocket.so.1 => /lib/libsocket.so.1
        libc.so.1 => /lib/libc.so.1
        libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
        libaprutil-0.so.0 => /usr/local/apr/lib/libaprutil-0.so.0
        libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
        libexpat.so.0 => /usr/local/apr/lib/libexpat.so.0
        libaio.so.1 => /lib/libaio.so.1
        libmd5.so.1 => /lib/libmd5.so.1
        libmp.so.2 => /lib/libmp.so.2
        libthread.so.1 => /lib/libthread.so.1
        /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
        /usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

>check 'ldd
>/usr/local/lib/python2.3/site-packages/libsvn/_core.so'. Does
>it point to the correct SWIG libraries?
Yes, it does.

>-----Original Message-----
>From: John Szakmeister [mailto:john@szakmeister.net]
>Sent: Tuesday, February 22, 2005 4:59 PM
>To: Tun Tun Naing
>Cc: users@subversion.tigris.org
>Subject: Re: swig py binding
>
>
>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 04:11:06 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.