About 231,000 results
Open links in new tab
  1. python - 'NoneType' object has no attribute - Geographic …

    May 18, 2022 · When something like osgeo.ogr.Open() fails, it usually returns None, which, in your case, gets assigned to your variable "shapefile". When you try to then access shapefile later, it tells you that shapefile is "NoneType" (rather than the type of object that osgeo would have created) and that NoneType objects don't have the method GetLayerCount.

  2. python - QGIS 3.36-3.40 - AttributeError: 'NoneType' object has no ...

    Okay, I've found the answer. I just needed to delete packages (user installed packages) so that only those that QGIS uses by default are left (and so don't conflict with each other):

  3. python - qgis plugin: 'NoneType' object has no attribute …

    Jul 12, 2018 · I try developing a QGIS plugin for the first time and I am stuck trying to connect the python code to the dockwidget and it's contents created in QT Designer. I created a QListView inside the dockwidget and I called it "attributeList". I try connecting it with. self.dockwidget.attributeList.clear()

  4. arcpy - Python script returns NoneType - Geographic Information …

    Jun 29, 2022 · NoneType is a foundational type in Python and is represented solely by None. Before diving too much deeper into ArcPy, it might be beneficial to deepen your understanding of Python itself. Before diving too much deeper into ArcPy, it might be beneficial to deepen your understanding of Python itself.

  5. python - GDAL translate -AttributeError: 'NoneType' object has no ...

    Jul 13, 2018 · QGIS 3.36-3.40 - AttributeError: 'NoneType' object has no attribute 'write' Hot Network Questions Apparent inconsistencies between <sObject>.sObjectType.getDescribe() and Schema.sObjectType.<sObject>

  6. python - GDAL ReadAsArray returning NoneType? - Geographic …

    Feb 26, 2015 · When using 5 images instead of just 3, NoneType is always/only returned for the 2nd and 4th N in the loop. That is, when looping through N=0 to N=4, numpy arrays are returned for N=0,2,4, while NoneType is returned for N=1 and N=3.

  7. open geotiff obtained from NetCDF in python - 'NoneType' object …

    Dec 6, 2017 · 'NoneType' object has no attribute 'GetRasterBand' is Python's way of saying it all went wrong. The problem is that the first line returns None (or null to the rest of us non-python types), and then you tried to use that value in the second line.

  8. python - gdal.Open error: 'NoneType' object has no attribute ...

    Jan 23, 2019 · I am running a python script which calibrates a hydrologic model, this script uses gdal from Osgeo. Following is the command I am giving python: from osgeo import gdal infile="G:\ARORA\vic_inputs\routing_files\new_basin\sutlej_beas_new_fraction.tif" ds = gdal.Open(infile,gdal.GA_ReadOnly) b1 = ds.GetRasterBand(band) b1 gives the following error:

  9. GDAL raster shifting with python error: 'NoneType' object has no ...

    May 27, 2015 · In particular, python from QGIS on Windows is "homed" wherever the QGIS.exe binary lives (note: you can change runtime directories on Windows applications if you have Administrator rights - create a shortcut and set "Start in"). The easiest way to move forward with this is just to provide the full path:

  10. python - Fixing this error "NoneType object is not subscriptable ...

    May 8, 2021 · gdal.Open error: 'NoneType' object has no attribute 'GetRasterBand' 2 geopandas.overlay() doesn't work in google colaboratory this return AttributeError: 'NoneType' object has no attribute 'intersection'

Refresh