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

Re: Python bindings/ViewCVS/Swig trouble

From: Tun Tun Naing <tnaing_at_apelon.com>
Date: 2005-02-19 04:53:04 CET

I'm having the same problem as in this message thread.

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 ?
    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

I'm using swig 1.3.19.

$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?

Thanks in advance,
Tun

***********

>strings /usr/local/lib/libswigpy.so
<Global variables>
Global variables {
Unknown C global variable
swigvarlink
this
NULL
thisown
Type error. Expected %s
Expected a pointer
0123456789abcdef
>swig -version

SWIG Version 1.3.19
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2002
University of Chicago
Compiled with g++

Please see http://www.swig.org for reporting bugs and further
information

**********

> Do:
> find / -name libswigpy.so

> Then do:
> strings /usr/lib64/libswigpy.so | grep SWIG_Python

> On the file you find... If there are no SWIG_Python symbols found
then
> you have 1.3.19 or older... If there are then you have 1.3.20 or
> newer... If you have multiple copies of the runtimes installed it can
> create the behavior you're seeing.

Hmmm..... like I thought, so it must be 1.3.19. Does that mean that
the swig-python bindings need something newer than 1.3.19?

-Johannes.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 20 07:16:24 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.