Ernest Ellingson wrote:
Hi:
I've installed SVN it works fine
I think I've compiled it with swig-python. I'm not certain of that
however. When I make swig-py and make install-swig-py everything
goes correctly, at least I don't get any errors.
When I do trac-admin /usr/local/trac initenv
I get the following error.
Creating and Initializing Project
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'm sure this has something to do with Python's search path. Python
is in /usr/lib/python
svn, trac, postgresql are all in /usr/local/lib
I don't know Python well enough to know how to modify the search path.
I'm pretty sure /usr/lib is on it.
I don't know exactly which module Python is looking for so I don't
know how to put it
or a link to it in /usr/lib.
Can someone help?
Ernie
I've finally figured out how to get this done.
In the svn tar ball there is a file subversion/bindings/swig/INSTALL
reading that file led me to this.
echo /usr/local/lib/svn-python >
/usr/lib/python2.x/site-packages/subversion.pth
This will work if the directory svn-python is in /usr/local/lib
If its somewhere else, use that path.
Once I did that everything worked fine.
Sometime this weekend I will post a Monkey see Monkey do document on
installing SVN and TRAC on Fedora Core 3 using postgresql 8.1.2.
TRAC is very cool.
Ernie
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac