#4920 closed defect (duplicate)
Trac/Apache2/mod_python/svn non working setup
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend/mod_python | Version: | 0.9.3 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Hey
I installed trac a few days ago, and it seems to work fine. I was running the standalone server and it work communicating with svn, all well and good.
I decided that I wanted to get it working with apache, for this I had to uninstall apache1.3 and install apache2.0. I then installed mod_python. Everything seems to work except that now Trac won't talk to svn.
I looked over the documententation, tried eveyrthing that it suggested and i've still had no luck. So any help/guidence/direction on this would be great.
Here is also the error stack
Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request chosen_handler = f.pre_process_request(req, chosen_handler) File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request self.get_repository(req.authname) # triggers a sync if applicable File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 91, in get_repository raise TracError('Unsupported version control system "%s"' TracError: Unsupported version control system "svn"
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
Component: | general → mod_python frontend |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
comment:2 by , 18 years ago
I have spent the last 2 days searching that term, and i've re-read both of those sections you've suggested numerious times. This is the reason for my post.
comment:3 by , 18 years ago
Description: | modified (diff) |
---|
Ok, then be sure to add explicitly the path containing the svn
and libsvn
folders (containing the Python bindings for Subversion) in your PythonPath, for example like that:
<Location /trac> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /srv/trac PythonOption TracUriRoot /trac PythonPath "sys.path+['/opt/subversion-1.4.3/lib/svn-python', '/opt/trac-0.11dev/lib/python2.4/site-packages']" SetEnv PYTHON_EGG_CACHE /var/lib/nobody </Location>
Hm, must be the day… please search:"Unsupported version control system".
And more specifically, see TracModPython#Subversionissues and TracModPython#SettingthePythonPath.