Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4920 closed defect (duplicate)

Trac/Apache2/mod_python/svn non working setup

Reported by: Daniel.Mitchell@… 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 Christian Boos)

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 Christian Boos, 18 years ago

Component: generalmod_python frontend
Resolution: duplicate
Status: newclosed

comment:2 by Daniel.Mitchell@…, 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 Christian Boos, 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>

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.