Opened 17 years ago

Last modified 12 years ago

#937 closed defect

TracNavHider crashes my server — at Version 2

Reported by: hanno.stock@… Owned by: Noah Kantrowitz
Priority: normal Component: NavHiderPlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description (last modified by Alec Thomas)

When I install the TracNavHider egg in /usr/lib/python2.3/site-packages, my server (apache2, using mod_python) crashes, when I want to access trac.

Traceback:
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req)
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 87, in handler\n    gateway.run(dispatch_request)
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/web/wsgi.py", line 87, in run\n    response = application(self.environ, self._start_response)
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 346, in dispatch_request\n    env = _open_environment(env_path, run_once=environ['wsgi.run_once'])
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 57, in _open_environment\n    env_cache[env_path] = open_environment(env_path)
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/env.py", line 433, in open_environment\n    env = Environment(env_path)
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/env.py", line 121, in __init__\n    load_components(self)
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/loader.py", line 101, in load_components\n    entry_point.load()
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/pkg_resources.py", line 1830, in load\n    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend:   File "build/bdist.linux-i686/egg/navhider/filter.py", line 6, in ?
[Sat Nov 25 14:59:14 2006] [error] [client 192.168.30.170] PythonHandler trac.web.modpython_frontend: NameError: name 'set' is not defined

Change History (3)

comment:1 Changed 17 years ago by anonymous

To fix this, just change ImportError to NameError in the top of filter.py and reinstall. I'll attach a patch shortly. I think this will only affect python2.3 installations.

Changed 17 years ago by anonymous

Attachment: filter.diff added

patch to fix filter.py

comment:2 Changed 17 years ago by Alec Thomas

Description: modified (diff)
Note: See TracTickets for help on using tickets.