[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: Binod <binod3_at_gmail.com>
Date: 2007-09-24 19:00:02 CEST

Thanks for help Hari,

and here is what i did to get going.

http://www.blastwave.org/packages.php/pysvn
http://www.blastwave.org/packages.php/subversion
http://www.blastwave.org/packages.php/python

Downloaded dependencies required for subversion, subversion itself and then
got the pysvn and python from this website and then made sure that when I
run .py files it takes the python that got installed from this
website, i.ebasically set the PYTHONPATH.

Then all set.

This website provides compiled binaries for solaris .

Cheers !

On 9/21/07, Hari Kodungallur <hkodungallur@gmail.com> wrote:
>
>
> 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.
>
> Regards,
> -Hari Kodungallur
>
Received on Mon Sep 24 19:00:35 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.