Trac: fixing ‘Warning: Can’t synchronize with repository “(default)” (Unsupported version control system “svn”: No module named svn).’

If you get a message ‘Warning: Can’t synchronize with repository “(default)” (Unsupported version control system “svn”: No module named svn). Look in the Trac log for more information’ while setting up or migrating you Trac, it means that you don’t have SVN library for Python installed. Note that Trac uses subversion-python package and not pysvn. So installing subversion-python should fix the issue. For Fedora:

yum install subversion-python

Or if you use Debian:

apt-get install python-subversion

You can also check it by importing SVN library from Python:

[root@playground]# python
Python 2.7.2 (default, Oct 27 2011, 01:40:22)
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn
>>>

If you don’t get any error, library is installed and ready to use.