Modify

Opened 8 years ago

Closed 3 years ago

#937 closed defect (wontfix)

TracNavHider crashes my server

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

Description (last modified by athomas)

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

Attachments (1)

filter.diff (294 bytes) - added by anonymous 8 years ago.
patch to fix filter.py

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 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 8 years ago by anonymous

patch to fix filter.py

comment:2 Changed 8 years ago by athomas

  • Description modified (diff)

comment:3 Changed 7 years ago by anonymous

The fix worked great for me, thanks for the tip!

comment:4 Changed 3 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Plugin is deprecated as of 0.11.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.