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

Re: Running Python bindings tests on Windows?

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2006-12-21 02:09:43 CET

On 12/20/06, D.J. Heap <djheap@gmail.com> wrote:
> On 12/20/06, Joe Swatosh <joe.swatosh@gmail.com> wrote:
> >
<snip>
> [snip]
>
>
> You may also need to copy all the support dll's (apr, ssl, db4, etc.)
> if they are not in your PATH somewhere.
>
> DJ
>

DJ,

Thanks for the hint. I did indeed have all the dll's available on the
path,however, I (not a Python programmer) didn't realize that I needed
to create a .pth file in the site-packages directory. With that in
place, my tests now look like:

<test>
D:\SVN\src-trunk\subversion\bindings\swig\python>python tests\run_all.py
..........................EEFEEEEEEEFEEEEEEEEEE.....Traceback (most
recent call last):
  File "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 72, in tearDown
    shutil.rmtree(REPOS_PATH)
  File "C:\python24\lib\shutil.py", line 163, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\python24\lib\shutil.py", line 163, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\python24\lib\shutil.py", line 168, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\python24\lib\shutil.py", line 166, in rmtree
    os.remove(fullname)
OSError: [Errno 13] Permission denied:
'c:\\docume~1\\joe-sw~1.acs\\locals~1\\temp\\trac-svnrepos\\test0\\db\\format'
</test>

I then have to delete the trac-svnrepos directory out of TEMP before
any of the tests will work again. Any hints to get me past this??

============

Seems to me that the INSTALL file in the bindings\swig directory
should mention copying out of
Release\subversion\bindings\swig\python\libsvn_swig_py\*.dll into the
libsvn folder. (I put it there because that's where
svn-win32-1.4.2_py24.zip has it). It also should mention the need for
the .pth file to help Python find the new packages.

Thanks again for the tip that got me moving.

--Joe Swatosh

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 21 02:10:16 2006

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