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

Getting better error messages out of the Python bindings

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-12-08 18:38:41 CET

Hi,

When something fails using the Python bindings, I get the following message:

   SystemError: null argument to internal routine

Is there a way to coax the bindings to get me the *real* error message ?

For example, the following repro recipe exhibits the error:

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()

On my machine, the output looks like this:
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

I'm using Subversion 1.1.1 on Win2K SP4.

Thanks !
François

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 8 18:47:42 2004

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.