249 | | Make sure you install the Python bindings of Subversion, just having Subversion is not good enough. To verify you should have a `libsvn` and `svn` directory underneath Python's `site-packages` directory. |
250 | | |
251 | | If you do not have this use something like the following to fix this: |
| 249 | Make sure you install the Python bindings of Subversion, just having Subversion is not good enough. |
| 250 | |
| 251 | The error reported by Trac will look something like this: |
| 252 | |
| 253 | {{{ |
| 254 | Indexing repository |
| 255 | Failed to initialize environment. No module named svn |
| 256 | Traceback (most recent call last): |
| 257 | File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 616, in do_initenv repos = self.__env.get_repository() |
| 258 | File "/usr/lib/python2.3/site-packages/trac/env.py", line 155, in get_repository from trac.versioncontrol.svn_fs import SubversionRepository |
| 259 | File "/usr/lib/python2.3/site-packages/trac/versioncontrol/svn_fs.py", line 25, in ? from svn import fs, repos, core, delta |
| 260 | ImportError: No module named svn |
| 261 | }}} |
| 262 | |
| 263 | To verify you should have a `libsvn` and `svn` directory underneath Python's `site-packages` directory. |
| 264 | |
| 265 | If you do not have this use something like the following to fix this: |