Opened 14 years ago
Last modified 6 years ago
#7215 closed defect
KeyError: 'hours' — at Initial Version
Reported by: | anonymous | Owned by: | fsbojason |
---|---|---|---|
Priority: | high | Component: | TicketMilestoneDisplayMacro |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Oops… Trac detected an internal error:
KeyError: 'hours'
This is probably a local installation issue. Found a bug in Trac?
If you think this should work and you can reproduce the problem, you should consider reporting this to the Trac team.
Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.
Trac | 0.11.7 | Python | 2.5.2 (r252:60911, Jul 22 2009, 15:52:25) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] | setuptools | 0.6c11 | SQLite | 3.4.2 | pysqlite | 2.3.2 | Genshi | 0.7dev-r1134 | mod_python | 3.3.1 | Subversion | 1.4.6 (r28521) | CustomFieldAdmin | 0.2.2 | ==== Python Traceback ==== Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 450, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 206, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 183, in process_request return self._process_newticket_request(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 399, in _process_newticket_request self._do_create(req, ticket) # (redirected if successful) File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 1000, in _do_create ticket.insert() File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/model.py", line 214, in insert listener.ticket_created(self) File "/var/lib/trac/xeragotrac/plugins/TracNotify-0.1-py2.5.egg/notify/notify.py", line 45, in ticket_created self.build_url(ticket, 'created') File "/var/lib/trac/xeragotrac/plugins/TracNotify-0.1-py2.5.egg/notify/notify.py", line 59, in build_url hours = ticket.values['hours'] KeyError: 'hours' a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it.
|
Python Traceback Most recent call last:
- File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 450, in _dispatch_request
Code fragment:
- try:
- if not env and env_error:
- raise HTTPInternalError(env_error)
- try:
- dispatcher = RequestDispatcher(env)
- dispatcher.dispatch(req)
- except RequestDone:
- pass
- resp = req._response or []
- except HTTPException, e:
- File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 206, in dispatch
Code fragment:
- req.args.get('FORM_TOKEN') != req.form_token:
- raise HTTPBadRequest('Missing or invalid form token. '
- 'Do you have cookies enabled?')
- # Process the request and render the template
- resp = chosen_handler.process_request(req)
- if resp:
- if len(resp) == 2: # Clearsilver
- chrome.populate_hdf(req)
- template, content_type = \
- self._post_process_request(req, *resp)
- File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 183, in process_request
Code fragment:
- def process_request(self, req):
- if 'id' in req.args:
- if req.path_info == '/newticket':
- raise TracError(_("id can't be set for a new ticket request."))
- return self._process_ticket_request(req)
- return self._process_newticket_request(req)
- # ITemplateProvider methods
- def get_htdocs_dirs(self):
- return []
- File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 399, in _process_newticket_request
Code fragment:
- valid = None
- if req.method == 'POST' and not 'preview' in req.args:
- valid = self._validate_ticket(req, ticket)
- if valid:
- self._do_create(req, ticket) # (redirected if successful)
- # else fall through in a preview
- req.argspreview? = True
- # don't validate for new tickets and don't validate twice
- if valid is None and 'preview' in req.args:
- File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 1000, in _do_create
Code fragment:
- else:
- add_warning(req, message)
- return valid
- def _do_create(self, req, ticket):
- ticket.insert()
- # Notify
- try:
- tn = TicketNotifyEmail(self.env)
- tn.notify(ticket, newticket=True) Local variables: Name Value req <Request "POST u'/newticket'"> self <trac.ticket.web_ui.TicketModule object at 0x8be156c> ticket <trac.ticket.model.Ticket object at 0x8e2b34c>
- File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/model.py", line 214, in insert
Code fragment:
- self.id = tkt_id
- self.resource = self.resource(id=tkt_id)
- self._old = {}
- for listener in TicketSystem(self.env).change_listeners:
- listener.ticket_created(self)
- return self.id
- def save_changes(self, author, comment, when=None, db=None, cnum=):
- """
- File "/var/lib/trac/xeragotrac/plugins/TracNotify-0.1-py2.5.egg/notify/notify.py", line 45, in ticket_created Local variables: Name Value self <notify.notify.Notify object at 0x8fb61ac> ticket <trac.ticket.model.Ticket object at 0x8e2b34c>
- File "/var/lib/trac/xeragotrac/plugins/TracNotify-0.1-py2.5.egg/notify/notify.py", line 59, in build_url Local variables: Name Value action 'created' author comment id '14' self <notify.notify.Notify object at 0x8fb61ac> ticket <trac.ticket.model.Ticket object at 0x8e2b34c>
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 450, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 206, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 183, in process_request
return self._process_newticket_request(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 399, in _process_newticket_request
self._do_create(req, ticket) # (redirected if successful)
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 1000, in _do_create
ticket.insert()
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/model.py", line 214, in insert
listener.ticket_created(self)
File "/var/lib/trac/xeragotrac/plugins/TracNotify-0.1-py2.5.egg/notify/notify.py", line 45, in ticket_createdFile "/var/lib/trac/xeragotrac/plugins/TracNotify-0.1-py2.5.egg/notify/notify.py", line 59, in build_url
System Information: Trac: 0.11.7 Python: 2.5.2 (r252:60911, Jul 22 2009, 15:52:25) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] setuptools: 0.6c11 SQLite: 3.4.2 pysqlite: 2.3.2 Genshi: 0.7dev-r1134 mod_python: 3.3.1 Subversion: 1.4.6 (r28521) CustomFieldAdmin: 0.2.2