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

Re: Can't get Python bindings to work

From: Bruce Fancher <bfancher_at_hfmus.com>
Date: 2004-12-27 17:34:44 CET

Hi. I'm still trying to understand why the Python bindings on my system
don't seem to work. I've tried with SWIG 1.3.19, 1.3.21 and 1.3.24 without
any luck. I always get the same result:

[root@meatwad subversion-1.1.1]# export
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/kerberos/lib:/usr/X11R6/lib
[root@meatwad subversion-1.1.1]# tools/examples/svnlook.pyTraceback (most
recent call last):
  File "tools/examples/svnlook.py", line 23, in ?
    from svn import core, fs, delta, repos
  File "/usr/lib/python2.2/site-packages/svn/core.py", line 21, in ?
    from libsvn.core import *
  File "/usr/lib/python2.2/site-packages/libsvn/core.py", line 5, in ?
    import _core
ImportError: /usr/local/lib/libsvn_swig_py-1.so.0: undefined symbol:
SWIG_Python_NewPointerObj

Anyone have any advice for tracking this down? Any similar problems with
these?

Not quite sure how SWIG works, but I tried to track down this symbol. As I
understand it the 't' means the symbol is only defined locally, correct?

[root@meatwad subversion-1.1.1]# find /usr/local/lib -name '*' -exec nm -o
{} \; 2> /dev/null | grep SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_client.so:00003d18 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_client.a:svn_client.o:00000870 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_core.so:0000a688 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_core.a:core.o:000052c8 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_delta.so:000094bc t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_delta.a:svn_delta.o:00006c4c t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_fs.so:000042fc t SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_fs.a:svn_fs.o:00000a24 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_ra.so:00008128 t SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_ra.a:svn_ra.o:00005ca4 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_repos.so:00004a58 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_repos.a:svn_repos.o:00000fe4 t
SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_wc.so:00004c24 t SWIG_Python_NewPointerObj
/usr/local/lib/svn-python/libsvn/_wc.a:svn_wc.o:00000e18 t
SWIG_Python_NewPointerObj
/usr/local/lib/libsvn_swig_py-1.so.0.0.0: U
SWIG_Python_NewPointerObj
/usr/local/lib/libsvn_swig_py-1.so.0: U SWIG_Python_NewPointerObj
/usr/local/lib/libsvn_swig_py-1.so: U SWIG_Python_NewPointerObj
/usr/local/lib/libsvn_swig_py-1.a:swigutil_py.o: U
SWIG_Python_NewPointerObj

Any help is appreciated.

Thanks,

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 27 17:37:07 2004

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.