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

RE: Problems with python bindings and ViewCVS

From: Bryan Simmons <bznutz_is_king_at_yahoo.com>
Date: 2004-02-06 02:20:52 CET

In the latest ViewCVS documentation it tells you to
try the very python
command that you tried. It also says that if you get
the error you got
that your PYTHONPATH does not take into account the
svn-python libs.
You have to find some way to add your svn-python libs
to your
PYTHONPATH.

You can:
A. Hardcode the path to your svn-python libs into the
viewcvs.py.
B. Add the svn-python libs path to the PYTHONPATH env
var of the user
who runs apache2.
C. Create a symbolic link in your /usr/lib/python2.x
directory that
points to your svn-python directory.

I did A and it works swimmingly. :) I have heard tell
that C works too.

 
Regards,
 
Bryan Simmons

-----Original Message-----
From: Jack Ivey [mailto:ivey@altair.com]
Sent: Thursday, February 05, 2004 5:00 PM
To: users@subversion.tigris.org
Subject: Problems with python bindings and ViewCVS

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

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 6 02:21:09 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.