Task #70
Install XMLRPC plugin for Trac
100%
Description
XMLRPC plugin needs to be installed on trac.dataone.org to enable programmatic manipulation of various properties such as tickets and milestones.
History
#1 Updated by Matthew Jones about 15 years ago
Worked on installing xmlrpc. Encountered version problems with the python version available on the production machine. Installed python2.6, but ran into a rat's nest of dependency problems. Ultimately decided we need to upgrade to VMs with a new OS for these services. In the meantime, trac is working again, but without svn integration (which will return later).
#2 Updated by Dave Vieglais almost 15 years ago
This is fixed for now. Process is a bit convoluted but works:
- Download and build the subversion swig bindings that match the versions of subversion and python in use.
http://subversion.tigris.org/downloads/subversion-1.4.5.tar.gz
export PYTHON=python2.6
./configure --prefix=/home/vieglais/opt
make swig-py
export LD_LIBRARY_PATH=/home/vieglais/opt/lib
export LD_RUN_PATH=$LD_LIBRARY_PATH
export PYTHONPATH=/home/vieglais/opt/lib/
cd
python
from svn import core
(no errors)
- Edit apache config file for site:
...
SetEnv LD_LIBRARY_PATH /home/vieglais/opt/lib:/usr/lib:/usr/local/lib
...
SetHandler mod_python
PythonPath "sys.path+['/home/vieglais/opt/lib/svn-python']
...
Reload apache
trac-admin resync
For XMLRPCPlugin:
svn co http://trac-hacks.org/svn/xmlrpcplugin/trunk/ xmlrpcplugin_svn
cd xmlrpcplugin_svn
python2.6 setup.py bdist_egg
sudo -u apache cp dist/TracXMLRPC-1.0.6-py2.6.egg $TRAC_ENV/plugins
Then enable xmlrpc.* in components.