You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rida Al Barazi <ra...@gmail.com> on 2005/09/03 12:03:04 UTC

Swig Python binding

Hi I'm trying to get trac working on my system and it requires SWIG python binding with subversion.. I'm trying to make it and install it but I'm getting this error:

[root@vps subversion-1.2.3]# make swig-py
/usr/bin/swig  -python -I/usr/local/src/subversion-1.2.3/subversion/bindings/swig -I/usr/local/src/subversion-1.2.3/subversion/include -I -DSVN_SWIG_VERSION=1001 -DSWIG_TABLE_TYPE=subversion -I/usr/local/src/subversion-1.2.3/apr/include  -I/usr/local/src/subversion-1.2.3/apr-util/include  -I/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python/libsvn_swig_py -o subversion/bindings/swig/python/svn_client.c /usr/local/src/subversion-1.2.3/subversion/bindings/swig/svn_client.i
Generating wrappers for Python
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 34. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 40. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 44. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 54. Misplaced endif
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 69. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 70. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 73. Misplaced endif
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 79. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 80. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 82. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 83. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 85. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 86. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 93. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 100. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 106. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 129. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 133. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 140. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 144. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 156. Syntax error in input.
/usr/local/src/subversion-1.2.3/subversion/bindings/swig/apr.i : Line 159. Syntax error in input.
Confused by earlier errors. Bailing out
make: *** [subversion/bindings/swig/python/svn_client.c] Error 1


Any ideas??

Thanks
Rida Al Barazi

Re: Swig Python binding

Posted by Rida Al Barazi <ra...@gmail.com>.
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  
-fPIC
python2 build/get-py-info.py --compile =>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes  
-fPIC

> 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: 
SWIG_TypeQuery 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Swig Python binding

Posted by David James <ja...@gmail.com>.
On 9/3/05, David James <ja...@gmail.com> wrote:
> > 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:
> > SWIG_TypeQuery
> What version of SWIG are you using? You can find out by typing
>   swig -version
> 
> It looks like you're using an old version of SWIG. Can you upgrade to
> SWIG 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Swig Python binding

Posted by David James <ja...@gmail.com>.
On 9/3/05, Rida Al Barazi <ra...@gmail.com> wrote:
> Thanks David, your replies very supportive and helpful:
Great!

> I recompiled python 2.4.1 in the same directory of python2.2
> and here is what I'm getting:
> 
>      which python => /usr/local/bin/python
>      which python2 => /usr/bin/python2
>      python -V => Python 2.4.1
>      python2 -V => Python 2.4.1
Looks good so far.

>      python build/get-py-info.py --compile =>
>             python: can't open file 'build/get-py-info.py': [Errno 2] No
> such file or directory
>      python2 build/get-py-info.py --compile =>
>            python2: can't open file 'build/get-py-info.py': [Errno 2] No
> such file or directory
Can you run these commands from within the Subversion source code
directory, so that Python can find the build/get-py-info.py script?

> >   Python can't find the svn.core library. Try running python like this:
> >   PYTHONPATH=/usr/local/lib/svn-python python
> >   Once python is started, type "import svn.core", and tell me whether it
> > works.
> tried now... getting this
> 
> 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:
> SWIG_TypeQuery
What version of SWIG are you using? You can find out by typing
  swig -version

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

Thanks,

David

-- 
David James -- http://www.cs.toronto.edu/~james

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Swig Python binding

Posted by Rida Al Barazi <ra...@gmail.com>.
Thanks David, your replies very supportive and helpful:
I recompiled python 2.4.1 in the same directory of python2.2
and here is what I'm getting:

     which python => /usr/local/bin/python
     which python2 => /usr/bin/python2
     python -V => Python 2.4.1
     python2 -V => Python 2.4.1
     python build/get-py-info.py --compile =>
            python: can't open file 'build/get-py-info.py': [Errno 2] No 
such file or directory
     python2 build/get-py-info.py --compile =>
           python2: can't open file 'build/get-py-info.py': [Errno 2] No 
such file or directory

>   Python can't find the svn.core library. Try running python like this:
>   PYTHONPATH=/usr/local/lib/svn-python python
>   Once python is started, type "import svn.core", and tell me whether it 
> works.
tried now... getting this

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: 
SWIG_TypeQuery

Thanks again 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Swig Python binding

Posted by David James <ja...@gmail.com>.
On 9/3/05, Rida Al Barazi <ra...@gmail.com> wrote:
> Hi David,
> 
> Thank you for your help, I thought that I installed SWIG correctly, but it
> was a mistake I had to compile it in the another directory with another
> prefix.
> In Plesk swig1.1 will be installed in /usr/bin/swig so I had to specify the
> prefix in ./configure before compiling it..
> Now I'm getting anothor error in libtool:
[snip]
>  -I -DSVN_SWIG_VERSION=1001 -DSWIG_TABLE_TYPE=subversion -I/usr/local/src/subversion-1.2.3/apr/include
Oops! Looks like you're still using SWIG 1.1. You'll need to rerun
./configure to fix this (I see you did this below, and it solved the
problem).

