Orange Forum • View topic - OWReport.py: Unhandled exception of type AttributeError

OWReport.py: Unhandled exception of type AttributeError

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

OWReport.py: Unhandled exception of type AttributeError

Postby tokenmathguy » Wed Feb 23, 2011 8:38

Steps to reproduce:
1. Add File component to canvas.
2. Configure connection
3. Click Report
4. Click Save
5. Enter a filename and click Save

Actual outcome:
The following error output is produced

Traceback:
File: OWReport.py, line 243 in saveReport
Code: for i in range(self.tree.count()))
File: OWReport.py, line 243 in <genexpr>
Code: for i in range(self.tree.count()))
AttributeError: 'QListWidgetItem' object has no attribute 'content'

Expected outcome:
HTML file saved containing report information

Python version:
$ python -V
Python 2.6.6

Orange version:
$ python
>>> import orange
>>> orange.version
'2.0b (15:01:37, Feb 22 2011)'

OS version:
$ uname -a
Linux noether 2.6.36-gentoo-r5 #14 SMP PREEMPT Sun Jan 30 12:55:13 PST 2011 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel GNU/Linux

Re: OWReport.py: Unhandled exception of type AttributeError

Postby Ales » Wed Feb 23, 2011 10:34

Thanks. It is fixed now.

Re: OWReport.py: Unhandled exception of type AttributeError

Postby tokenmathguy » Mon Feb 28, 2011 5:22

Hmm. Has the fix been pushed to the nightly build? I still experience the issue. Of course, that may be because the nightly build it seems has remained at 2011-02-23 - at least up until the last time I checked (2011-02-27).

Re: OWReport.py: Unhandled exception of type AttributeError

Postby Ales » Mon Feb 28, 2011 11:50

You are right. Nightly builds failed in the last couple of days.
The problem is fixed now, and the current snapshot contains the fix for OWReport.

Re: OWReport.py: Unhandled exception of type AttributeError

Postby tokenmathguy » Tue Mar 01, 2011 7:43

Reports work. Thanks for the fix!


Return to Bugs



cron