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

Re: How can i build subversion python binding

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-01-16 01:25:50 CET

Ying, this type of question is inappropriate for this mailing list,
which is about the development of Subversion itself. Please take this
discussion to the users@ mailing list.

That said, it looks like you haven't adjusted Python's sys.path to
include the Python bindings. You can do so by setting the PYTHONPATH
environment variable, or manipulating sys.path directly. Try this:

  $ PYTHONPATH=/usr/local/subversion/lib/svn-python python -c 'from svn import client'
  $

- Dan

On Mon, 15 Jan 2007, ying lcs wrote:

> Thanks. I have following the documentation and install SWIG,
> recompiles subversion and do a 'make swig-py' and 'make
> intall-swig-py'
>
> But when I try to test it via python -c "from svn import client", I
> get this error message 'svn' is not found:
>
> # python -c "from svn import client"
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> ImportError: No module named svn
>
> I have checked I have sub-directories 'libsvn', 'svn' under
> /usr/local/lib/svn-python/
>
> cd /usr/local/lib/svn-python/
> [root@localhost svn-python]# ls
> libsvn svn
>
> Please tell me what am I missing. I appreciate your help.
>
> On 1/15/07, Ben Collins-Sussman <sussman@red-bean.com> wrote:
> >At the bottom of the INSTALL file, there are these instructions:
> >
> >
> >V. PROGRAMMING LANGUAGE BINDINGS (PYTHON, PERL, RUBY, JAVA)
> > ========================================================
> >
> > For Python, Perl and Ruby bindings, see the file
> >
> > ./subversion/bindings/swig/INSTALL
> >
> >
> >
> >
> >On 1/15/07, ying lcs <yinglcs@gmail.com> wrote:
> >> Hi,
> >>
> >> I download subversion source code, but in the '.configure' I cant'
> >> find an option which build python binding. Can you please tell me how
> >> can I build subversion python binding?
> >>
> >> Thank you.
> >>
> >> ---------------------------------------------------------------------
> >> 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

  • application/pgp-signature attachment: stored
Received on Tue Jan 16 01:29:39 2007

This is an archived mail posted to the Subversion Dev mailing list.