Jack Ivey wrote:
>I'm having a hard time getting the Subversion python bindings to
>work so I can use ViewCVS. The problems I have are:
>1) When I tried to build the bindings with make swig-py, I get
>In file included from subversion/bindings/swig/python/core.c:756:
>apr_md5.h: No such file or directory
>make: *** [subversion/bindings/swig/python/core.lo] Error 1
>This appears to be a bug that was supposed to be fixed last year(issue 1308)
>which made me go "hmmm". A patch solved that problem.
>2) After I get the bindings installed I run Python and get:
>Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/site-packages/svn/repos.py", line 19, in ?
> import svn.fs
> File "/usr/lib/python2.2/site-packages/svn/fs.py", line 28, in ?
> import core
> 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 4, in ?
> import _core
>ImportError: /usr/lib/python2.2/site-packages/libsvn/_core.so: undefined
>OS: Redhat 8
>We got and installed all the RPMs from:
>got the Subversion tar file from the web site, ran
>$ ./configure --enable_maintainer_mode
>$ make swig-py
>Which put something looking like Python bindings in
>This seemed to be out of the Python path, so I moved the directories to
>/usr/lib/python2.2/site-packages/libsvn and .../svn.
Hmm, if you grabbed from the "latest" directory, then, depending on when
you grabbed, you might have gotten 0.37.0 RPMs instead of 0.36.0 RPMs????
If you installed all the RPMs then you would have installed
subversion-python RPM, right?
But it looks like you were trying to rebuild the python bindings.
Why? Did the ones in subversion-python RPM not work correctly or something?
I just ran your test on my RedHat 8.0 machine with
subversion-python-0.36.0 RPM and had no errors.
Let me know if I didn't test something correctly.
- David Summers
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Thu Feb 5 23:27:58 2004