[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: Rida Al Barazi <ralbarazi_at_gmail.com>
Date: 2005-09-03 22:25:56 CEST

Hi David,
[root@vps src]# swig -version

SWIG Version 1.3.25
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2005
University of Chicago
Compiled with g++ [i686-pc-linux-gnu]

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

python build/get-py-info.py --compile =>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
python2 build/get-py-info.py --compile =>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes

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

As you may already saw.. it's 1.3.25

> If you still get SWIG_TypeQuery ImportErrors with SWIG 1.3.25, this
> means that Subversion still thinks you have SWIG 1.3.21 or lower. To
> be sure you've fixed this, try downloading a fresh copy of Subversion
> 1.2.3, extract it into a brand new, empty directory, and retry the
> build process.
> Hope this helps,
> David

I tried recompiling everything from zero... downloaded/extract Subversion
1.2.3 and running the following:
# ./configure --with-swig=/usr/bin/swig --with-python=/usr/bin/python2
# make
# make swig-py
# make install
# make install-swig-py

# PYTHONPATH=/usr/local/lib/svn-python python
Python 2.4.1 (#2, Sep 3 2005, 03:09:32)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn.core
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:

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 3 22:27:56 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.