This forum is shutting down! Please post new discussions at community.naturalcapitalproject.org

Recreation- URLError

Hi again,

I am still having issues with running the initial recreation model. I have modified my predictor files so they are within the maximum size, and now I am getting "URLError." I've pasted the log below.

Thank you for your advice!

Initializing...

09/23/2015 11:33:40 root DEBUG PATH: ['C:\\InVEST_3_1_3_x86\\invest-3-x86\\.']

09/23/2015 11:33:40 root DEBUG Loading recreation_client from PATH

Arguments:

aoi_file_name E:/InVestModelWrkspc/NutReten/Satilla.shp

cell_size 10000.0

comments

data_dir E:\InVestModelWrkspc\Recreation\500mPredCurr

download False

global_data False

grid True

grid_type 0

mode initial

workspace_dir E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m



09/23/2015 11:33:40 root INFO Logging will be saved to recreation_client-log-2015-09-23--11_33_40.txt

09/23/2015 11:33:40 root DEBUG Loaded the model from invest_natcap.recreation.recreation_client

09/23/2015 11:33:40 root INFO Executing the loaded model

09/23/2015 11:33:40 root INFO Running InVEST version "3.1.3"

09/23/2015 11:33:40 root INFO Python architecture: ('32bit', 'WindowsPE')

09/23/2015 11:33:40 root INFO Disk space remaining for workspace: 1.55 TB

09/23/2015 11:33:40 root INFO Pointing temporary directory at the workspace at E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m

09/23/2015 11:33:40 root INFO Updating os.environ["TMP"]=C:\Users\lme83208\AppData\Local\Temp to E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m

09/23/2015 11:33:40 root INFO Updating os.environ["TEMP"]=C:\Users\lme83208\AppData\Local\Temp to E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m

09/23/2015 11:33:40 root INFO Setting os.environ["TMPDIR"]=E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m

09/23/2015 11:33:40 root INFO Setting tempfile.tempdir to E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m\tmp

09/23/2015 11:33:40 root INFO Starting recreation_client

09/23/2015 11:33:40 invest_natcap.recreation.client_init INFO URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.

09/23/2015 11:33:40 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Assigned server session id 016pq0tc967rr06mui0o7rngi6.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Checking version.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO You have a compatible version.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Finished checking version.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Validating AOI.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Processing predictors.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Found Ag predictor.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Found Beach predictor.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Found Devel predictor.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Found Forest predictor.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Found Timber predictor.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Found WatWetl predictor.

09/23/2015 11:33:41 invest_natcap.recreation.client_init INFO Opening predictors for uploading.

09/23/2015 11:33:42 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_predictors.php.

09/23/2015 11:33:44 invest_natcap.recreation.client_init INFO You have uploaded 1 files.

09/23/2015 11:33:44 invest_natcap.recreation.client_init INFO Your upload size is 255375.

09/23/2015 11:33:44 invest_natcap.recreation.client_init INFO The max upload size is 104857600.

09/23/2015 11:33:44 invest_natcap.recreation.client_init INFO Running server side processing.

09/23/2015 11:33:44 invest_natcap.recreation.client_init INFO URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_initial.php.

09/23/2015 11:33:44 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_initial.php.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Model running.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Executing recreation Python script.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Running server side model with user provided parameters.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO The map unit coversion to meters is 1||0.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Found Beach predictor.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Found WatWetl predictor.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Found Ag predictor.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Found Timber predictor.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Found Devel predictor.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Found Forest predictor.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Checking for custom categorization for standard predictors.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Only user provided simple predictors found.

09/23/2015 11:33:45 invest_natcap.recreation.client_init INFO Importing AOI /usr/local/public_html/data/016pq0tc967rr06mui0o7rngi6/aoi.shp.

09/23/2015 11:33:46 invest_natcap.recreation.client_init INFO Imported AOI.

09/23/2015 11:33:46 invest_natcap.recreation.client_init INFO Importing user supplied predictor variables.

09/23/2015 11:33:46 invest_natcap.recreation.client_init INFO Importing user supplied compound variables.

09/23/2015 11:33:47 invest_natcap.recreation.client_init WARNING Predictor WatWetl contains invalid geometry.

09/23/2015 11:33:47 invest_natcap.recreation.client_init WARNING Attempting to fix the geometry of predictor WatWetl.

09/23/2015 11:33:47 invest_natcap.recreation.client_init INFO Please wait.

