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

Re: swig bindings

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2002-07-23 02:42:27 CEST

On Mon, 22 Jul 2002, Scott Lamb wrote:

> I'm trying to get the swig python bindings to work, so I can run
> cvs2svn.py. I'm running a RedHat 7.2 system, so I've got:
>
> python 1.5.2 (stock, /usr/bin/python / /usr/lib/python1.5)
> python 2.1.1 (stock, /usr/bin/python2 / /usr/lib/python2.1)
> swig 1.3.13 (my rpm, configured --with-python=/usr/bin/python2)
>
> Subversion installs a library to /usr/local/lib/libsvn_swig_py-1.so, but
> that's it.

python setup.py install in the swig/python dir.

>I don't see anything
>installed to /usr/lib/python2.1. I
> assume the stuff in subversion/bindings/swig/python/svn should end up
> there somewhere?
>
> When I try to run cvs2svn.py:
>
> $ cd tools/cvs2svn
> $ PYTHONPATH=~/viewcvs-0.9.2/lib; export PYTHONPATH
> $ ./cvs2svn.py
> Traceback (innermost last):
> File "./cvs2svn.py", line 17, in ?
> from svn import fs, util, _delta, _repos
> ImportError: No module named svn
> $ PYTHONPATH=$PYTHONPATH:../../subversion/bindings/swig/python
> $ export PYTHONPATH
> $ ./cvs2svn.py
> Traceback (innermost last):
> File "./cvs2svn.py", line 17, in ?
> from svn import fs, util, _delta, _repos
> File "/blah/svn/fs.py", line 19, in ?
> import _fs
> ImportError: No module named _fs
>
> I'm afraid I'm not too familiar with Python and swig.
>
> For that matter, am I using the right rcsparse? The one from viewcvs?

yes
>
> Thanks,
> Scott
>
>
> ---------------------------------------------------------------------
> 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 Tue Jul 23 02:42:57 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.