Opened 16 years ago

Last modified 14 years ago

#3971 closed defect

Error when going on "TicketStats" — at Initial Version

Reported by: anonymous Owned by: Prentice Wongvibulsin
Priority: normal Component: TracTicketStatsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

I got this when I try to go in TicketStats section:

Trac detected an internal error:

ValueError: need more than 1 value to unpack

Otherwise, please ==== How to Reproduce ==== While doing a GET operation on /ticketstats, Trac issued an internal error. (please provide additional details here) User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729) ==== System Information ====
Trac 0.11.1 Python 2.5.1 (r251:54863, Jul 31 2008, 22:53:39)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)]
setuptools 0.6c5 SQLite 3.3.13 pysqlite 2.3.2 Genshi 0.5.1 Subversion 1.4.3 (r23084) jQuery: 1.2.6 ==== Python Traceback ==== Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 173, in dispatch chosen_handler) File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 286, in _pre_process_request chosen_handler = filter_.pre_process_request(req, chosen_handler) File "build/bdist.linux-i686/egg/announcerplugin/subscribers/watchers.py", line 142, in pre_process_request realm, _ = path.split('/', 1) ValueError: need more than 1 value to unpack 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.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request Code fragment:
    1. try:
    2. if not env and env_error:
    3. raise HTTPInternalError(env_error)
    4. try:
    5. dispatcher = RequestDispatcher(env)
    6. dispatcher.dispatch(req)
    7. except RequestDone:
    8. pass
    9. resp = req._response or []
    10. 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 <trac.web.main.RequestDispatcher object at 0x866d02c> e ValueError('need more than 1 value to unpack',) env <trac.env.Environment object at 0x82a2ccc> env_error None exc_info (<type 'exceptions.ValueError'>, ValueError('need more than 1 value to ... filename '/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py' frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 422 message u'ValueError: need more than 1 value to unpack' req <Request "GET u'/ticketstats'"> resp [] tb <traceback object at 0x88a3054> tb_hide None traceback 'Traceback (most recent call last):\n File ...
  • File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 173, in dispatch Code fragment:
    1. if not req.path_info or req.path_info == '/':
    2. chosen_handler = self.default_handler
    3. # pre-process any incoming request, whether a handler
    4. # was found or not
    5. chosen_handler = self._pre_process_request(req,
    6. chosen_handler)
    7. except TracError, e:
    8. raise HTTPInternalError(e)
    9. if not chosen_handler:
    10. raise HTTPNotFound('No handler matched request to %s',
    11. req.path_info)
    Local variables: Name Value chosen_handler <ticketstats.ticketstats.TicketStatsPlugin object at 0x866d9cc> chrome <trac.web.chrome.Chrome object at 0x86625ec> err (<type 'exceptions.ValueError'>, ValueError('need more than 1 value to ... handler <ticketstats.ticketstats.TicketStatsPlugin object at 0x866d9cc> req <Request "GET u'/ticketstats'"> self <trac.web.main.RequestDispatcher object at 0x866d02c>
  • File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 286, in _pre_process_request Code fragment:
    1. req.outcookietrac_form_token?path? = req.base_path or '/'
    2. return req.outcookietrac_form_token?.value
    3. def _pre_process_request(self, req, chosen_handler):
    4. for filter_ in self.filters:
    5. chosen_handler = filter_.pre_process_request(req, chosen_handler)
    6. return chosen_handler
    7. def _post_process_request(self, req, *args):
    8. nbargs = len(args)
    9. resp = args
    Local variables: Name Value chosen_handler <ticketstats.ticketstats.TicketStatsPlugin object at 0x866d9cc> filter_ <announcerplugin.subscribers.watchers.WatchSubscriber object at 0x866daac> req <Request "GET u'/ticketstats'"> self <trac.web.main.RequestDispatcher object at 0x866d02c>
  • File "build/bdist.linux-i686/egg/announcerplugin/subscribers/watchers.py", line 142, in pre_process_request

Change History (0)

Note: See TracTickets for help on using tickets.