id summary reporter owner description type status priority component severity resolution keywords cc release 4955 TypeError: __init__() takes at most 12 arguments (13 given) lsiniscalco@… Ryan J Ollos "I installed, enable component, execute trac-admin upgrade and restart apache. When I doing a GET operation on /hours, Trac issued an internal error. == Oops… == Trac detected an internal error: TypeError: __init__() takes at most 12 arguments (13 given) == Python Traceback == Most recent call last: * File ""c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py"", line 419, in _dispatch_request Code fragment: 414. try: 415. if not env and env_error: 416. raise HTTPInternalError(env_error) 417. try: 418. dispatcher = RequestDispatcher(env) 419. dispatcher.dispatch(req) 420. except RequestDone: 421. pass 422. resp = req._response or [] 423. 424. except HTTPException, e: Local variables: Name Value after [' except RequestDone:', ' pass', ' resp = ... before [' try:', ' if not env and env_error:', ' raise ... dispatcher e TypeError('__init__() takes at most 12 arguments (13 given)',) env env_error None exc_info (, TypeError('__init__() takes at most 12 ... filename 'c:\\archivos de ... frames [{'function': '_dispatch_request', 'lines_before': [' try:', ' ... has_admin True line ' dispatcher.dispatch(req)' lineno 418 message u'TypeError: __init__() takes at most 12 arguments (13 given)' req resp [] tb tb_hide None traceback 'Traceback (most recent call last):\n File ""c:\\archivos de ... * File ""c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py"", line 196, in dispatch Code fragment: 191. req.args.get('__FORM_TOKEN') != req.form_token: 192. raise HTTPBadRequest('Missing or invalid form token. ' 193. 'Do you have cookies enabled?') 194. 195. # Process the request and render the template 196. resp = chosen_handler.process_request(req) 197. if resp: 198. if len(resp) == 2: # Clearsilver 199. chrome.populate_hdf(req) 200. template, content_type = \ 201. self._post_process_request(req, *resp) Local variables: Name Value chosen_handler chrome err (, TypeError('__init__() takes at most 12 ... handler req self * File ""c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py"", line 150, in process_request Code fragment: 145. simply send the response itself and not return anything. 146. """""" 147. path = req.path_info.rstrip('/') 148. 149. if path == '/hours': 150. return self.process_timeline(req) 151. 152. if path.startswith('/hours/query'): 153. return self.save_query(req) 154. 155. ### assume a ticket if the other handlers don't work Local variables: Name Value path u'/hours' req self * File ""c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py"", line 487, in process_timeline Code fragment: 482. constraints, cols, req.args.get('order'), 483. 'desc' in req.args, req.args.get('group'), 484. 'groupdesc' in req.args, 'verbose' in req.args, 485. rows, 486. req.args.get('page'), 487. max) 488. if rm_est_hours: # if not in the columns, remove estimatedhours 489. cols.pop() 490. 491. return self.display_html(req, query) 492. Local variables: Name Value cols ['id', 'summary', 'time_started', 'seconds_worked', 'worker', ... constraints {'status': ['!bogus']} field 'status' format None max 0 qstring 'status!=bogus' req rm_est_hours True rows [] self user 'lucas' val '!bogus' vals ['!bogus'] File ""c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py"", line 419, in _dispatch_request dispatcher.dispatch(req) File ""c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py"", line 196, in dispatch resp = chosen_handler.process_request(req) File ""c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py"", line 150, in process_request return self.process_timeline(req) File ""c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py"", line 487, in process_timeline max) == System Information: == User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Trac: 0.11b2 Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c9 SQLite: 3.5.2 pysqlite: 2.4.1 Genshi: 0.5.1 mod_python: 3.3.1 Subversion: 1.4.6 (r28521) jQuery: 1.2.3" defect closed highest TracHoursPlugin blocker worksforme 0.11