> just in case you need the same information in the other post:
>   which python => /usr/local/bin/python
>   which python2 => /usr/bin/python2
>   python -V => Python 2.4.1
>   python2 -V => Python 2.2.2
Aha! Subversion 1.2.3 uses "python2" instead of "python", so it is
still compiling your extension for Python 2.2. (This is a bug -- it's
fixed in Subversion trunk, but the fix hasn't been released yet)

As a workaround, can you make "python2" point to /usr/local/bin/python
and rerun configure?

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

>   python2 build/get-py-info.py --compile =>
> USAGE: build/get-py-info.py WHAT
>   Returns information about how to build Python extensions.
>   WHAT may be one of:
>     --includes : return -I include flags
>     --compile  : return a compile command
>     --link     : return a link command
>     --libs     : return just the library options for linking
Can you try this command again? This output doesn't look right at all.
  python2 build/get-py-info.py --compile

> I think I have to recompile swig with specifying python path
> [/usr/local/bin/python] also... let me try it.
This is a good idea.

> Tried to reconfigure/make/make install swig, and reconfigure subversion with
> swig and python path and then make swig-py getting these warnings inside:
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be
> moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to
> be moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be
> moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be
> moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to
> be moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be
> moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be
> moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to
> be moved
> libtool: link: warning:
> `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be
> moved
These are harmless warnings. I get these warnings on my system too.

> when I try after that make install-swig-py... it's showing the same errors
> inside but with this at the end:
[snip]
> ./build/copy-swig-py.sh "/usr/bin/python2"
Oops! It's using the wrong version of Python, here. See my suggested
workaround above.
[snip]
> "/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644"
> "/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python"
> "/usr/local/lib/svn-python/libsvn" ""; ./build/copy-swig-py.sh
> "/usr/bin/python2"
> "/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644"
> "/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python/svn"
> "/usr/local/lib/svn-python/svn" ""; if test /usr/local/src/subversion-1.2.3
> != /usr/local/src/subversion-1.2.3; then ./build/copy-swig-py.sh
> "/usr/bin/python2"
> "/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644"
> "/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python"
> "/usr/local/lib/svn-python/libsvn" ""; fi
> Listing /usr/local/lib/svn-python/libsvn ...
> Compiling /usr/local/lib/svn-python/libsvn/__init__.py ...
> Compiling /usr/local/lib/svn-python/libsvn/client.py ...
> Compiling /usr/local/lib/svn-python/libsvn/core.py ...
> Compiling /usr/local/lib/svn-python/libsvn/delta.py ...
> Compiling /usr/local/lib/svn-python/libsvn/fs.py ...
> Compiling /usr/local/lib/svn-python/libsvn/ra.py ...
> Compiling /usr/local/lib/svn-python/libsvn/repos.py ...
> Compiling /usr/local/lib/svn-python/libsvn/wc.py ...
> Listing /usr/local/lib/svn-python/svn ...
> Compiling /usr/local/lib/svn-python/svn/__init__.py ...
> Compiling /usr/local/lib/svn-python/svn/client.py ...
> Compiling /usr/local/lib/svn-python/svn/core.py ...
> Compiling /usr/local/lib/svn-python/svn/delta.py ...
> Compiling /usr/local/lib/svn-python/svn/fs.py ...
> Compiling /usr/local/lib/svn-python/svn/ra.py ...
> Compiling /usr/local/lib/svn-python/svn/repos.py ...
> Compiling /usr/local/lib/svn-python/svn/wc.py ...
Other than the "python2" problem, it looks like it's working, so far.

> Restarted my server tried "trac" again.. getting the same error:
> Traceback (most recent call last):
>   File "/usr/local/bin/trac-admin", line 34, in ?
>     from trac import sync
>   File "/usr/local/lib/python2.4/site-packages/trac/sync.py", line 22, in ?
>     from svn import core, fs, delta, repos
> ImportError: No module named svn
> 
> Any Thoughts?
Python can't find the svn.core library. Try running python like this:
   PYTHONPATH=/usr/local/lib/svn-python python

Once python is started, type "import svn.core", and tell me whether it works.

Hope this helps!

David




-- 
David James -- http://www.cs.toronto.edu/~james

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Swig Python binding

Posted by Rida Al Barazi <ra...@gmail.com>.
Hi David,

Thank you for your help, I thought that I installed SWIG correctly, but it 
was a mistake I had to compile it in the another directory with another 
prefix.
In Plesk swig1.1 will be installed in /usr/bin/swig so I had to specify the 
prefix in ./configure before compiling it..
Now I'm getting anothor error in libtool:
[root@vps subversion-1.2.3]# make swig-py
/bin/sh /usr/local/src/subversion-1.2.3/libtool --silent --mode=compile 
none -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
 -D_GNU_SOURCE  -I/usr/local/src/subversion-1.2.3/subversion/bindings/swig -I/usr/local/src/subversion-1.2.3/subversion/include 
 -I -DSVN_SWIG_VERSION=1001 -DSWIG_TABLE_TYPE=subversion -I/usr/local/src/subversion-1.2.3/apr/include 
  -I/usr/local/src/subversion-1.2.3/apr-util/include  -I/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python/libsvn_swig_py 
 -prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo 
subversion/bindings/swig/python/svn_client.c
/usr/local/src/subversion-1.2.3/libtool: line 1: none: command not found
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1


just in case you need the same information in the other post:
  which python => /usr/local/bin/python
  which python2 => /usr/bin/python2
  python -V => Python 2.4.1
  python2 -V => Python 2.2.2
  python build/get-py-info.py --compile =>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes  
-fPIC
  python2 build/get-py-info.py --compile =>
USAGE: build/get-py-info.py WHAT
  Returns information about how to build Python extensions.
  WHAT may be one of:
    --includes : return -I include flags
    --compile  : return a compile command
    --link     : return a link command
    --libs     : return just the library options for linking

I think I have to recompile swig with specifying python path 
[/usr/local/bin/python] also... let me try it.

Tried to reconfigure/make/make install swig, and reconfigure subversion with 
swig and python path and then make swig-py getting these warnings inside:
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be 
moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to 
be moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be 
moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be 
moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to 
be moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be 
moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be 
moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to 
be moved
libtool: link: warning: 
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be 
moved

when I try after that make install-swig-py... it's showing the same errors 
inside but with this at the end:
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/svn-python/libsvn

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
./build/copy-swig-py.sh "/usr/bin/python2" 
"/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644" 
"/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python" 
"/usr/local/lib/svn-python/libsvn" ""; ./build/copy-swig-py.sh 
"/usr/bin/python2" 
"/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644" 
"/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python/svn" 
"/usr/local/lib/svn-python/svn" ""; if test /usr/local/src/subversion-1.2.3 
!= /usr/local/src/subversion-1.2.3; then ./build/copy-swig-py.sh 
"/usr/bin/python2" 
"/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644" 
"/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python" 
"/usr/local/lib/svn-python/libsvn" ""; fi
Listing /usr/local/lib/svn-python/libsvn ...
Compiling /usr/local/lib/svn-python/libsvn/__init__.py ...
Compiling /usr/local/lib/svn-python/libsvn/client.py ...
Compiling /usr/local/lib/svn-python/libsvn/core.py ...
Compiling /usr/local/lib/svn-python/libsvn/delta.py ...
Compiling /usr/local/lib/svn-python/libsvn/fs.py ...
Compiling /usr/local/lib/svn-python/libsvn/ra.py ...
Compiling /usr/local/lib/svn-python/libsvn/repos.py ...
Compiling /usr/local/lib/svn-python/libsvn/wc.py ...
Listing /usr/local/lib/svn-python/svn ...
Compiling /usr/local/lib/svn-python/svn/__init__.py ...
Compiling /usr/local/lib/svn-python/svn/client.py ...
Compiling /usr/local/lib/svn-python/svn/core.py ...
Compiling /usr/local/lib/svn-python/svn/delta.py ...
Compiling /usr/local/lib/svn-python/svn/fs.py ...
Compiling /usr/local/lib/svn-python/svn/ra.py ...
Compiling /usr/local/lib/svn-python/svn/repos.py ...
Compiling /usr/local/lib/svn-python/svn/wc.py ...

Restarted my server tried "trac" again.. getting the same error:
Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 34, in ?
    from trac import sync
  File "/usr/local/lib/python2.4/site-packages/trac/sync.py", line 22, in ?
    from svn import core, fs, delta, repos
ImportError: No module named svn

Any Thoughts?
Thanks in advance.
Rida 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Swig Python binding

Posted by David James <ja...@gmail.com>.
On 9/3/05, Rida Al Barazi <ra...@gmail.com> wrote:
> Hi I'm trying to get trac working on my system and it requires SWIG python
> binding with subversion.. I'm trying to make it and install it but I'm
> getting this error: 
Hi Rida,

What version of SWIG are you using? Subversion 1.2.3 works best with
SWIG 1.3.25 or 1.3.24.

> -DSVN_SWIG_VERSION=1001 -DSWIG_TABLE_TYPE=subversion
Aha! Looks like you're using SWIG 1.1. Subversion won't work with SWIG 1.1.

Cheers,

David

-- 
David James -- http://www.cs.toronto.edu/~james

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Swig Python binding

Posted by Rida Al Barazi <ra...@gmail.com>.
Hi Roberts,

here is my system info:
Redhat Linux 9
Plesk 7.5 reloaded
Apache 2.0.40
Subversion 1.2.3
SWIG Version 1.3.25
Python 2.4.1
sqlite 2.8.16
pysqlite-2.0.3.
trac-0.8.4     #getting the following error when using trac-admin:

Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 34, in ?
    from trac import sync
  File "/usr/local/lib/python2.4/site-packages/trac/sync.py", line 22, in ?
    from svn import core, fs, delta, repos
ImportError: No module named svn

Thanks
Rida

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Swig Python binding

Posted by "Robert P. J. Day" <rp...@mindspring.com>.
On Sat, 3 Sep 2005, Rida Al Barazi wrote:

> Hi I'm trying to get trac working on my system and it requires SWIG
> python binding with subversion.. I'm trying to make it and install
> it but I'm getting this error:

what system?

rday

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org