can not drop a source band onto a map views

Issue #314 closed
Andreas Janz created an issue

TypeError: 'providerKey' is an unknown keyword argument

Traceback (most recent call last):
  File "C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\mapcanvas.py", line 1279, in dropEvent
    mapLayers = extractMapLayers(mimeData)
  File "C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\mimedata.py", line 211, in extractMapLayers
    lyr = QgsRasterLayer(uri, baseName=baseName, providerKey=providerKey)
TypeError: 'providerKey' is an unknown keyword argument

Comments (3)

  1. Florian Beyer

    Hi Andreas / Benjamin,

    I have the same problem.

    Do you already fixed it?

    An error has occurred while executing Python code: 
    
    TypeError: 'providerKey' is an unknown keyword argument 
    Traceback (most recent call last):
      File "//auf.uni-rostock.de/homes/profile/beyer/Anwendungsdaten/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\dockmanager.py", line 1233, in 
        dockArea.sigDropEvent.connect(lambda event: self.onDockAreaDragDropEvent(dockArea, event))
      File "//auf.uni-rostock.de/homes/profile/beyer/Anwendungsdaten/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\dockmanager.py", line 1270, in onDockAreaDragDropEvent
        layers = extractMapLayers(mimeData)
      File "//auf.uni-rostock.de/homes/profile/beyer/Anwendungsdaten/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\mimedata.py", line 211, in extractMapLayers
        lyr = QgsRasterLayer(uri, baseName=baseName, providerKey=providerKey)
    TypeError: 'providerKey' is an unknown keyword argument
    
    
    Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
    QGIS version: 3.10.1-A Coruña A Coruña, ef24c526da 
    

  2. Log in to comment