09/23/2015 11:34:02 invest_natcap.recreation.client_init INFO Predictor WatWetl geometry now valid.

09/23/2015 11:34:02 invest_natcap.recreation.client_init WARNING Predictor Ag contains invalid geometry.

09/23/2015 11:34:02 invest_natcap.recreation.client_init WARNING Attempting to fix the geometry of predictor Ag.

09/23/2015 11:34:02 invest_natcap.recreation.client_init INFO Predictor Ag geometry now valid.

09/23/2015 11:34:02 invest_natcap.recreation.client_init WARNING Predictor Timber contains invalid geometry.

09/23/2015 11:34:02 invest_natcap.recreation.client_init WARNING Attempting to fix the geometry of predictor Timber.

09/23/2015 11:34:02 invest_natcap.recreation.client_init INFO Please wait.

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Predictor Timber geometry now valid.

09/23/2015 11:34:17 invest_natcap.recreation.client_init WARNING Predictor Devel contains invalid geometry.

09/23/2015 11:34:17 invest_natcap.recreation.client_init WARNING Attempting to fix the geometry of predictor Devel.

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Predictor Devel geometry now valid.

09/23/2015 11:34:17 invest_natcap.recreation.client_init WARNING Predictor Forest contains invalid geometry.

09/23/2015 11:34:17 invest_natcap.recreation.client_init WARNING Attempting to fix the geometry of predictor Forest.

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Predictor Forest geometry now valid.

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Merging AOI if multiple parts.

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Transforming AOI to Latitude and Longitude.

09/23/2015 11:34:17 invest_natcap.recreation.client_init WARNING The AOI intersects 5 and is covered by 0 administrative area(s).

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Creating recatangular grid prj_grid from aoi_union using cell size 10000.0.

09/23/2015 11:34:17 invest_natcap.recreation.client_init INFO Please wait.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO The grid contains 55 cells.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO The AOI meets the maximum size requirement.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting the grid for clips.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping simple predictors.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping Beach.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping WatWetl.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping Ag.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping Timber.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping Devel.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping Forest.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Clipping compound predictors.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Converting compound predictors to simple predictors.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting simple predictors.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting Beach.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting WatWetl.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting Ag.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting Timber.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting Devel.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Projecting Forest.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Aggregating Beach.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Processing polygon predictor Beach.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Aggregating WatWetl.

09/23/2015 11:34:33 invest_natcap.recreation.client_init INFO Processing polygon predictor WatWetl.

09/23/2015 11:34:54 root ERROR ---------------------------------------------------

09/23/2015 11:34:54 root ERROR ---------------------- ERROR ----------------------

09/23/2015 11:34:54 root ERROR ---------------------------------------------------

09/23/2015 11:34:54 root ERROR Error: exception found while running recreation_client

09/23/2015 11:34:54 root DEBUG

09/23/2015 11:34:54 root DEBUG Build details

09/23/2015 11:34:54 root DEBUG Interpreter

09/23/2015 11:34:54 root DEBUG Current temp dir: E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m\tmp

09/23/2015 11:34:54 root DEBUG tempfile.tempdir: E:\InVestModelWrkspc\Recreation\Rec9_23_15curr500m\tmp

09/23/2015 11:34:54 root DEBUG

09/23/2015 11:34:54 root DEBUG System

09/23/2015 11:34:54 root DEBUG OS : Windows-7-6.1.7601-SP1

09/23/2015 11:34:54 root DEBUG Processor architecture: AMD64

09/23/2015 11:34:54 root DEBUG FS encoding : mbcs

09/23/2015 11:34:54 root DEBUG

09/23/2015 11:34:54 root DEBUG Python

09/23/2015 11:34:54 root DEBUG Version : 2.7.9

09/23/2015 11:34:54 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

09/23/2015 11:34:54 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

09/23/2015 11:34:54 root DEBUG Implementation : CPython

09/23/2015 11:34:54 root DEBUG Architecture : 32bit

09/23/2015 11:34:54 root DEBUG Linkage format : WindowsPE

09/23/2015 11:34:54 root DEBUG

09/23/2015 11:34:54 root DEBUG Packages

09/23/2015 11:34:54 root DEBUG Cython : ?

09/23/2015 11:34:54 root DEBUG Numpy : 1.8.1

09/23/2015 11:34:54 root DEBUG Scipy : 0.15.1

09/23/2015 11:34:54 root DEBUG OSGEO : 1.10.1

