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

Re: ViewCVS (?)

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2005-10-11 00:01:33 CEST

On 10/10/05, Gale, David <David.Gale@hypertherm.com> wrote:
> I got past my earlier problem (I hadn't realized I needed to explicitly
> enable mod_dav when I compiled apache), and am now trying to set up
> ViewCVS to look at my subversion repositories, following the
> instructions here: <http://www.baus.net/archives/000143.html>.
> Everything goes smoothly until I actually try to hit the /viewcvs
> directory, at which point I get:
> An Exception Has Occurred
> Python Traceback
> Traceback (most recent call last):
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3194, in main
> request.run_viewcvs()
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 258, in
> run_viewcvs
> import vclib.svn
> File "/usr/local/viewcvs-1.0-dev/lib/vclib/svn/__init__.py", line 27,
> in ?
> from svn import fs, repos, core, delta
> ImportError: No module named svn
> This was generated from the snapshot supplied on that site; I also tried
> the latest nightly ViewCVS, and got the same error. Any thoughts on how
> I can fix this/what I'm doing wrong?

I assume that you have already installed the SWIG python bindings. If
not, build and install it first (read the
subversion/bindings/swig/INSTALL file).

After installing the SWIG pythong bindings, make sure the python path
sees this swig modules. Add the following two lines to the top of the
file viewcvs/www/cgi/viewcvs.cgi

import sys

sys.path.insert(0, '/usr/local/lib')
sys.path.insert(0, '/usr/local/lib/svn-python')


-Hari Kodungallur
SpikeSource Inc.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 11 00:04:08 2005

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.