You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by François Beausoleil <fb...@ftml.net> on 2004/12/17 18:45:20 UTC

Subversion Win32 Python Bindings Errors

Hi,

I have the same recurring problem - Win32 Python bindings report a 
strange error instead of the actual error.

For example:

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

Cmpilato gave me a bit of help in early December, and on his machine, 
the raised Exception is not SystemError, but SubversionError.

The printout when running on Linux:
1 2 0
Traceback (most recent call last):
   File "./test.py", line 12, in ?
     main()
   File "./test.py", line 9, in main
     core.run_app(repro)
   File "/usr/lib/python2.3/site-packages/svn/core.py", line 37, in run_app
     return apply(func, (pool,) + args, kw)
   File "./test.py", line 5, in repro
     repos.svn_repos_open('no-repos-named-that-way', pool)
libsvn._core.SubversionException: ("Can't open file 
'no-repos-named-that-way/format': No such file or directory", 2)


Thanks,
François

PS:  Yes, it's me again with the same problem that I've been bugging the 
list about for the past two weeks...

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

Posted by Max Bowsher <ma...@ukf.net>.
François Beausoleil wrote:
> 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

Please file an issue, so it doesn't get forgotten again.

Thanks,

Max.


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

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

Posted by François Beausoleil <fb...@ftml.net>.
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