Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#11478 closed defect (fixed)

TypeError: coercing to Unicode: need string or buffer, LazyProxy found

Reported by: anonymous Owned by: robguttman
Priority: normal Component: SumStatsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


How to Reproduce

While doing a GET operation on /roadmap, Trac issued an internal error.

(please provide additional details here)

Request parameters:


User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

System Information

Trac 1.1.2dev-r0
Babel 0.9.6 (translations unavailable)
Docutils 0.12
Genshi 0.6.1 (without speedups)
Pygments 1.6dev-20140104
pysqlite 2.6.3
Python 2.7.4 (default, Sep 26 2013, 03:20:26)
[GCC 4.7.3]
pytz 2013d
setuptools 0.6
Subversion 1.8.5 (r1542147)
jQuery 1.8.3

Enabled Plugins

SumStatsPlugin 0.9.0

Python Traceback

Traceback (most recent call last):
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/web/", line 504, in _dispatch_request
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/web/", line 221, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/ticket/", line 439, in process_request
    stat = get_ticket_stats(self.stats_provider, tickets)
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/ticket/", line 296, in get_ticket_stats
    return provider.get_ticket_group_stats([t['id'] for t in tickets])
  File "/home/user/Workspace/trachacks.git/sumstatsplugin/0.12/sumstats/", line 148, in get_ticket_group_stats
    for group in self._get_groups(ticket_ids):
  File "/home/user/Workspace/trachacks.git/sumstatsplugin/0.12/sumstats/", line 39, in _get_groups
    self._update_group(group, ticket_ids)
  File "/home/user/Workspace/trachacks.git/sumstatsplugin/0.12/sumstats/", line 51, in _update_group
    group['total'] = self._get_total(group, field, ticket_ids)
  File "/home/user/Workspace/trachacks.git/sumstatsplugin/0.12/sumstats/", line 125, in _get_total
    print type(self.filter), self.filter
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/", line 617, in __get__
    value = self.accessor(section,, self.default)
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/", line 673, in accessor
    return section.getlist(name, default, self.sep, self.keep_empty)
  File "/home/user/Workspace/t11129/local/lib/python2.7/site-packages/Trac-1.1.2dev_r0-py2.7.egg/trac/", line 464, in getlist
    items = [item.strip() for item in value.split(sep)]
TypeError: coercing to Unicode: need string or buffer, LazyProxy found

Attachments (0)

Change History (2)

comment:1 Changed 7 months ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

In 13547:

Fixed misplaced positional argument in call to ListOption. Fixes #11478.

comment:2 Changed 7 months ago by rjollos

In 13548:

Removed debug print statment. Refs #11478.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from robguttman. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.