Ticket #1360 (reopened bug)

Opened 5 months ago

Last modified 5 months ago

UnicodeDecodeError when clicking <Report> in any widget

Reported by: chemist69 Owned by:
Milestone: Next 2.x Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

When the file widget is used with any data, e.g. the example iris.tab, clicking on <Report> generates the following traceback:

UnicodeDecodeError Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/Orange/OrangeWidgets/OWWidget.py", line 179, in reportAndFinish

self.finishReport()

File "/usr/lib/python2.7/site-packages/Orange/OrangeWidgets/OWWidget.py", line 298, in finishReport

sender=self)

File "/usr/lib/python2.7/site-packages/Orange/OrangeWidgets/OWReport.py", line 187, in appendReport

self.addEntry(widnode)

File "/usr/lib/python2.7/site-packages/Orange/OrangeWidgets/OWReport.py", line 199, in addEntry

widnode.time, widnode.data)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

system:
Arch Linux x86_64
python-orange 2.7.2 (from AUR)

locale:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"

Attachments

OWReport.py Download (18.5 KB) - added by spookey 5 months ago.
Orange/OrangeWidgets/OWReport.py

Change History

Changed 5 months ago by spookey

Orange/OrangeWidgets/OWReport.py

comment:1 Changed 5 months ago by spookey

Hi,

I think I just fixed the bug. Here's the fixed file.

comment:2 Changed 5 months ago by spookey

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

comment:3 Changed 5 months ago by spookey

  • Status changed from closed to reopened
  • Resolution fixed deleted

I'm not sure how to send the changes. I'll leave it open here.

Note: See TracTickets for help on using tickets.