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

Re: Build Error when compiling python binding on Windows with VC6 at r25159 or later

From: masaru tsuchiyama <m.tmatma_at_gmail.com>
Date: 2007-07-14 14:57:29 CEST

Hi Joe

> The below lets the bindings compile, but I still get errors when
> running the tests:
I also got the errors from subversion\bindings\swig\python\tests\run_all.py.
I had thought that it is enough If only wintest.py is on success.

Regards.
Masaru.

2007/7/12, Joe Swatosh <joe.swatosh@gmail.com>:
> Hi
>
> On 7/10/07, masaru tsuchiyama <m.tmatma@gmail.com> wrote:
> > Hello
> >
> > > > Masaru, can you test this out for us? If it works, David's suggestion
> > > > sounds like a better general approach.
> >
> > > In the Ruby bindings, I see that you used "%clear long long" to clear
> > > out the old SWIG typemaps. Does this work in the Python bindings? If
> > > so, perhaps we should get rid of this hack to python.swg altogether
> > > and just use %clear long long and/or %clear unsigned long long.
> >
> > Does anybody make a patch to implement David's suggestion?
> >
> > Regards.
> > Masaru
> >
>
> The below lets the bindings compile, but I still get errors when
> running the tests:
>
> ==============
> .................................................E.Traceback (most
> recent call last):
> File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\run_all.py",
> line 19, in ?
> unittest.main(defaultTest='suite')
> File "C:\Python24\lib\unittest.py", line 759, in __init__
> self.runTests()
> File "C:\Python24\lib\unittest.py", line 796, in runTests
> result = self.testRunner.run(self.test)
> File "C:\Python24\lib\unittest.py", line 696, in run
> test(result)
> File "C:\Python24\lib\unittest.py", line 428, in __call__
> return self.run(*args, **kwds)
> File "C:\Python24\lib\unittest.py", line 424, in run
> test(result)
> File "C:\Python24\lib\unittest.py", line 428, in __call__
> return self.run(*args, **kwds)
> File "C:\Python24\lib\unittest.py", line 424, in run
> test(result)
> File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\trac\test.py",
> line 35, in __call__
> self.tearDown()
> File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\trac\versioncontrol\tests\svn_fs.py",
> line 62, in tearDown
> repos.delete(REPOS_PATH)
> File "C:\Python24\lib\site-packages\libsvn\repos.py", line 59, in
> svn_repos_delete
> return apply(_repos.svn_repos_delete, args)
> libsvn._core.SubversionException: ("Can't remove ' ': The directory is
> not empty. ", 720145)
> ================
>
> Index: subversion/bindings/swig/include/svn_global.swg
> ===================================================================
> --- subversion/bindings/swig/include/svn_global.swg (revision 25714)
> +++ subversion/bindings/swig/include/svn_global.swg (working copy)
> @@ -123,6 +123,9 @@
> apr_seek_where_t, apr_fileperms_t }
> %apply unsigned long { unsigned char, unsigned short, unsigned int, size_t }
>
> +%clear long long;
> +%clear unsigned long long;
> +
> /* These typemaps use apr_int64_t so that they will work on Win32 and Unix */
> %typemap (in) long long
> " $1 = ($1_ltype) PyLong_AsLongLong($input); ";
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 14 14:57:03 2007

This is an archived mail posted to the Subversion Dev mailing list.