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

RE: sample python scripts to get logs from the repository

From: Aditya Gandhi <agandhi_at_sapient.com>
Date: 2004-06-28 17:16:25 CEST

I am getting the same error for most of the sample scripts..

As an example
When I run it for dumpprops.py (available at
http://svn.collab.net/repos/svn/trunk/tools/examples/dumpprops.py)
passing it the path as http://svn.collab.net/repos/svn/trunk/ I get the
following error ...

--------------------------------------------------------------
SystemError: null argument to internal routine
Traceback (most recent call last):
  File
"C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py"
, line 310, in RunScript
    exec codeObject in __main__.__dict__
  File
"D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\sample_getpropdump.py",
line 72, in ?
    main()
  File
"D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\sample_getpropdump.py",
line 67, in main
    core.run_app(dumpprops, args[0], "", rev)
  File "C:\Python23\Lib\svn\core.py", line 33, in run_app
    return apply(func, (pool,) + args, kw)
  File
"D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\sample_getpropdump.py",
line 21, in dumpprops
    repos_ptr = repos.svn_repos_open(path, pool)
SystemError: null argument to internal routine
-----------------------------------------------------------------

=================================================================
Note: I also tried a stripped down version of code...
----------------------------------------------------------------
  # Initialize APR and get a POOL.
  core.apr_initialize()
  try:
    pool = core.svn_pool_create(None)
    try:
      repos.svn_repos_open("http://svn.collab.net/repos/svn/trunk/",
pool)
    finally:
      # Cleanup our POOL, and shut down APR.
      core.svn_pool_destroy(pool)
  finally:
    core.apr_terminate()
----------------------------------------------------------------------
In this case I got the following error
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py"
, line 310, in RunScript
    exec codeObject in __main__.__dict__
  File "D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\test.py", line
61, in ?
  File "D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\test.py", line
53, in func3
    core.svn_pool_destroy(pool)
SystemError: null argument to internal routine
----------------------------------------------------------------------

Regards
- Aditya Gandhi

  -----Original Message-----
  From: Max Bowsher [mailto:maxb@ukf.net]
  Sent: Monday, June 28, 2004 8:36 PM
  To: Aditya Gandhi; users@subversion.tigris.org
  Subject: Re: sample python scripts to get logs from the repository
  
  Aditya Gandhi wrote:
> Hi all,
> When I tried the scripts available at
> http://svn.collab.net/repos/svn/trunk/tools/examples/ I got a System
> Error ..
> The error message is attached below....
>
> Could this be because my repository is https based? If so how do I
login
> to the rep and then work on it.
>
> Note: I got the same error message (null argument to internal
routine)
> while trying out most of the sample scripts.
>
> Any help in correcting the error will be really appreciated.
  
  Please either post the code and traceback together, or, post a
traceback
  from running one of the sample scripts, stating which one
  you were running, which what command line.
  
  
  Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 28 17:18:45 2004

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.