Ok, I got them to compile, it was my fault.
I get the following error with several scripts:
linux:~/subversion-0.20.1/tools/examples # python svnlook.py
/usr/local/svn/repos1/ tree
python: subversion/libsvn_subr/path.c:148: svn_path_join: Assertion
`is_canonical (base, blen)' failed.
Aborted
After some trial and error I discovered the problem, the call should be:
python svnlook.py /usr/local/svn/repos1 tree
Without the leading /, maybe this should be checked instead of throwing an
assert.
It's also not clear where the bindings are installed, in IRC I got the tip
to use
PYTHONPATH=/usr/local/lib/svn-python ./svnlook.py .....
Maybe this should be in the readme or install file, if it's there then it
should be placed more prominently as I didn't see it.
Florian
On Sun, 30 Mar 2003 19:44:20 +0200, Florian Schulze
<florian.proff.schulze@gmx.net> wrote:
> Hi!
>
> I'm trying to compile the python bindings for svn, but I can't get it
> working. svn itself compiles without problems and runs perfectly fine.
> I tried 20.1, 19.1 and current CVS, but I always get the same error (see
> below).
> I'm using SuSE Linux 8.1, python 2.2.1, swig 1.3.19, libtool 1.4.2,
> apache 2.0.44, neon 0.23.7 and berkley db 4.0.14.
>
> Florian
>
> linux:~/subversion-0.19.1 # linux:~/subversion-0.19.1 # make swig-py
> -bash: linux:~/subversion-0.19.1: No such file or directory
> linux:~/subversion-0.19.1 # /usr/local/bin/swig -c -python -noproxy -
> I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
> 0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -o
> subversion/bindings/swig/python/svn_client.c
> ./subversion/bindings/swig/svn_client.i
> /bin/sh /root/subversion-0.19.1/libtool --silent --mode=compile -
> I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
> 0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -
> prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo
> subversion/bindings/swig/python/svn_client.c
> libtool: unrecognized option `-I/root/subversion-
> 0.19.1/subversion/bindings/swig'
> Try `libtool --help' for more information.
> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
> linux:~/subversion-0.19.1 # /bin/sh /root/subversion-0.19.1/libtool --
> silent --mode=compile -I/root/subversion-0.19.1/subversion/bindings/swig
> - I/root/subversion-0.19.1/subversion/include -I/root/subversion-
> 0.19.1/apr/include -prefer-pic -c -o
> subversion/bindings/swig/python/svn_client.lo
> subversion/bindings/swig/python/svn_client.c
> libtool: unrecognized option `-I/root/subversion-
> 0.19.1/subversion/bindings/swig'
> Try `libtool --help' for more information.
> linux:~/subversion-0.19.1 # libtool: unrecognized option `-
> I/root/subversion-0.19.1/subversion/bindings/swig'
>> Try `libtool --help' for more information.
>> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
>> linux:~/subversion-0.19.1 #
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 31 00:30:14 2003