You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Casper Hornstrup <ch...@users.sourceforge.net> on 2002/12/28 10:30:53 UTC
Trouble with ViewCVS and Subversion
Hi. I'm trying to get ViewCVS from CVS working with Subversion.
I get a python error however:
Python Exception Occurred
Traceback (most recent call last):
File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2930, in
run_cgi
main()
File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2823, in main
request = Request()
File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 251, in
__init__
except vclib.ReposNotFound:
UnboundLocalError: local variable 'vclib' referenced before assignment
Python version is 2.2.
I have installed SWIG 1.3.16 and as described in
trunk/subversion/bindings/swig/INSTALL I did this:
make swig-py-ext
make install-swig-py-ext
I had to export PYTHONPATH as /usr/local/lib/python2.2/site-packages to
get
python to find the svn package. I have exported this in
apache2/bin/envvars
too (and restarted apache).
python -c "from svn import client" works after this.
Now if I do this:
cd trunk/tools/examples
python svnlook.py /var/svn/public
I get:
Traceback (most recent call last):
File "svnlook.py", line 388, in ?
main()
File "svnlook.py", line 385, in main
util.run_app(SVNLook, sys.argv[1], cmd, rev, txn)
File "/usr/local/lib/python2.2/site-packages/svn/util.py", line 40, in
run_app
svn_pool_destroy(pool)
TypeError: Type error. Expected _p_apr_pool_t
Any help is appreciated.
Casper Hornstrup
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
RE: Trouble with ViewCVS and Subversion
Posted by Casper Hornstrup <ch...@users.sourceforge.net>.
> -----Original Message-----
> From: Craig Rodrigues [mailto:rodrigc@attbi.com]
> Sent: 28. december 2002 18:34
> To: Casper Hornstrup
> Cc: dev@subversion.tigris.org
> Subject: Re: Trouble with ViewCVS and Subversion
>
>
> On Sat, Dec 28, 2002 at 11:30:53AM +0100, Casper Hornstrup wrote:
> > Hi. I'm trying to get ViewCVS from CVS working with
> Subversion. I get
> > a python error however:
> >
> > Python Exception Occurred
> > Traceback (most recent call last):
> > File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2930, in
> > run_cgi
> > main()
> > File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line
> 2823, in main
> > request = Request()
> > File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 251, in
> > __init__
> > except vclib.ReposNotFound:
> > UnboundLocalError: local variable 'vclib' referenced before
> assignment
>
>
> What platform are you running under?
> Are the Subversion Python swig shared object libraries in the
> LD_LIBRARY_PATH before you start the apache server?
The box runs mandrake linux.
I put apache2/lib in /etc/ld.so.conf and ran ldconfig.
I also had to symlink the svn module like this:
ln -s /usr/local/lib/python2.2/site-packages/svn
/usr/lib/python2.2/site-packages/svn
since the svn module is installed with prefix /usr/local and not with
the same prefix used for my python installation (/usr).
Now it works. Thank you for your suggestion.
Casper Hornstrup
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Trouble with ViewCVS and Subversion
Posted by Craig Rodrigues <ro...@attbi.com>.
On Sat, Dec 28, 2002 at 11:30:53AM +0100, Casper Hornstrup wrote:
> Hi. I'm trying to get ViewCVS from CVS working with Subversion.
> I get a python error however:
>
> Python Exception Occurred
> Traceback (most recent call last):
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2930, in
> run_cgi
> main()
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2823, in main
> request = Request()
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 251, in
> __init__
> except vclib.ReposNotFound:
> UnboundLocalError: local variable 'vclib' referenced before assignment
What platform are you running under?
Are the Subversion Python swig shared object libraries in the LD_LIBRARY_PATH
before you start the apache server?
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@attbi.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org