- changed status to open
Python error with some VRTs: no attribute 'mPxSize'
Issue #295
closed
Sometimes pops up when opening VRTs (but that works, so overall functionality does not seems to be effected)
2019-09-26T16:10:08 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 203, in addSources
added.extend(self.addSource(s))
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 234, in addSource
if dsNew.isNewVersionOf(d):
File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasources.py", line 591, in isNewVersionOf
and self.mPxSize == dataSource.mPxSize \
AttributeError: 'DataSourceRaster' object has no attribute 'mPxSize'
developer version 3.5xx
Comments (6)
-
-
reporter Seems to be fixed, can not reproduce it anymore. But another message occurs:
An error has occurred while executing Python code: RuntimeError: `All Files (*)' does not exist in the file system, and is not recognized as a supported dataset name. Traceback (most recent call last): File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\enmapboxgui.py", line 608, in self.ui.mActionAddDataSource.triggered.connect(lambda : self.dataSourceManager.addDataSourceByDialog()) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 269, in addDataSourceByDialog self.addSources(uris) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 203, in addSources added.extend(self.addSource(s)) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 219, in addSource newDataSources = DataSourceFactory.create(newDataSource, name=name, icon=icon) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasources.py", line 1025, in create sources = sourceTestFunction(src, name=name, icon=icon) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasources.py", line 1043, in checkForRaster uri, name, pkey = DataSourceFactory.isRasterSource(src) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasources.py", line 879, in isRasterSource provider = rasterProvider(src) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasources.py", line 53, in rasterProvider ds = gdal.Open(uri) File "O:\Student_Data\geo_fath\OSGeo\apps\Python37\lib\site-packages\osgeo\gdal.py", line 3116, in Open return _gdal.Open(*args) RuntimeError: `All Files (*)' does not exist in the file system, and is not recognized as a supported dataset name.
-
addresses issue
#295(RuntimeError: `All Files (*)' does not exist in the file system, and is not recognized as a supported dataset name. caused by Qt4 like call of QFileDialog)Signed-off-by: benjamin.jakimow benjamin.jakimow@geo.hu-berlin.de
→ <<cset b7edf54bf183>>
-
reporter Keep gettin a new one: develop version 27.09. 9:18
AttributeError: 'DataSourceRaster' object has no attribute 'mSpatialExtent' Traceback (most recent call last): File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 1449, in addDataSource dataSourceNode = CreateNodeFromDataSource(dataSource, sourceGroupNode) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 1559, in CreateNodeFromDataSource node = RasterDataSourceTreeNode(parent, dataSource) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 659, in __init__ super(RasterDataSourceTreeNode,self).__init__( *args, **kwds) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 494, in __init__ super(SpatialDataSourceTreeNode,self).__init__( *args, **kwds) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 441, in __init__ self.connectDataSource(dataSource) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 663, in connectDataSource super(RasterDataSourceTreeNode, self).connectDataSource(dataSource) File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\datasourcemanager.py", line 500, in connectDataSource ext = dataSource.mSpatialExtent AttributeError: 'DataSourceRaster' object has no attribute 'mSpatialExtent'
-
addresses
#295Signed-off-by: benjamin.jakimow benjamin.jakimow@geo.hu-berlin.de
→ <<cset 763925184220>>
-
- changed status to closed
- Log in to comment
provided a fix for. please test