You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Russell Glaue <rg...@cait.org> on 2003/07/15 20:10:45 UTC
Error - ViewCVS for SVN
Hello.
We have been using ViewCVS 1.0-dev 20030404 for the past three months
with Subversion 0.22.2 and previous.
When we upgraded to Subversion 0.24.2, ViewCVS broke.
Here is the error message:
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/data/lib/viewcvs/lib/viewcvs.py", line 3037, in main
run_viewcvs(server)
File "/data/lib/viewcvs/lib/viewcvs.py", line 2924, in run_viewcvs
request = Request(server)
File "/data/lib/viewcvs/lib/viewcvs.py", line 251, in __init__
import vclib.svn
File "/data/lib/viewcvs/lib/vclib/svn/__init__.py", line 26, in ?
from svn import fs, repos, util
ImportError: cannot import name util
SVN Administrator
Powered by
ViewCVS 1.0-dev
Okay
So I figured something changed, and thus I upgraded ViewCVS to the
latest 1.0-dev in CVS, 1.0-dev 20030714. However this version does not
work with 0.24.2 either.
Here is the error message:
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/data/lib/viewcvs-0.9.2-20030714/lib/viewcvs.py", line 3162, in
main
request.run_viewcvs()
File "/data/lib/viewcvs-0.9.2-20030714/lib/viewcvs.py", line 251, in
run_viewcvs
self.rootpath, rev)
File "/data/lib/viewcvs-0.9.2-20030714/lib/vclib/svn/__init__.py",
line 238, in __init__
youngest = fs.youngest_rev(self.fs_ptr, self.pool);
AttributeError: 'svn.fs' module has no attribute 'youngest_rev'
Now I know this is in development and is subject to change and
problems, however I also know that collab.net is successfully using
1.0-dev with their 0.25.0 Subversion:
http://svn.collab.net/viewcvs-dev/svn/
I also know this is not the View CVS maillist, however I know a
developer of Subversion is working with ViewCVS team to make the
application work with Subversion. So thus I am mailing this out to the
Subversion mail list.
Any developer know about the compatibility issues of Subversion with
ViewCVS?
Did something change? Do I need to change something?
-RG
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error - ViewCVS for SVN
Posted by Russell Glaue <rg...@cait.org>.
Check this out.
http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=199201
Debian has a ViewCVS fix as 0.9.2+cvs.1.0.dev.2003.05.05-2
Does this have any validity?
We installed this patch, instead of what you suggested, and it fixed
our issue.
Should we do the python rebinding as you suggested, or instead apply
this patch?
-RG
On Tuesday, Jul 15, 2003, at 15:19 America/Chicago, cmpilato@collab.net
wrote:
> Russell Glaue <rg...@cait.org> writes:
>
>> Hello.
>>
>> We have been using ViewCVS 1.0-dev 20030404 for the past three months
>> with Subversion 0.22.2 and previous.
>> When we upgraded to Subversion 0.24.2, ViewCVS broke.
>
> [...]
>
>> Did something change? Do I need to change something?
>
> Yes, the Subversion bindings changed. The easiest fix is to:
>
> 1. ensure that you have two directories, 'svn' and 'libsvn', in
> your Subversion python install location (typically
> /usr/local/lib/svn-python/svn).
>
> 2. remove old Subversion bindings ('svn') from your Python
> site-packages
> location (/usr/local/lib/python2.2/site-packages, for me).
>
> 3. create two softlinks in the Python site-packages directory, to
> each of the two dirs in the Subversion python install
> directory:
>
> cd /usr/local/lib/python2.2/site-packages
> ln -s /usr/local/lib/svn-python/svn ./svn
> ln -s /usr/local/lib/svn-python/libsvn ./libsvn
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error - ViewCVS for SVN
Posted by cm...@collab.net.
Russell Glaue <rg...@cait.org> writes:
> Hello.
>
> We have been using ViewCVS 1.0-dev 20030404 for the past three months
> with Subversion 0.22.2 and previous.
> When we upgraded to Subversion 0.24.2, ViewCVS broke.
[...]
> Did something change? Do I need to change something?
Yes, the Subversion bindings changed. The easiest fix is to:
1. ensure that you have two directories, 'svn' and 'libsvn', in
your Subversion python install location (typically
/usr/local/lib/svn-python/svn).
2. remove old Subversion bindings ('svn') from your Python site-packages
location (/usr/local/lib/python2.2/site-packages, for me).
3. create two softlinks in the Python site-packages directory, to
each of the two dirs in the Subversion python install
directory:
cd /usr/local/lib/python2.2/site-packages
ln -s /usr/local/lib/svn-python/svn ./svn
ln -s /usr/local/lib/svn-python/libsvn ./libsvn
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error - ViewCVS for SVN
Posted by Lele Gaifax <le...@seldati.it>.
>>>>> Russell Glaue l'ha dit:
Russell> fs.youngest_rev(self.fs_ptr, self.pool); AttributeError:
Russell> 'svn.fs' module has no attribute 'youngest_rev'
Yes. This is because of this, around line 32 of fs.py:
# copy the wrapper functions out of the extension module, dropping the
# 'svn_fs_' prefix.
# XXX this might change in the future once we have a consistent naming
# scheme
for name in dir(libsvn.fs):
if name[:7] == 'svn_fs_':
vars()[name[7:]] = getattr(libsvn.fs, name)
Russell> Do I need to change something?
Well, in the meantime, changing the latest line to
vars()[name] = vars()[name[7:]] = getattr(libsvn.fs, name)
will work and should be almost harmless.
hth,
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
email: lele@seldati.it | -- Fortunato Depero, 1929.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org