Opened 7 years ago

Last modified 7 years ago

#3054 new defect

Namespace issue in for TracTimeVisualizerPlugin

Reported by: jhamell@… Owned by: mape
Priority: lowest Component: TimeVisualizerPlugin
Severity: normal Keywords:
Cc: jhamell@… Trac Release: 0.11


Using Trac 0.11b2, Apache 2.2.3, Apache-mod-python 3.1.3, Python 2.4.2, SuSE 10.1, TracTimeVisualizerPlugin 0.6.

We've slowly gained inertia using Trac, and came across your plugin as a useful addition. Installed from an egg, but the visualization generation wouldn't work - it would return a single file with two XML documents, the first being the SVG image, but second an error. The following apache error log clued us in:

[Mon May 19 15:32:45 2008] [error] [client] PythonHandler trac.web.modpython_frontend:   File "/usr/local/lib/python2.4/site-packages/TracTimeVisualizerPlugin-0.6-py2.4.egg/tractimevisualizerplugin/", line 427, in process_request\n    raise trac.web.RequestDone
[Mon May 19 15:32:45 2008] [error] [client] PythonHandler trac.web.modpython_frontend: AttributeError: 'module' object has no attribute 'web'

We're not terribly familiar with Python, but from what I understand the your code ( raise trac.web.RequestDone ) should work - it's resolving, or should be, the correct class. For whatever reason, it can't resolve.

To fix this we added from trac.web import RequestDone to the import statements at the top of the file, which then allowed return RequestDone to work on our machine.

The issue could be specific to our setup, I don't know offhand. Thanks for your effort on this plugin.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by anonymous

  • Cc jhamell@… added; anonymous removed

Add Comment

Modify Ticket

as new The owner will remain mape.

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

Note: See TracTickets for help on using tickets.