I have installed:

Trac-0.11dev_r6254
Apache 2.0.59
Python 2.5
mod_wsgi 1.3
svn, version 1.4.3 (r23084)

Everything works good and I have configured it as multiple projects
with the following script:

trac.wsgi:
######################################################3
import sys
sys.stdout = sys.stderr

import os

os.environ['TRAC_ENV_PARENT_DIR'] = '/home/trac'
os.environ['PYTHON_EGG_CACHE'] = '/tmp'

import trac.web.main
application = trac.web.main.dispatch_request

############################################################


When I click on Browse Source I get to see the files the versions and
the comment but if I then try to click on a file in the web browser I
get

 Trac detected an internal error:

NameError: global name 'path' is not defined


and the following Tracback:

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/web/main.py", line 386, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/web/main.py", line 238, in dispatch
    raise HTTPForbidden(to_unicode(e))
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/util/text.py", line 53, in to_unicode
    return unicode(text)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/perm.py", line 47, in __str__
    resource=get_resource_name(self.env, self.resource))
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/resource.py", line 329, in get_resource_name
    return get_resource_description(env, resource)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/resource.py", line 326, in get_resource_description
    return manager.get_resource_description(resource, format,
**kwargs)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6254-
py2.5.egg/trac/versioncontrol/api.py", line 112, in
get_resource_description
    return '%s %s%s' % (kind, path, version)
NameError: global name 'path' is not defined


any ideas on what's going on or how to fix it?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to