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

Re: swig-python problem

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2007-09-21 19:55:32 CEST

On 9/20/07, Binod <binod3@gmail.com> wrote:
> Hi,
> I do not have root access and I am getting errrors like
> Traceback (most recent call last):
> File "./mailer.py", line 41, in ?
> import svn.fs
> ImportError: No module named svn.fs
> I know that is coming because of not properly binding the python, as other
> things beside work related with python are running fine.
> Is it possible to bind swig python after subversion is compiled and
> installed?
> The second is , if I am not root is it still possible to install the
> swig-python to the home directory where subversion repository is created,
> and add that particular python to the python path of that particular
> directory.
> I googled around and couldnot get any further than this website
> http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/INSTALL
> Sun sparc64, subversion 1.4.3,
> Any help or direction will be highly appreciated.

I am not exactly sure what you mean by "binding the python". If you mean,
just building and installing the swig python bindings for subversion, yes,
you are right. The build for the python bindings will install a shared
library and also install the python modules. I believe the installation
instructions also has a step to update the default module search path
(PYTHONPATH, if you will) for the python installation so that it will also
search the newly installed python modules.

You can certainly build the swig python bindings after subversion is
compiled and installed. But if you want it to be installed along with the
subversion installation (presumably under /usr/local), then you will need
root access.

If you do not have root access, you can still download subversion source,
compile subversion and the python bindings and then install it to a
different location to which you have write permission. After that you can
update add that path to your PYTHONPATH and the python program should find
the module to import.

-Hari Kodungallur
Received on Fri Sep 21 19:56:01 2007

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.