Trac detected an internal error: KeyError: 'name' 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. Otherwise, please ==== How to Reproduce ==== While doing a GET operation on `/wiki/WikiStart`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {'format': u'pdf', 'page': u'WikiStart'} }}} User Agent was: `Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)` ==== System Information ==== || '''Trac''' || `0.11.5` || || '''Python''' || `2.5.2 (r252:60911, Jan 4 2009, 18:00:02) ` [[br]] `[GCC 4.3.2]` || || '''setuptools''' || `0.6c11` || || '''SQLite''' || `3.6.18` || || '''pysqlite''' || `2.3.2` || || '''Genshi''' || `0.5.1` || || '''mod_python''' || `3.3.1` || || '''Subversion''' || `1.5.1 (r32289)` || || '''jQuery:''' || `1.2.6` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 444, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 205, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/wiki/web_ui.py", line 165, in process_request format, versioned_page.name) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/mimeview/api.py", line 924, in send_converted content, selector) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/mimeview/api.py", line 650, in convert_content output = converter.convert_content(req, mimetype, content, ck) File "build/bdist.linux-i686/egg/exportplugin/export.py", line 115, in convert_content self.parser.setTemplate(templatePath, pageName, req.session['name']) KeyError: 'name' }}} 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.5-py2.5.egg/trac/web/main.py", line 444, in _dispatch_request Code fragment: 439. try: 440. if not env and env_error: 441. raise HTTPInternalError(env_error) 442. try: 443. dispatcher = RequestDispatcher(env) 444. dispatcher.dispatch(req) 445. except RequestDone: 446. pass 447. resp = req._response or [] 448. 449. except HTTPException, e: Local variables: Name Value after [u' except RequestDone:', u' pass', u' resp = ... before [u' try:', u' if not env and env_error:', u' raise ... dispatcher e KeyError('name',) env env_error None exc_info (, KeyError('name',), resp [] tb tb_hide None traceback u'Traceback (most recent call last):\n File ... * File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 205, in dispatch Code fragment: 200. req.args.get('__FORM_TOKEN') != req.form_token: 201. raise HTTPBadRequest('Missing or invalid form token. ' 202. 'Do you have cookies enabled?') 203. 204. # Process the request and render the template 205. resp = chosen_handler.process_request(req) 206. if resp: 207. if len(resp) == 2: # Clearsilver 208. chrome.populate_hdf(req) 209. template, content_type = \ 210. self._post_process_request(req, *resp) Local variables: Name Value chosen_handler chrome err (, KeyError('name',), req self * File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/wiki/web_ui.py", line 165, in process_request Code fragment: 160. else: 161. format = req.args.get('format') 162. if format: 163. Mimeview(self.env).send_converted(req, 'text/x-trac-wiki', 164. versioned_page.text, 165. format, versioned_page.name) 166. return self._render_view(req, versioned_page) 167. 168. # ITemplateProvider methods 169. 170. def get_htdocs_dirs(self): Local variables: Name Value action 'view' format u'pdf' old_version None page pagename u'WikiStart' req self version None versioned_page * File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/mimeview/api.py", line 924, in send_converted Code fragment: 919. """Helper method for converting `content` and sending it directly. 920. 921. `selector` can be either a key or a MIME Type.""" 922. from trac.web import RequestDone 923. content, output_type, ext = self.convert_content(req, in_type, 924. content, selector) 925. req.send_response(200) 926. req.send_header('Content-Type', output_type) 927. req.send_header('Content-Length', len(content)) 928. if filename: 929. req.send_header('Content-Disposition', 'filename=%s.%s' % Local variables: Name Value RequestDone content u"= Bienvenue sur Trac =\r\n\r\nCeci est la page d\u2019accueil de votre ... filename u'WikiStart' in_type 'text/x-trac-wiki' req selector u'pdf' self * File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/mimeview/api.py", line 650, in convert_content Code fragment: 645. 'to %(new)s', old=mimetype, new=key)) 646. 647. # First successful conversion wins 648. for ck, name, ext, input_mimettype, output_mimetype, quality, \ 649. converter in candidates: 650. output = converter.convert_content(req, mimetype, content, ck) 651. if not output: 652. continue 653. return (output[0], output[1], ext) 654. raise TracError(_('No available MIME conversions from %(old)s to ' 655. '%(new)s', old=mimetype, new=key)) Local variables: Name Value c ('rtf', 'rtf', 'rtf', 'text/x-trac-wiki', 'application/rtf', 6, ... candidates [('pdf', 'pdf', 'pdf', 'text/x-trac-wiki', 'application/pdf', 8, ... ck 'pdf' content u"= Bienvenue sur Trac =\r\n\r\nCeci est la page d\u2019accueil de votre ... converter ext 'pdf' filename None full_mimetype 'text/x-trac-wiki' input_mimettype 'text/x-trac-wiki' key u'pdf' mimetype 'text/x-trac-wiki' name 'pdf' output_mimetype 'application/pdf' quality 8 req self url None * File "build/bdist.linux-i686/egg/exportplugin/export.py", line 115, in convert_content Local variables: Name Value input_type 'text/x-trac-wiki' output_type 'pdf' pageName u'WikiStart' req self templatePath None text u"= Bienvenue sur Trac =\r\n\r\nCeci est la page d\u2019accueil de votre ... File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 444, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 205, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/wiki/web_ui.py", line 165, in process_request format, versioned_page.name) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/mimeview/api.py", line 924, in send_converted content, selector) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/mimeview/api.py", line 650, in convert_content output = converter.convert_content(req, mimetype, content, ck) File "build/bdist.linux-i686/egg/exportplugin/export.py", line 115, in convert_content System Information: User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Trac: 0.11.5 Python: 2.5.2 (r252:60911, Jan 4 2009, 18:00:02) [GCC 4.3.2] setuptools: 0.6c11 SQLite: 3.6.18 pysqlite: 2.3.2 Genshi: 0.5.1 mod_python: 3.3.1 Subversion: 1.5.1 (r32289) jQuery: 1.2.6