Mantis - trac
Viewing Issue Advanced Details
4884 regular use major always 2012-01-16 17:29 2012-01-30 14:46
pfelecan  
 
high  
new  
open  
none    
none  
0004884: fails to load subversion bindings
When accessing the timeline of a tracked project, we get in the log file:

2012-01-16 17:23:14,836 Trac[svn_fs] INFO: Failed to load Subversion bindings
Traceback (most recent call last):
  File "/opt/csw/lib/python/site-packages/trac/versioncontrol/svn_fs.py", line 267, in __init__
    _import_svn()
  File "/opt/csw/lib/python/site-packages/trac/versioncontrol/svn_fs.py", line 68, in _import_svn
    from svn import fs, repos, core, delta
ImportError: cannot import name fs

Many other actions, e.g. trac-admin, gives a similar message.
trac 0.12.1,REV=2010.11.14
pythonsvn 1.7.2,REV=2012.01.02

what else?
Issue History
2012-01-16 17:29 pfelecan New Issue
2012-01-30 14:46 pfelecan Note Added: 0009565

Notes
(0009565)
pfelecan   
2012-01-30 14:46   
Perusing http://trac.edgewall.org/wiki/TracSubversion#Troubleshooting [^] , section "Unsupported version control system 'svn'" it appears that snv python bindings are not known by the system python.

A temporary correction is to symbolically link the 2 needed modules:

# cd /opt/csw/lib/python/site-packages/
# ln -s /opt/csw/lib/svn/python/site-packages/libsvn libsvn
# ln -s /opt/csw/lib/svn/python/site-packages/svn svn

Et voilĂ  !

I'm sure that a more elegant, maintainer way, is possible.