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

Re: svn_python SWIG bindings & dump file format

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 16 Sep 2009 16:58:59 +0100

On Wed, Sep 16, 2009 at 04:45:38PM +0100, Ryan Heniser wrote:
> Hello all,
>
> I am unable to use the svn SWIG python bindings when using python 2.5.1
> and svn 1.6.5.
>

> [Wed 16-09-09 4:29:02pm] ryan-he_at_georgia:/jobs/rnd_dev > python
> Python 2.5.1 (r251, Sep 4 2007, 19:03:53)
> [GCC 4.1.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from svn import fs, repos, core
> >>> assert (core.SVN_VER_MAJOR, core.SVN_VER_MINOR) >= (1, 6),
> "Subversion 1.6 or later required"
> >>> repository = repos.open('/mpc/devel/ryan-he/dev/svn/.svn')

This does not look right. You are trying to open a repository.
But you are passing a path to a working copy meta data directory.
Not quite the same thing.

Stefan

> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/software/subversion/1.6.5/linux.centos4.x86_64/lib/svn-python/libsvn/repos.py",
> line 55, in svn_repos_open
> return apply(_repos.svn_repos_open, args)
> svn.core.SubversionException: ("Expected repository format '3' or '5';
> found format '9'", 165005)
> >>> print repos.__file__
> /software/python/2.5.1/linux.centos4.x86_64/lib/python2.5/site-packages/svn/repos.pyc
> >>> print repos.DUMPFILE_FORMAT_VERSION
> 3
> >>> print _repos.__file__
> /software/python/2.5.1/linux.centos4.x86_64/lib/python2.5/site-packages/libsvn/_repos.so
> >>> print _repos.SVN_REPOS_DUMPFILE_FORMAT_VERSION
> 3
>
> =============================================
>
>
> I took a look at
> http://svn.collab.net/repos/svn/trunk/subversion/include/svn_repos.h
>
> There is a hard coded variable SVN_REPOS_DUMPFILE_FORMAT_VERSION at line
> 2048 that is set to 3. But, I'm not about to kludge it by setting this
> to 9 without asking here first. I've blow several hours tracking this
> down. Would greatly appreciate some timely help here. Thanks in advance!
>
> Ryan
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395616
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395625

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-16 18:00:00 CEST

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.