On Tuesday, February 28, 2017 at 2:40:46 PM UTC-8, John Trump wrote:
>
> Trac Version: Trac 1.2
> Python Version: 2.7.13
> Subversion: 1.9.4
> Swig 1.3.40
>
> Installed Trac 1.2 and using mod_wsgi. Trac loads and I can do most 
> functions but browse source, the browse source button doesn't appear. If I 
> use the following URL: http://site/project/browser I get the 
> error: Unsupported version control system "svn": cannot import name fs. I 
> have logging enabled and set to Debug. In the log I see the following:
>
> 2017-02-28 17:14:56,923 Trac[svn_fs] INFO: Failed to load Subversion 
> bindings
> Traceback (most recent call last):
>   File 
> "/export/software/python-2.7.13/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/tracopt/versioncontrol/svn/svn_fs.py",
>  
> line 298, in __init__
>     _import_svn()
>   File 
> "/export/software/python-2.7.13/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/tracopt/versioncontrol/svn/svn_fs.py",
>  
> line 77, in _import_svn
>     from svn import fs, repos, core, delta
> ImportError: cannot import name fs
>
>
> If I execute the python command manually it works:
>
> Python 2.7.13 (default, Feb 28 2017, 14:24:17) 
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from svn import fs, repos, core, delta
> >>> 
>
> I enabled svn in my trac.ini file:
> [components]
> tracopt.versioncontrol.svn.* = enabled
> trac.versioncontrol.svn_fs.subversionconnector = enabled
> trac.versioncontrol.svn_prop.subversionmergepropertydiffrenderer = enabled
> trac.versioncontrol.svn_prop.subversionmergepropertyrenderer = enabled
> trac.versioncontrol.svn_prop.subversionpropertyrenderer = enabled
>
>
> Any suggestion on what to check/change?
>

Does your mod_wsgi Apache configuration use the same python interpreter 
that you are testing with manually? This would not be the case, for 
example, if you installed in a virtualenv. It looks like you have a 
non-standard python installation. Could you share your Apache virtual host 
configuration?

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to