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

Ctypes Python Bindings Errors

From: Justin Johnson <justin_at_honesthacker.com>
Date: Wed, 18 Nov 2009 09:08:52 -0600

Hi,

I'm trying to get the new ctypes python bindings working. I have built them
successfully, but when I run the tests I get errors like the following.

$ make check-ctypes-python
cd /svn/inst/build/subversion-1.6.5/subversion/bindings/ctypes-python; \
  /bin/bash /svn/inst/build/subversion-1.6.5/libtool --tag=CC --silent
--mode=execute `for f in /svn/inst/build/subversion-1.6.5/subversion/*/*.la;
do echo -dlopen $f; done` /svn/inst/python/bin/python setup.py build
--subversion="/svn/inst" \
  --apr="/svn/inst/apache2.2" --apr-util="/svn/inst/apache2.2" \
  --ctypesgen="/svn/inst/python/bin/ctypesgen.py"
--svn-headers="/svn/inst/build/subversion-1.6.5/subversion/include" \
  --cppflags="-DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE " --ldflags=""
running build
csvn/core/functions.py was not regenerated (output up-to-date)
running build_py
copying csvn/repos.py -> build/lib/csvn
cd /svn/inst/build/subversion-1.6.5/subversion/bindings/ctypes-python; \
  /bin/bash /svn/inst/build/subversion-1.6.5/libtool --tag=CC --silent
--mode=execute `for f in /svn/inst/build/subversion-1.6.5/subversion/*/*.la;
do echo -dlopen $f; done` /svn/inst/python/bin/python test/run_all.py
EEEEEEEEEEEEEEEEEEEEEEEE.E
======================================================================
ERROR: test_local_check_path (localrepos.LocalRepositoryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/svn/inst/build/subversion-1.6.5/subversion/bindings/ctypes-python/test/localrepos.py",
line 22, in setUp
    self.repos = LocalRepository(repos_location, create=True)
  File
"/svn/inst/build/subversion-1.6.5/subversion/bindings/ctypes-python/csvn/repos.py",
line 376, in __init__
    None, None, None, None, self.pool)
  File
"/svn/inst/build/subversion-1.6.5/subversion/bindings/ctypes-python/csvn/core/functions.py",
line 47, in SVN_ERR
    raise SubversionException(err)
SubversionException: Repository creation failed
Could not create top-level directory
'.' exists and is non-empty

...

A similar error occurs for 25 of the 26 tests. The directory /tmp exists
and is writable. I'm running Subversion 1.6.5, Apache 2.2.11, ctypesgen
from trunk @ r83 in their svn repository since they have no releases, and
Python 2.6.4 on Solaris 10.

If I try to access an existing local repository I get the error below.

>>> import csvn.core
>>> from csvn.repos import *
>>> from csvn.auth import User
>>> import os
>>> csvn.core.svn_cmdline_init("", csvn.core.stderr)
0
>>> user=User(username="svnuser")
>>> repos=LocalRepository("/svn/repos/testrepo")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/svn/inst/python/lib/python2.6/site-packages/csvn/repos.py", line
378, in __init__
    svn_repos_open(byref(self._as_parameter_), path, self.pool)
  File
"/svn/inst/python/lib/python2.6/site-packages/csvn/core/functions.py", line
47, in SVN_ERR
    raise SubversionException(err)
csvn.core.functions.SubversionException: Can't open file 'format': No such
file or directory

Does anyone know what I'm doing wrong?

Thanks.
Justin

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419535

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-18 16:09:59 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.