Project

General

Profile

Task #70

Install XMLRPC plugin for Trac

Added by Dave Vieglais over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Management
Start date:
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

XMLRPC plugin needs to be installed on trac.dataone.org to enable programmatic manipulation of various properties such as tickets and milestones.

http://trac-hacks.org/wiki/XmlRpcPlugin

History

#1 Updated by Matthew Jones over 14 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 about 14 years ago

This is fixed for now. Process is a bit convoluted but works:

  1. 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)

  1. 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']
...

  1. Reload apache

  2. 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.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)