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

AttributeError: 'str' object has no attribute 'toStri

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

AttributeError: 'str' object has no attribute 'toStri

Postby shuijingzi » Sun Sep 01, 2013 11:45

I can not report the data from "Data Table". When I click "Report", that will occure:
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
--------------------------------------------------------------------------------
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'
Can you tell me how solve the problem.
Thanks

Return to Questions & Support



cron