I just installed svn 1.8.14, and the python bindings appear to be broken on Red Hat Enterprise Linux Server release 6.7 (Santiago). When running a hook script, the is the error that from google searches points to the bindings being compiled with a later version of python (rather than 2.6). Commit blocked by pre-commit hook (exit code 1) with output: Traceback (most recent call last): File "/svn/hooks/contrib/hook-scripts/case-insensitive.py", line 67, in from svn import repos, fs File "/usr/lib64/python2.6/site-packages/svn/repos.py", line 26, in from libsvn.repos import * File "/usr/lib64/python2.6/site-packages/libsvn/repos.py", line 26, in _repos = swig_import_helper() File "/usr/lib64/python2.6/site-packages/libsvn/repos.py", line 22, in swig_import_helper _mod = imp.load_module('_repos', fp, pathname, description) ImportError: /usr/lib64/libsvn_swig_py-1.so.0: undefined symbol: PyCapsule_Import Here is the rpm information: # rpm -qiv subversion Name : subversion Relocations: /usr Version : 1.8.14 Vendor: WANdisco Inc Release : 1 Build Date: Thu 13 Aug 2015 07:56:14 AM MDT Install Date: Fri 21 Aug 2015 10:45:23 AM MDT Build Host: centos-60-x86-64.shdc.wandisco.com Group : Utilities/System Source RPM: subversion-1.8.14-1.src.rpm Size : 7864595 License: Apache 2.0 Signature : DSA/SHA1, Fri 14 Aug 2015 03:57:18 AM MDT, Key ID e9f0e9223bbf077a Packager : WANdisco Inc URL : http://www.wandisco.com # rpm -qiv subversion-python Name : subversion-python Relocations: /usr Version : 1.8.14 Vendor: WANdisco Inc Release : 1 Build Date: Thu 13 Aug 2015 07:56:14 AM MDT Install Date: Fri 21 Aug 2015 10:45:24 AM MDT Build Host: centos-60-x86-64.shdc.wandisco.com Group : Utilities/System Source RPM: subversion-1.8.14-1.src.rpm Size : 6313643 License: Apache 2.0 Signature : DSA/SHA1, Fri 14 Aug 2015 03:57:19 AM MDT, Key ID e9f0e9223bbf077a Packager : WANdisco Inc URL : http://www.wandisco.com Summary : Allows Python scripts to directly use Subversion repositories. % svn --version svn, version 1.8.14 (r1692801) % python --version Python 2.6.6 Is there a way to find out how the bindings were compiled, or does anybody have an idea how I can fix this issue? Thank you, Jon
Last updated