Orange Forum • View topic - AttributeError: 'str' object has no attribute 'toString'

AttributeError: 'str' object has no attribute 'toString'

A place to ask questions about methods in Orange and how they are used and other general support.

AttributeError: 'str' object has no attribute 'toString'

Postby shuijingzi » Sun Sep 01, 2013 12:11

AttributeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeWidgets\OWWidget.py", line 174, in reportAndFinish
self.sendReport()
File "C:\Python27\lib\site-packages\Orange\OrangeWidgets\Data\OWDataTable.py", line 490, in sendReport
self.reportRaw(OWReport.reportTable(table))
File "C:\Python27\lib\site-packages\Orange\OrangeWidgets\OWReport.py", line 459, in reportTable
"th", "padding-left: 4px; padding-right: 4px;") for i in shownColumns) + "</tr>\n"
File "C:\Python27\lib\site-packages\Orange\OrangeWidgets\OWReport.py", line 459, in <genexpr>
"th", "padding-left: 4px; padding-right: 4px;") for i in shownColumns) + "</tr>\n"
File "C:\Python27\lib\site-packages\Orange\OrangeWidgets\OWReport.py", line 449, in reportCell
text = str(model.headerData(index, Qt.Horizontal, Qt.DisplayRole).toString()).replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
AttributeError: 'str' object has no attribute 'toString'


How to solve this probelm?

Re: AttributeError: 'str' object has no attribute 'toString'

Postby Ales » Tue Sep 03, 2013 11:24

This should now be fixed. Please reinstall orange and test it.


Return to Questions & Support