- changed title to Python error: QColor when trying to open .pkl
- edited description
Python error: QColor when trying to open .pkl
Issue #168
resolved
Observed this error during image classification with the testdata, but I cannot really assign it to a specific action. Does not seem to disturb workflow. To be continued....
UPDATE:
Happens when trying to open a model (.pkl) file
2018-10-02T14:54:46 WARNING Traceback (most recent call last):
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 1133, in addDataSource
dataSourceNode = CreateNodeFromDataSource(dataSource, None)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 1457, in CreateNodeFromDataSource
node = HubFlowObjectTreeNode(parent, dataSource)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 706, in __init__
super(HubFlowObjectTreeNode, self).__init__(*args, **kwds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 443, in __init__
self.connectDataSource(dataSource)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 721, in connectDataSource
self.fetchInternals(self.dataSource.flowObject(), parentTreeNode=self)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 775, in fetchInternals
fetch(obj.__dict__, parentTreeNode=parentTreeNode, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 793, in fetchInternals
fetch(value, parentTreeNode=node, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 775, in fetchInternals
fetch(obj.__dict__, parentTreeNode=parentTreeNode, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 793, in fetchInternals
fetch(value, parentTreeNode=node, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 808, in fetchInternals
fetch(item, parentTreeNode=node, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 775, in fetchInternals
fetch(obj.__dict__, parentTreeNode=parentTreeNode, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 793, in fetchInternals
fetch(value, parentTreeNode=node, fetchedObjectIds=fetchedObjectIds)
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 771, in fetchInternals
ci = ClassInfo(label=label, name=obj.name(label+1), color=QColor(obj.color(label+1)))
TypeError: arguments did not match any overloaded call:
QColor(Qt.GlobalColor): argument 1 has unexpected type 'Color'
QColor(int): too many arguments
QColor(QRgba64): argument 1 has unexpected type 'Color'
QColor(Any): argument 1 has unexpected type 'Color'
QColor(): argument 1 has unexpected type 'Color'
Comments (4)
-
reporter -
@jakimowb in
ci = ClassInfo(label=label, name=obj.name(label+1), color=QColor(obj.color(label+1)))
theobj.color
methode does not return a QColor object anymore.Use
obj.color(label+1)._qColor
instead. -
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
fixed Issue
#168→ <<cset 64fcbc24ae8e>>
- Log in to comment