This forum is shutting down! Please post new discussions at

RIOS v 1.0.0b11 AttributeError 'NoneType' object has no attribute 'SetProjection'

jplattjplatt Member
edited December 2014 in RIOS
Running RIOS v1.0.0b11 with multiple objectives generates an AttributeError encountered: 'NoneType' object has no attribute 'SetProjection'. The traceback follows:

Traceback (most recent call last):
File "invest_natcap\iui\executor.pyc", line 553, in runModel
File "C:\Program Files\RIOS 1.0.0b11 x86\rios_data\.\rios\", line 28, in execute
File "C:\Program Files\RIOS 1.0.0b11 x86\rios_data\.\rios\", line 202, in execute_30
File "C:\Program Files\RIOS 1.0.0b11 x86\rios_data\.\rios\", line 1223, in _normalize_rasters
File "C:\Program Files\RIOS 1.0.0b11 x86\rios_data\.\rios\", line 1354, in _map_raster_to_table
File "invest_natcap\raster_utils.pyc", line 1812, in reclassify_dataset_uri
File "invest_natcap\raster_utils.pyc", line 2579, in vectorize_datasets
File "invest_natcap\raster_utils.pyc", line 417, in new_raster_from_base
File "raster_cython_utils.pyx", line 442, in invest_natcap.raster_cython_utils.new_raster_from_base (../invest-natcap.invest-3/invest_natcap\raster_cython_utils.cpp:8163)
AttributeError: 'NoneType' object has no attribute 'SetProjection'

The usual suspects have been checked: raster properties, general LULC coefficients and LULC classification CSV with activities and there is nothing obvious.

The tool worked correctly on very similar data, but now fails. Any insights or suggestions?


  • Forgot to add that the platform is Win7Pro 64bit, 24GB RAM, and while it doesn't matter for this error, AGIS 10.2.1.
  • jdouglassjdouglass Administrator, NatCap Staff
    Hi jplatt,

    This sort of error usually indicates that something went wrong when interacting with a raster. In this particular case, something likely went wrong when creating a new raster.

    Can you take a look at your CMD window (a black CMD window would have popped up when you started RIOS) and see if there are any errors there (example: "ERROR 1: ")? This would help greatly in pinpointing the issue.

  • Thanks for the quick reply.

    This is the text:

    ERROR 1: TIFFOpen:D:/gis_data/jplatt/Workspace/Data/NACR/NaturalCapital/RIOS/Data/IowaCedar/RIOS_HUC10_All_Ag_Veg_Mngt_NoMask_20141215\1_investment_portfolio_adviser_workspace\objectives\flood_mitigation_impact\normalized_input_factors\Land Use Land Cover Retention at pixel.tif: No such file or directory

    The path (deep though it is), exists and contains raster files.
  • Correction: I'm guessing it is obvious, but the RIOS version is 1.0.0b10, not 1.0.0b11
  • RichRich Administrator, NatCap Staff
    I'm curious, you say the path contains raster files, but does it contain exactly the file "Land Use Land Cover Retention at pixel.tif" or I wonder if there's something getting mixed up with spaces and capital letters.
  • jdouglassjdouglass Administrator, NatCap Staff
    Hi jplatt,

    In looking at the filepath you provided, it looks like the issue might be the length of the filepath. Windows has an annoyingly short maximum path length of 260 characters, and this raster's filename has a filepath of 261 characters. Could you try running RIOS in a workspace with a shallower directory structure?
Sign In or Register to comment.