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

[RESOLVED] Re: "null argument to internal routine" using repos.svn_repos_open (Python bindings)

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-12-06 15:14:09 CET

Hehe, sometimes, things are so *obvious*, it's not even funny:

$ cd
E:\rsvn
^^^^^^^^

$ svn cat -rBASE setup.bat
...

python rsvn.py --username=test --password=pass \
   --message="Combined attempt" D:\rsvn\repos <commands.lst
                                ^^^^^^^^^^^^^

I was attempting to access a non-existent repository from my script.
Problem solved :)

Bye !
François

François Beausoleil wrote:
> Hello everyone !
>
> After a few more tests, I find that I have a few other problems. For
> instance, I can't get tools/examples/getfile.py to run.
>
> Details, and sample run below:
>
> WinXP SP2, fsfs repository on FAT32, client and server on same physical
> machine.
>
> $ svn --version
> svn, version 1.1.1 (r11581)
> compiled Oct 23 2004, 14:47:47
>
> $ svn info getfile.py
> URL: http://svn.collab.net/repos/svn/tags/1.1.1/tools/examples/getfile.py
>
> $ python
> Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on
> win32
>
> $ python getfile.py D:\svn\repos rac/leadmanagement/trunk/build.xml
> Traceback (most recent call last):
> File "getfile.py", line 52, in ?
> main()
> File "getfile.py", line 49, in main
> core.run_app(getfile, args[0], args[1], rev)
> File "C:\Python\lib\svn\core.py", line 33, in run_app
> return apply(func, (pool,) + args, kw)
> File "getfile.py", line 22, in getfile
> repos_ptr = repos.svn_repos_open(path, pool)
> SystemError: null argument to internal routine
>
> I have found a thread by tonal on 2004-05-19 describing the same
> problem: http://svn.haxx.se/dev/archive-2004-05/0812.shtml
>
> Quoting tonal:
> > ===command line:
> > c:examples>getfile.py C:/Lang/Projects/Terra/SVN bad.txt
> > ==output:
> > Using youngest revision 155
> > Traceback (most recent call last):
> > File "C:\Lang\Subversion\tools\examples\getfile.py", line 52, in ?
> > main()
> > File "C:\Lang\Subversion\tools\examples\getfile.py", line 49, in main
> > core.run_app(getfile, args[0], args[1], rev)
> > File "C:\Lang\Python23\lib\site-packages\svn\core.py", line 33, in
> run_app
> > return apply(func, (pool,) + args, kw)
> > File "C:\Lang\Subversion\tools\examples\getfile.py", line 30, in
> getfile
> > file = fs.file_contents(root, filename, pool)
> > SystemError: null argument to internal routine
>
> The major difference I can see is that in tonal's case, he can open the
> repository, whereas I cannot. I tried using Python 2.4, but got an
> import error instead:
>
> ImportError: Module use of python23.dll conflicts with this version of
> Python.
>
> So, what else can I do at this point ?
>
> Thanks !
> François
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

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

Received on Mon Dec 6 15:21:05 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.