Fisheries model log errors !

SoukaynaSoukayna Member
edited January 26 in General
Hi.
Can anyone help me please with my problem. I've got an issue
running the model of fisheries. I've tried all the data provided by the
Invest and it worked. Once I used my data i got the following messages :


Initializing...

Showing messages with level INFO and higher

01/26/2018 15:57:12 natcap.invest.utils INFO Writing log messages to C:\Users\soukaina\Documents\fisheries_workspace\InVEST-Fisheries-log-2018-01-26--15_57_10.txt

01/26/2018 15:57:14 natcap.invest.ui.model Level 100 Starting model with parameters:

Arguments for InVEST natcap.invest.fisheries.fisheries 3.4.2:

aoi_uri C:/InVEST_3.3.3_x86/Fisheries/input/shapefile_Dakhla/Dakhla.shp

do_batch False

harvest_units Individuals

migr_cont False

population_csv_dir C:\InVEST_3.3.3_x86\Fisheries\input\input_Dakhla

population_csv_uri C:/InVEST_3.3.3_x86/Fisheries/input/input_Dakhla/population_params.csv

population_type Stage-Based

recruitment_type Fixed

results_suffix

sexsp No

spawn_units Individuals

total_init_recruits 19700000000

total_recur_recruits 53972602

total_timesteps 700

val_cont False

workspace_dir C:\Users\soukaina\Documents\fisheries_workspace


01/26/2018 15:57:19 osgeo ERROR [errno 4] `C:/InVEST_3.3.3_x86/Fisheries/input/shapefile_Dakhla/Dakhla.shp' not recognised as a supported file format.

01/26/2018 15:57:21 natcap.invest.ui.usage._log_model WARNING an exception encountered when logging RuntimeError('dictionary changed size during iteration',)

01/26/2018 15:57:23 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x0AF493B0>

Traceback (most recent call last):


File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py", line 1504, in _logged_target


File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries.py", line 208, in execute


File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries_model.py", line 489, in run_population_model


File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries_model.py", line 362, in stage_based_cycle_func


ValueError: shapes (4,4) and (1,4) not aligned: 4 (dim 1) != 1 (dim 0)


01/26/2018 15:57:23 natcap.invest.ui.model INFO Execution finished


Post edited by Soukayna on
Tagged:

Comments

  • jdouglassjdouglass Administrator, NatCap Staff
    Hi @soukayna, it's tough to say offhand what might be wrong, but it looks like you're using an old version of InVEST ... could you try downloading the latest version of InVEST (https://www.naturalcapitalproject.org/invest/) and see if the latest changes to the model resolve the issue?  If that doesn't fix it, it'd be great if you could send your inputs to jdouglass@stanford.edu so I can take a look.

    Thanks!
    James
  • Hi James thank you verry much for the reply. I've downloaded the latest version of Invest and as you can see in the messages below there is still some errors that I can't understand the meaning... So right now I'm going to send you my inputs so that you can help me figure out what's the problem. I really appreciate your help.

    Initializing...

    Showing messages with level INFO and higher

    01/26/2018 19:42:56 natcap.invest.utils INFO Writing log messages to C:\Users\soukaina\Documents\fisheries_workspace\InVEST-Fisheries-log-2018-01-26--19_42_56.txt

    01/26/2018 19:42:56 natcap.invest.ui.model Level 100 Starting model with parameters:

    Arguments for InVEST natcap.invest.fisheries.fisheries 3.4.2:

    aoi_uri C:/InVEST_3.4.2_x86/Fisheries/input/shapefile_Dakhla/z_dakhla.shp

    do_batch False

    harvest_units Individuals

    migr_cont False

    population_csv_dir C:\InVEST_3.4.2_x86\Fisheries\input\input_Dakhla

    population_csv_uri C:/InVEST_3.4.2_x86/Fisheries/input/input_Dakhla/population_params.csv

    population_type Stage-Based

    recruitment_type Fixed

    results_suffix

    sexsp No

    spawn_units Individuals

    total_init_recruits 19700000000

    total_recur_recruits 53972602

    total_timesteps 700

    val_cont False

    workspace_dir C:\Users\soukaina\Documents\fisheries_workspace


    01/26/2018 19:42:56 osgeo ERROR [errno 4] `C:/InVEST_3.4.2_x86/Fisheries/input/shapefile_Dakhla/z_dakhla.shp' not recognised as a supported file format.

    01/26/2018 19:42:56 natcap.invest.ui.usage._log_model WARNING an exception encountered when logging RuntimeError('dictionary changed size during iteration',)

    01/26/2018 19:42:56 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x0AF893B0>

    Traceback (most recent call last):

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py", line 1504, in _logged_target

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries.py", line 208, in execute

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries_model.py", line 489, in run_population_model

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries_model.py", line 362, in stage_based_cycle_func

    ValueError: shapes (4,4) and (1,4) not aligned: 4 (dim 1) != 1 (dim 0)

    01/26/2018 19:42:56 natcap.invest.ui.model INFO Execution finished

    01/26/2018 19:42:56 natcap.invest.utils INFO Elapsed time: 0.16s

    01/26/2018 19:42:56 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x0B123F70> failed with exception

    Traceback (most recent call last):

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\execution.py", line 68, in run

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py", line 1504, in _logged_target

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries.py", line 208, in execute

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries_model.py", line 489, in run_population_model

    File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\fisheries\fisheries_model.py", line 362, in stage_based_cycle_func

    ValueError: shapes (4,4) and (1,4) not aligned: 4 (dim 1) != 1 (dim 0)

    01/26/2018 19:42:56 natcap.invest.ui.execution INFO Execution finished


  • jdouglassjdouglass Administrator, NatCap Staff
    We ended up resolving this over email.  There was an issue with the stage-based model within the InVEST Fisheries model that caused this error.  It has been patched as of 2018-02-15, and is included in the latest development version of InVEST (download here: http://data.naturalcapitalproject.org/invest-releases/3.4.2.post73+nead1adc114f9/InVEST_3.4.2.post73+nead1adc114f9_x86_Setup.exe).
This discussion has been closed.