Seasonal water Yield: Root error on pygeoprocessing.fileio", line 156, in read_table

Hello guys,

It may be a very simple mistake from my part but I can't figure out why the Seasonal Water Yield model doesn't run after all.

Here's the log:
I tried to setup the pygeoprocessing again in case it was the default part but it didn't change anything.


Thanks for your replies !


06/13/2016 17:51:17 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO prepare and test inputs for common errors

06/13/2016 17:51:17 root ERROR ---------------------------------------------------

06/13/2016 17:51:17 root ERROR ---------------------- ERROR ----------------------

06/13/2016 17:51:17 root ERROR ---------------------------------------------------

06/13/2016 17:51:17 root ERROR Error: exception found while running natcap.invest.seasonal_water_yield.seasonal_water_yield

06/13/2016 17:51:17 root DEBUG

06/13/2016 17:51:17 root DEBUG Build details

06/13/2016 17:51:17 root DEBUG Interpreter

06/13/2016 17:51:17 root DEBUG Current temp dir: D:/Stage CIRED/Services/Water_yield\tmp

06/13/2016 17:51:17 root DEBUG tempfile.tempdir: D:/Stage CIRED/Services/Water_yield\tmp

06/13/2016 17:51:17 root DEBUG

06/13/2016 17:51:17 root DEBUG System

06/13/2016 17:51:17 root DEBUG OS : Windows-8-6.2.9200

06/13/2016 17:51:17 root DEBUG Processor architecture: AMD64

06/13/2016 17:51:17 root DEBUG FS encoding : mbcs

06/13/2016 17:51:17 root DEBUG Preferred encoding: cp1252

06/13/2016 17:51:17 root DEBUG

06/13/2016 17:51:17 root DEBUG Python

06/13/2016 17:51:17 root DEBUG Version : 2.7.9

06/13/2016 17:51:17 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

06/13/2016 17:51:17 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

06/13/2016 17:51:17 root DEBUG Implementation : CPython

06/13/2016 17:51:17 root DEBUG Architecture : 32bit

06/13/2016 17:51:17 root DEBUG Linkage format : WindowsPE

06/13/2016 17:51:17 root DEBUG

06/13/2016 17:51:17 root DEBUG Packages

06/13/2016 17:51:17 root DEBUG Cython : ?

06/13/2016 17:51:17 root DEBUG Numpy : 1.10.2rc1

06/13/2016 17:51:17 root DEBUG Scipy : 0.16.0b2

06/13/2016 17:51:17 root DEBUG OSGEO : 1.11.3

06/13/2016 17:51:17 root DEBUG Shapely : 1.5.5

06/13/2016 17:51:17 root DEBUG InVEST : 3.3.0

06/13/2016 17:51:17 root DEBUG

06/13/2016 17:51:17 root DEBUG

06/13/2016 17:51:17 root DEBUG Exception not environment-related

06/13/2016 17:51:17 root DEBUG Printing traceback

Traceback (most recent call last):

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 560, in runModel

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.seasonal_water_yield.seasonal_water_yield", line 158, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.seasonal_water_yield.seasonal_water_yield", line 190, in _execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 2473, in get_lookup_from_table

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.fileio", line 257, in __init__

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.fileio", line 156, in read_table

TypeError: float() argument must be a string or a number



06/13/2016 17:51:17 root ERROR Exiting due to failures

Comments

  • RichRich Administrator, NatCap Staff
    This looks like it's trying to parse a number from your biophysical table but it's not a number.  Maybe there's an entry that's blank?  Or a typo?  Can you take a look and if it's not obvious could you dropbox me your datastack to richsharp@stanford.edu and I can take a look?
  • RichRich Administrator, NatCap Staff
    Hi Emile, continuing an email exchange... Your biophysical table looks okay.  But I checked more carefully on your original error and it looks like the issue is in the monthly alpha table.  Are you using monthly alphas?  If so, can you do the same check on that table and verify there's not a weird character or blank for a particular value?  And feel free to pass me the entire datastack via dropbox if you're not sure.
  • EmileEmile Member
    Effectively, the problem came from the monthly alpha table. I canceled the use of it and it's working good now.
    Thank you very much Rich !
This discussion has been closed.