UnicodeEncodeError with non-ascii page ids

Bug #1048470 reported by Robert Collins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-oops-tools
Fix Released
Critical
Robert Collins

Bug Description

Traceback (most recent call last):
  File "bin/report", line 55, in <module>
    oopstools.scripts.report.main()
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/scripts/report.py", line 76, in main
    summary.renderHTML(html_file)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 688, in renderHTML
    section.renderHTML(fp)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 313, in renderHTML
    self._renderGroups(fp, html=True)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 287, in _renderGroups
    group.renderHTML(fp)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 202, in renderHTML
    '(%(pageid)s)\n' % data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0443' in position 244: ordinal not in range(128)

Related branches

Changed in python-oops-tools:
assignee: nobody → Robert Collins (lifeless)
Revision history for this message
Haw Loeung (hloeung) wrote :

Hi,

New error:

oops_tools@neem:/etc/cron.d$ cd $OOPS_TOOLS && bin/report
Traceback (most recent call last):
  File "bin/report", line 55, in <module>
    oopstools.scripts.report.main()
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/scripts/report.py", line 82, in main
    summary.renderTXT(fp)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 661, in renderTXT
    section.renderTXT(fp)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 303, in renderTXT
    self._renderGroups(fp)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 290, in _renderGroups
    group.renderTXT(fp)
  File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/dbsummaries.py", line 173, in renderTXT
    fp.write(' %(count)4d %(url)s (%(pageid)s)\n' % data)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 46: ordinal not in range(128)

tags: added: canonical-webops-oops
Changed in python-oops-tools:
status: Triaged → Fix Committed
Changed in python-oops-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.