[Trac] Python pathing issue: Failed to initialize environment. No module named svn

Emmanuel Blot manu.blot at gmail.com
Tue Jul 11 18:23:02 CDT 2006


> I apologize if this has been covered...

It has been covered several times, for other Linux distros at least.

Anyway, you need to install the Python-toSubversion wrappers, which
are available from the SVN official web site, if they are not
available with your Linux distribution.

You can also build them from the Subversion sources, but you'll need
the SWIG library and some other dependencies.

HTH
Manu

> I'm trying to install trac for linux RHE (centos).  I've already got
> svn 1.3.2 installed with a repo setup under /home/website/myproject,
> i've got all the packages install for trac.  That said, I'm still
> unable to create my init env due to the following error:
> ----------------------------------------
> Creating and Initializing Project
> (OUTPUT REMOVED)
>  Indexing repository
> Failed to initialize environment. No module named svn
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line
> 616, in do_initenv
>     repos = self.__env.get_repository()
>   File "/usr/lib/python2.3/site-packages/trac/env.py", line 155, in
> get_repository
>     from trac.versioncontrol.svn_fs import SubversionRepository
>   File "/usr/lib/python2.3/site-packages/trac/versioncontrol/svn_fs.py",
> line 25, in ?
>     from svn import fs, repos, core, delta
> ImportError: No module named svn
> ---------------------------------------------
>
> I've researched this error and had some insight into why its
> happening:  From what I gathered, it appears I need to have svn and
> lib-svn under python's site-packages folder.  If that is indeed the
> case, how do I go about doing that?
>
> My svn files are locate /usr/local/bin.
>
> I have python(2.3.4) installed under /usr/bin/python
>
> Do i have to move svn and lib-svn into site-packages?  Where do svn
> and lib-svn reside?
>
> Thanks in advance,
>
> cheers,
> l
> _______________________________________________
> Trac mailing list
> Trac at lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac
>


-- 
Manu


More information about the Trac mailing list