[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-15 02:24:49 CEST

In my machine the error message is this.
The hex encoded part is "UTF-8" encoded Japanese message which means
"The directory is not empty".

But the directory is empty. I think the reason is that backslashs are
too many in the path.

D:\svnwork\subversion\trunk>D:\svnwork\subversion\trunk\subversion\bindings\swig\python\tests\run_al
l.py
.................................................E.Traceback (most
recent call last):
  File "D:\svnwork\subversion\trunk\subversion\bindings\swig\python\tests\run_all.py",
line 19, in <
module>
    unittest.main(defaultTest='suite')
  File "C:\Python25\lib\unittest.py", line 759, in __init__
    self.runTests()
  File "C:\Python25\lib\unittest.py", line 796, in runTests
    result = self.testRunner.run(self.test)
  File "C:\Python25\lib\unittest.py", line 696, in run
    test(result)
  File "C:\Python25\lib\unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "C:\Python25\lib\unittest.py", line 424, in run
    test(result)
  File "C:\Python25\lib\unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "C:\Python25\lib\unittest.py", line 424, in run
    test(result)
  File "D:\svnwork\subversion\trunk\subversion\bindings\swig\python\tests\trac\test.py",
line 35, in
 __call__
    self.tearDown()
  File "D:\svnwork\subversion\trunk\subversion\bindings\swig\python\tests\trac\versioncontrol\tests\
svn_fs.py", line 62, in tearDown
    repos.delete(REPOS_PATH)
  File "C:\Python25\lib\site-packages\libsvn\repos.py", line 67, in
svn_repos_delete
    return apply(_repos.svn_repos_delete, args)
libsvn._core.SubversionException: ("Can't remove
'c:\\docume~1\\user\\locals~1\\temp\\trac-svnrepos\\db\\revs\\0':
\xe3\x83\x87\xe3\x82\xa3\xe3\x83\xac\xe3\x82\xaf\xe3\x83\x88\xe3\x83\xaa\xe3\x81\
x8c\xe7\xa9\xba\xe3\x81\xa7\xe3\x81\xaf\xe3\x81\x82\xe3\x82\x8a\xe3\x81\xbe\xe3\x81\x9b\xe3\x82\x93\
xe3\x80\x82 ", 720145)

Regards.
Masaru.

2007/7/15, David James <james@cs.toronto.edu>:
> On 7/11/07, Joe Swatosh <joe.swatosh@gmail.com> wrote:
> > 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)
>
> Can you look in the generated directory and see what files are in
> there that svn_repos_delete couldn't delete? Maybe some of the files
> are marked as read-only, or are still in-use, and this is causing
> problems for svn_repos_delete?
>
> > +%clear long long;
> > +%clear unsigned long long;
>
> Thanks for the patch, Joe. I committed this patch as part of r25740.
>
> Cheers,
>
> David
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 15 02:24:35 2007

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.