This forum is shutting down! Please post new discussions at

AttributeError encountered: 'NoneType' object has no attribute 'GetRasterBand'

brunoosbrunoos Member
I am using the natcap.invest package 3.5.0 and am trying to run the habitat quality model using Corine Land Cover reclassified. However, when I fill out the necessary fields with the appropriate parameters and data (threat rasters, threat data CSV and sensitivity table, I get an error (see attached image). Is this a bug or am I missing something? When using the same data in 3.6.0 I got another error, ValueError encountered: The followed land cover codes were found in sensitivity table. Check your sensitivity table to check to see if they are missing: -128.
803 x 640 - 66K


  • swolnyswolny Member, NatCap Staff
    Hi @brunoos -

    It's really useful for us if you would please post the whole logfile (.txt) produced by the model - that will give us more information to work with - thanks.

    Regarding the -128 error - I assume that you do not have an LULC code of -128, but what is the NoData value for the LULC raster? 

    ~ Stacie
Sign In or Register to comment.