subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject Re: Subversion commit email script and "unprintable" characters
Date Wed, 20 Jan 2016 11:40:10 GMT
Alfred von Campe <alfred@von-campe.com> writes:

> On Jan 19, 2016, at 15:09, Philip Martin wrote:
>
>> I think that means your bindings were built against python 2.7, which
>> provides PyCapsule_Import, while you are trying to use 2.6, which does
>> not provide it.
>
> Thanks for the info.  So how do I resolve this?  I’m not a Python person,
> but I do know we have a parallel installation of Python 2.7 on the server.
> I am using the WANDisco repo for Subversion binaries and have the latest
> 1.8.X version installed on the server, including the subversion-python
> package.  But my guess is that the Python 2.7 installation can’t see the
> subversion-python files.  Is there a way to install it with easy-install-2.7
> or pip2.7?

The Subversion Python bits have been installed in the Python 2.6 tree
and really need to be in the Python 2.7 tree.  On a CentOS 6 machine
with Python 2.7 installed via scl I can make things work by moving the
Python bits from the 2.6 location to the 2.7 location.  As root:

mv /usr/lib64/python2.6/site-packages/libsvn /opt/rh/python27/root/usr/lib64/python2.7/site-packages
mv /usr/lib64/python2.6/site-packages/svn /opt/rh/python27/root/usr/lib64/python2.7/site-packages

Then I can do:

$ svnadmin create repo
$ scl enable python27 python
Python 2.7.5 (default, Dec  3 2013, 08:35:16) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import repos
>>> r = repos.open("repo")
>>>

-- 
Philip Martin
WANdisco

Mime
View raw message