This forum is shutting down! Please post new discussions at

Scenario generator (using python script ) extension error?

IbeIbe Member

Please help me out here. I am trying to run scenario generator from a python script using sample data provide on natcap website but getting following error and couldn't make any sens of it -- am I missing something from python extension of InVEST? 

Traceback (most recent call last):
  File "D:\InVEST model\", line 31, in <module>
  File "C:\Python27\ArcGIS10.1\lib\site-packages\invest_natcap\scenario_generator\", line 1308, in execute
    htm.write("<script>\n" + open(jquery_uri).read() + "\n</script>")
IOError: [Errno 2] No such file or directory: 'C:\\Python27\\ArcGIS10.1\\lib\\site-packages\\invest_natcap\\scenario_generator\\jquery-1.6.2.min.js'


  • DougDoug Administrator, NatCap Staff
    It looks like some of the helper files we package with the scenario generator model are not in the proper location. In order to have full functionality for the html outputs, we provide some jquery and other files as part of that model.

    Usually on an InVEST download and install, these files get saved to :


    The problem seems to be we are not including those files in the InVEST python extension download.

    If you have InVEST 3.1.0 downloaded, do you think you could copy 'jquery-1.6.2.min.js' and 'highcharts.js' from:

    "C:\InVEST_3_1_0_x86\invest-3-x86\invest_natcap\scenario_generator\ " (or where you installed InVEST)

    copy to :

    "C:\Python27\ArcGIS10.1\lib\site-packages\invest_natcap\scenario_generator\ " .

    This should fix the problem.

    We will get those files into the extension install soon.


  • IbeIbe Member
    Hi Doug,

    Copy/paste fixed the problem. Thanks.
  • DougDoug Administrator, NatCap Staff
    Great! We'll try to get a better fix for this. Thanks!
  • jdouglassjdouglass Administrator, NatCap Staff
    In case anyone else is also encountering this error, we have fixed this issue as of a recent development version of the python extensions (built on March 12, 2015), and can be downloaded from here.  This fix will be included in the next official version of InVEST, which we hope to release soon.

This discussion has been closed.