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

Wrong exception using Win32 Python bindings (Was: Subversion Win32 Python Bindings Errors)

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2005-01-20 22:10:52 CET

I just upgraded to 1.1.3. I thought this problem might have been fixed:

On 2004-12-17 13:45, François Beausoleil wrote:
> from svn import core, fs, repos
>
> def repro(pool):
> repos.svn_repos_open('no-repos-named-that-way', pool)
>
> def main():
> print core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO
> core.run_app(repro)
>
> if __name__ == '__main__':
> main()
>
> This runs and reports the following:
> 1 1 1
> Traceback (most recent call last):
> File "C:\java\rsvn\recipe.py", line 11, in ?
> main()
> File "C:\java\rsvn\recipe.py", line 8, in main
> core.run_app(repro)
> File "C:\Python23\lib\svn\core.py", line 33, in run_app
> return apply(func, (pool,) + args, kw)
> File "C:\java\rsvn\recipe.py", line 4, in repro
> repos.svn_repos_open('no-repos-named-that-way', pool)
> SystemError: null argument to internal routine

The problem is that I should get a SubversionError, not a SystemError.
With the SystemError, there's no way I can guess what went wrong.

I've tried to bring attention to this problem before, to no avail:
http://svn.haxx.se/dev/archive-2004-12/0140.shtml
http://svn.haxx.se/dev/archive-2004-12/0370.shtml

Other reports by other users:
http://svn.haxx.se/users/archive-2004-03/1292.shtml
http://svn.haxx.se/users/archive-2004-06/1283.shtml
http://svn.haxx.se/users/archive-2004-10/0295.shtml
http://svn.haxx.se/dev/archive-2004-05/0812.shtml

Thanks for any help on this.

François Beausoleil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 20 22:10:57 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.