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

Problems with python bindings and ViewCVS

From: Jack Ivey <ivey_at_altair.com>
Date: 2004-02-05 22:59:44 CET

Hi all,
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
an error:

In file included from subversion/bindings/swig/python/core.c:756:
/homes/woprf/i/ivey/svnsrc/subversion-0.36.0/subversion/include/svn_md5.h:26
:21:
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:

>>> import svn.repos
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
symbol:
 svn_delta_noop_window_handler

Any suggestions?

Thanks,
Jack

Specifics are:

OS: Redhat 8
Subversion: 0.36.0
We got and installed all the RPMs from:
http://summersoft.fay.ar.us/pub/subversion/latest/redhat-8.0/bin/
got the Subversion tar file from the web site, ran
$ ./configure --enable_maintainer_mode
$ make
$ make swig-py
# install-swig-py

Which put something looking like Python bindings in
/usr/local/lib/svn-python
This seemed to be out of the Python path, so I moved the directories to
/usr/lib/python2.2/site-packages/libsvn and .../svn.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 5 23:00:12 2004

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.