[bug-notifications] [trac 0004884]: fails to load subversion bindings

Mantis Bug Tracker noreply at opencsw.org
Mon Jan 30 14:46:39 CET 2012


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4884 
====================================================================== 
Reported By:                pfelecan
Assigned To:                
====================================================================== 
Project:                    trac
Issue ID:                   4884
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2012-01-16 17:29 CET
Last Modified:              2012-01-30 14:46 CET
====================================================================== 
Summary:                    fails to load subversion bindings
Description: 
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.
====================================================================== 

---------------------------------------------------------------------- 
 (0009565) pfelecan (developer) - 2012-01-30 14:46
 https://www.opencsw.org/mantis/view.php?id=4884#c9565 
---------------------------------------------------------------------- 
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.



More information about the bug-notifications mailing list