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

"null argument to internal routine" using repos.svn_repos_open (Python bindings)

From: Franšois Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-12-03 17:29:10 CET

Hi !

Well, I'm trying to generate something more generic than:

cmpilato_at_tigris.org writes:
> Rename tags for 3-tuple consistency. This change brought to you by
> a custom one-off script written in Python to the Subversion bindings.
> Kids, do not try this at home.

Here's part of my Python script:
repos_url = sys.argv[-1]
print 'Accessing repository at [%s]' % repos_url

# Initialize
pool = core.svn_pool_create(None)
if repos_url == None or pool == None:
   print 'Null argument: repos_url=[%s], pool=[%s]' % (repos_url, pool)
repo = repos.svn_repos_open(repos_url, pool)

Here's the command line and traceback:
$ python rsvn.py svn://localhost/
Accessing repository at [svn://localhost/]
repos_url=[svn://localhost/], pool=[_98158d00_p_apr_pool_t]
Traceback (most recent call last):
   File "rsvn.py", line 70, in ?
     repo = repos.svn_repos_open(repos_url, pool)
SystemError: null argument to internal routine

I'm wondering which argument is null ? I'm using 1.1.1, and I
downloaded a fresh version of the Python bindings a few hours ago.

Version numbers are (on Win2K SP4):

$ svn --version
svn, version 1.1.0 (r11180)
    compiled Oct 4 2004, 21:11:18

$ python
Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on

Thanks for any information !

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Dec 3 17:36:10 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.