09/23/2015 11:34:54 root DEBUG Shapely : 1.5.5

09/23/2015 11:34:54 root DEBUG InVEST : 3.1.3

09/23/2015 11:34:54 root DEBUG

09/23/2015 11:34:54 root DEBUG

09/23/2015 11:34:54 root DEBUG error <class 'urllib2.URLError'> number None

09/23/2015 11:34:54 root DEBUG Error message: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

09/23/2015 11:34:54 root DEBUG Exception not disk-space related

09/23/2015 11:34:54 root DEBUG Printing traceback

Traceback (most recent call last):

File "invest_natcap\iui\executor.pyc", line 553, in runModel

File "invest_natcap\recreation\recreation_client.pyc", line 546, in execute

File "invest_natcap\recreation\recreation_client.pyc", line 112, in log_check

File "urllib2.pyc", line 154, in urlopen

File "urllib2.pyc", line 431, in open

File "urllib2.pyc", line 449, in _open

File "urllib2.pyc", line 409, in _call_chain

File "poster\streaminghttp.pyc", line 142, in http_open

File "urllib2.pyc", line 1197, in do_open

URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

None


09/23/2015 11:34:54 root ERROR Exiting due to failures

Tagged:

Comments

  • DaveDave Member, Administrator, NatCap Staff
    Hi Laura,

    Sorry for these persistent problems. The error message doesn't quite make it clear if the network connection problems are on the server end or the client end. I've verified that the server is up and running, so please try again when you have the chance.

    Thanks,
    Dave
  • Hi Dave,
    I'm sorry to keep coming back with questions, but I've run into another problem. Now that I've got the initial tool to run, I'm getting an error message with the scenario tool: "There will be no modified predictors in this scenario."

    I'm confused because I am only using the land cover predictors that I have created, and they are different than the ones for the initial run. Each shapefile is named the same for the two scenarios, and they are polygons.

    I tried a model run using the Open Street Map predictors, and modifying those shapefiles for the Scenario tool, and that worked successfully. However, I would like to use my own set of predictors, relevant to my project.

    What do you think?

    I really appreciate all your help!

    -Laura
  • DaveDave Member, Administrator, NatCap Staff
    Hi Laura,

    Please include your log file here like you did earlier and I will be able to look into this issue for you.
  • Hi Dave,

    Here is the log:

    Arguments:
    comments     
    data_dir      E:\InVestModelWrkspc\Recreation\500mPredComp
    json          E:/InVestModelWrkspc/Recreation/Rec9_23_15curr500m/results-2015-09-24--12_43_29/init.json
    mode          scenario
    workspace_dir E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m


    09/24/2015 12:46:00  root               INFO     Logging will be saved to recreation_client-log-2015-09-24--12_46_00.txt
    09/24/2015 12:46:00  root               DEBUG    Loaded the model from invest_natcap.recreation.recreation_client
    09/24/2015 12:46:00  root               INFO     Executing the loaded model
    09/24/2015 12:46:00  root               INFO     Running InVEST version "3.1.3"
    09/24/2015 12:46:00  root               INFO     Python architecture: ('32bit', 'WindowsPE')
    09/24/2015 12:46:00  root               INFO     Disk space remaining for workspace: 1.55 TB
    09/24/2015 12:46:01  root               INFO     Pointing temporary directory at the workspace at E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m
    09/24/2015 12:46:01  root               INFO     Updating os.environ["TMP"]=E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m\tmp to E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m
    09/24/2015 12:46:01  root               INFO     Updating os.environ["TEMP"]=E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m\tmp to E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m
    09/24/2015 12:46:01  root               INFO     Updating os.environ["TMPDIR"]=E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m\tmp to E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m
    09/24/2015 12:46:01  root               INFO     Setting tempfile.tempdir to E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m\tmp
    09/24/2015 12:46:01  root               INFO     Starting recreation_client
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Assigned server session id rudrefk9f7uk692i02bg7bibi7.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Checking version.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     You have a compatible version.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Finished checking version.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Processing predictors.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Found Ag predictor.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Found Beach predictor.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Found Devel predictor.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Found Forest predictor.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Found Timber predictor.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Found WatWetl predictor.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Opening predictors for uploading.
    09/24/2015 12:46:01  invest_natcap.recreation.client_init INFO     Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_predictors.php.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     You have uploaded 1 files.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     Your upload size is 161176.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     The max upload size is 104857600.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     Running server side processing.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_scenario.php.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_scenario.php.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     Model running.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO      Running server side scenario with user provided parameters.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO      Connecting to database.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO      Loading grid.
    09/24/2015 12:46:02  invest_natcap.recreation.client_init INFO     Please wait.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Getting list of predictors in grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Processing user uploaded files.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Found simple predictor Beach.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init WARNING   Predictor Beach is not in the grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Found simple predictor WatWetl.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init WARNING   Predictor WatWetl is not in the grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Found simple predictor Ag.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init WARNING   Predictor Ag is not in the grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Found simple predictor Timber.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init WARNING   Predictor Timber is not in the grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Found simple predictor Devel.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init WARNING   Predictor Devel is not in the grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Found simple predictor Forest.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init WARNING   Predictor Forest is not in the grid.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Projecting the grid for clips.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Clipping simple predictors.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Clipping compound predictors.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Converting compound predictors to simple predictors.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      Projecting simple predictors.
    09/24/2015 12:46:18  invest_natcap.recreation.client_init INFO      New data for columns [].
    09/24/2015 12:46:18  invest_natcap.recreation.client_init ERROR     There will be no modified predictors in the scenario.
    09/24/2015 12:46:18  root               ERROR    ---------------------------------------------------
    09/24/2015 12:46:18  root               ERROR    ---------------------- ERROR ----------------------
    09/24/2015 12:46:18  root               ERROR    ---------------------------------------------------
    09/24/2015 12:46:18  root               ERROR    Error: exception found while running recreation_client
    09/24/2015 12:46:18  root               DEBUG   
    09/24/2015 12:46:18  root               DEBUG    Build details
    09/24/2015 12:46:18  root               DEBUG    Interpreter
    09/24/2015 12:46:18  root               DEBUG    Current temp dir: E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m\tmp
    09/24/2015 12:46:18  root               DEBUG    tempfile.tempdir: E:\InVestModelWrkspc\Recreation\Rec9_24_15comp500m\tmp
    09/24/2015 12:46:18  root               DEBUG   
    09/24/2015 12:46:18  root               DEBUG    System
    09/24/2015 12:46:18  root               DEBUG    OS              : Windows-7-6.1.7601-SP1
    09/24/2015 12:46:18  root               DEBUG    Processor architecture: AMD64
    09/24/2015 12:46:18  root               DEBUG    FS encoding     : mbcs
    09/24/2015 12:46:18  root               DEBUG   
    09/24/2015 12:46:18  root               DEBUG    Python
    09/24/2015 12:46:18  root               DEBUG    Version         : 2.7.9
    09/24/2015 12:46:18  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
    09/24/2015 12:46:18  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
    09/24/2015 12:46:18  root               DEBUG    Implementation  : CPython
    09/24/2015 12:46:18  root               DEBUG    Architecture    : 32bit
    09/24/2015 12:46:18  root               DEBUG    Linkage format  : WindowsPE
    09/24/2015 12:46:18  root               DEBUG   
    09/24/2015 12:46:18  root               DEBUG    Packages
    09/24/2015 12:46:18  root               DEBUG    Cython          : ?
    09/24/2015 12:46:18  root               DEBUG    Numpy           : 1.8.1
    09/24/2015 12:46:18  root               DEBUG    Scipy           : 0.15.1
    09/24/2015 12:46:18  root               DEBUG    OSGEO           : 1.10.1
    09/24/2015 12:46:18  root               DEBUG    Shapely         : 1.5.5
    09/24/2015 12:46:18  root               DEBUG    InVEST          : 3.1.3
    09/24/2015 12:46:18  root               DEBUG   
    09/24/2015 12:46:18  root               DEBUG   
    09/24/2015 12:46:18  root               DEBUG    error <type 'exceptions.IOError'> number None
    09/24/2015 12:46:18  root               DEBUG    Error message: Error on server:  There will be no modified predictors in the scenario.
    09/24/2015 12:46:18  root               DEBUG    Exception not disk-space related
    09/24/2015 12:46:18  root               DEBUG    Printing traceback
    Traceback (most recent call last):
      File "invest_natcap\iui\executor.pyc", line 553, in runModel
      File "invest_natcap\recreation\recreation_client.pyc", line 546, in execute
      File "invest_natcap\recreation\recreation_client.pyc", line 125, in log_check
      File "invest_natcap\recreation\recreation_client.pyc", line 82, in relogger
    IOError: Error on server:  There will be no modified predictors in the scenario.
    None

    09/24/2015 12:46:18  root               ERROR    Exiting due to failures
    09/24/2015 12:46:18  root               INFO     Elapsed time: 17.22s


    Thank you!
  • DaveDave Member, Administrator, NatCap Staff
    Hi Laura,

    I think you may need to change the filenames of your shapefiles to lowercase (only for your scenario run). I know they were uppercase for your initial run, but I believe they were saved in our database as all lowercase, and that is the reason for all the messages like "Forest is not found in the grid".

    Thanks,
    Dave
  • Hi Dave,
    Thanks for all of your help on this. I changed the names on my predictor files to be lower case, and I've run the scenario tool again. Now I am getting Error: one or more predictors contain invalid geometries.

    I have gone back and tried both simplifying and not simplifying the polygons when converting from raster to polygon. I've also tried allowing multipart features, and not allowing multipart features when dissolving the polygon layer.

    Here is the log file:
    Initializing...

    09/28/2015 11:01:20 root DEBUG PATH: ['C:\\InVEST_3_1_3_x86\\invest-3-x86\\.']

    09/28/2015 11:01:20 root DEBUG Loading recreation_client from PATH

    Arguments:

    comments

    data_dir E:\InVestModelWrkspc\Recreation\Simp500mCompPred

    json E:/InVestModelWrkspc/Recreation/Rec9_23_15curr500m/results-2015-09-24--14_07_23/init.json

    mode scenario

    workspace_dir E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m



    09/28/2015 11:01:20 root INFO Logging will be saved to recreation_client-log-2015-09-28--11_01_20.txt

    09/28/2015 11:01:20 root DEBUG Loaded the model from invest_natcap.recreation.recreation_client

    09/28/2015 11:01:20 root INFO Executing the loaded model

    09/28/2015 11:01:20 root INFO Running InVEST version "3.1.3"

    09/28/2015 11:01:20 root INFO Python architecture: ('32bit', 'WindowsPE')

    09/28/2015 11:01:20 root INFO Disk space remaining for workspace: 1.55 TB

    09/28/2015 11:01:20 root INFO Pointing temporary directory at the workspace at E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m

    09/28/2015 11:01:20 root INFO Updating os.environ["TMP"]=E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m\tmp to E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m

    09/28/2015 11:01:20 root INFO Updating os.environ["TEMP"]=E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m\tmp to E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m

    09/28/2015 11:01:20 root INFO Updating os.environ["TMPDIR"]=E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m\tmp to E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m

    09/28/2015 11:01:20 root INFO Setting tempfile.tempdir to E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m\tmp

    09/28/2015 11:01:20 root INFO Starting recreation_client

    09/28/2015 11:01:20 invest_natcap.recreation.client_init INFO URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.

    09/28/2015 11:01:20 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Assigned server session id upath9iqr4oa44t9hvhm8btqv1.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Checking version.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO You have a compatible version.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Finished checking version.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Processing predictors.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Found ag predictor.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Found beach predictor.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Found devel predictor.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Found forest predictor.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Found timber predictor.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Found watwetl predictor.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Opening predictors for uploading.

    09/28/2015 11:01:21 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_predictors.php.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO You have uploaded 1 files.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Your upload size is 533475.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO The max upload size is 104857600.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Running server side processing.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_scenario.php.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_scenario.php.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Model running.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Running server side scenario with user provided parameters.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Connecting to database.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Loading grid.

    09/28/2015 11:01:22 invest_natcap.recreation.client_init INFO Please wait.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Getting list of predictors in grid.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Processing user uploaded files.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Found simple predictor devel.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Adding simple predictor devel to processing queue.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Importing simple predictor devel.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Found simple predictor forest.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Adding simple predictor forest to processing queue.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Importing simple predictor forest.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Found simple predictor beach.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Adding simple predictor beach to processing queue.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Importing simple predictor beach.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Found simple predictor timber.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Adding simple predictor timber to processing queue.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Importing simple predictor timber.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Found simple predictor watwetl.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Adding simple predictor watwetl to processing queue.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Importing simple predictor watwetl.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Found simple predictor ag.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Adding simple predictor ag to processing queue.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init INFO Importing simple predictor ag.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init WARNING Predictor devel contains invalid geometry.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init WARNING Predictor forest contains invalid geometry.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init WARNING Predictor timber contains invalid geometry.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init WARNING Predictor watwetl contains invalid geometry.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init WARNING Predictor ag contains invalid geometry.

    09/28/2015 11:01:38 invest_natcap.recreation.client_init ERROR One or more predictors contain invalid geometry.

    09/28/2015 11:01:38 root ERROR ---------------------------------------------------

    09/28/2015 11:01:38 root ERROR ---------------------- ERROR ----------------------

    09/28/2015 11:01:38 root ERROR ---------------------------------------------------

    09/28/2015 11:01:38 root ERROR Error: exception found while running recreation_client

    09/28/2015 11:01:38 root DEBUG

    09/28/2015 11:01:38 root DEBUG Build details

    09/28/2015 11:01:38 root DEBUG Interpreter

    09/28/2015 11:01:38 root DEBUG Current temp dir: E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m\tmp

    09/28/2015 11:01:38 root DEBUG tempfile.tempdir: E:\InVestModelWrkspc\Recreation\Rec9_28_15comp500m\tmp

    09/28/2015 11:01:38 root DEBUG

    09/28/2015 11:01:38 root DEBUG System

    09/28/2015 11:01:38 root DEBUG OS : Windows-7-6.1.7601-SP1

    09/28/2015 11:01:38 root DEBUG Processor architecture: AMD64

    09/28/2015 11:01:38 root DEBUG FS encoding : mbcs

    09/28/2015 11:01:38 root DEBUG

    09/28/2015 11:01:38 root DEBUG Python

    09/28/2015 11:01:38 root DEBUG Version : 2.7.9

    09/28/2015 11:01:38 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

    09/28/2015 11:01:38 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

    09/28/2015 11:01:38 root DEBUG Implementation : CPython

    09/28/2015 11:01:38 root DEBUG Architecture : 32bit

    09/28/2015 11:01:38 root DEBUG Linkage format : WindowsPE

    09/28/2015 11:01:38 root DEBUG

    09/28/2015 11:01:38 root DEBUG Packages

    09/28/2015 11:01:38 root DEBUG Cython : ?

    09/28/2015 11:01:38 root DEBUG Numpy : 1.8.1

    09/28/2015 11:01:38 root DEBUG Scipy : 0.15.1

    09/28/2015 11:01:38 root DEBUG OSGEO : 1.10.1

    09/28/2015 11:01:38 root DEBUG Shapely : 1.5.5

    09/28/2015 11:01:38 root DEBUG InVEST : 3.1.3

    09/28/2015 11:01:38 root DEBUG

    09/28/2015 11:01:38 root DEBUG

    09/28/2015 11:01:38 root DEBUG error <type 'exceptions.IOError'> number None

    09/28/2015 11:01:38 root DEBUG Error message: Error on server: One or more predictors contain invalid geometry.

    09/28/2015 11:01:38 root DEBUG Exception not disk-space related

    09/28/2015 11:01:38 root DEBUG Printing traceback

    Traceback (most recent call last):

    File "invest_natcap\iui\executor.pyc", line 553, in runModel

    File "invest_natcap\recreation\recreation_client.pyc", line 546, in execute

    File "invest_natcap\recreation\recreation_client.pyc", line 125, in log_check

    File "invest_natcap\recreation\recreation_client.pyc", line 82, in relogger

    IOError: Error on server: One or more predictors contain invalid geometry.

    None


    09/28/2015 11:01:38 root ERROR Exiting due to failures

  • DaveDave Member, Administrator, NatCap Staff
    Hi Laura,

    We encounter bad geometries from time to time. One thing that works sometimes is to buffer a shapefile by 0 distance. It won't change your shapefile, but might clean them up.

  • Hi Dave,

    ArcGIS wouldn't let me buffer to 0 distance, but then I buffered to 0.1m just to see if that would fix the problem. I got the same error in the recreation scenario model. I also tried the "repair geometry" function in ArcMap, and it produced the same invalid geometry error. When I tried the "check geometry" tool in ArcMap, it didn't list any problems with my predictor layers.

    Any ideas?

    Thanks!!
  • DaveDave Member, Administrator, NatCap Staff
    HI Laura, you might try creating the data in some different GIS software, such as QGIS. Q has some repair geometry type functions I believe, and I'm pretty sure it will let you buffer by 0 as well. I am travelling now but if I can I will grab your data on our server and see if I can fix the layers as well.

    Please let me know if you find a solution in the meantime. Thanks.
  • Thanks, Dave. Buffering by a distance of 0 in QGIS did the trick! Thank you so much for your assistance!

    -Laura
Sign In or Register to comment.