I have a CentOS 5 machine running Apache 2.2, python 2.5, subversion 1.5.2, and trac 0.11. Originally, the machine came with Python 2.4 and SVN 1.4.2 with the SWIG python bindings:
python2.4 -c "import svn.repos, sys; print svn.repos.__file__; print sys.version"
/usr/lib/python2.4/site-pa
ckages/svn
/repos.pyc
2.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
After installing Python 2.5 and SVN 1.5.2, I have lost the SWIG python bindings:
python -c "import svn.repos, sys; print svn.repos.__file__; print sys.version"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named svn.repos
I don't understand this. I installed python 2.5 first, then SVN 1.5.2. Why would SVN put the python bindings into the python 2.4 site-packages area?
/usr/lib/python2.4/site-pa
ckages/lib
svn
/usr/lib/python2.4/site-pa
ckages/svn
Trac requires the SWIG python bindings to work. I need to simple, step-by-step instructions on how to get SWIG python bindings installed into the installed python 2.5 site-packages area for an installed subversion package.
Bonus point for any advice on getting mod_python and mod_dav_svn installed as well. I've actually downloaded and configured mod_python for python 2.5, I just haven't run 'make install' yet because I don't know if it's going to mess with my running apache or not.
Start Free Trial